Cyber Panel: Difference between revisions
Johan Efendi (talk | contribs) |
Johan Efendi (talk | contribs) |
||
Line 3: | Line 3: | ||
<syntaxhighlight lang="bash" style="overflow: auto;"> | <syntaxhighlight lang="bash" style="overflow: auto;"> | ||
# Edit litespeed config | |||
nano /usr/local/lsws/conf/httpd_config.conf | nano /usr/local/lsws/conf/httpd_config.conf | ||
# Tambahkan | # Tambahkan | ||
useIpInProxyHeader 1 | useIpInProxyHeader 1 | ||
# Tambahkan | # Tambahkan | ||
accessControl{ | 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 | 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 | ||
Line 15: | Line 19: | ||
# Restart litespeed | # Restart litespeed | ||
systemctl restart lsws | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 21:34, 4 September 2024
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