Cyber Panel

From Corat Coret

Deteksi IP Cloudflare

# Edit litespeed config
nano  /usr/local/lsws/conf/httpd_config.conf

# Tambahkan

useIpInProxyHeader               1

# Tambahkan

accessControl{
        allow ALL, 173.245.48.0/20T, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 141.101.64.0/18T, 108.162.192.0/18T, 190.93.240.0/20T, 188.114.96.0/20T, 197.234.240.0/22T, 198.41.128.0/17T, 162.158.0.0/15T, 104.16.0.0/13T, 104.24.0.0/14T, 172.64.0.0/13T, 131.0.72.0/22T
        deny
}

# Restart litespeed

systemctl restart lsws

Shortcut

# Trigger daily backup
/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/IncScheduler.py Daily