Cyber Panel: Difference between revisions
Johan Efendi (talk | contribs) No edit summary |
Johan Efendi (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<syntaxhighlight lang="bash | <syntaxhighlight lang="bash"> | ||
# 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 | ||
Line 16: | Line 19: | ||
# Restart litespeed | # Restart litespeed | ||
systemctl restart lsws | |||
</syntaxhighlight> | |||
=Shortcut= | |||
<syntaxhighlight lang="bash"> | |||
# Trigger daily backup | |||
/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/IncScheduler.py Daily | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 15:36, 11 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