Csf - шпаргалка по командам - CSF Cheat Sheet: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) (Новая страница: «=== Csf - шпаргалка по командам - CSF Cheat Sheet === csf -e Enable CSF csf -x Disable CSF csf -s Start the firewall rules csf -f Flush/...») |
Admin iph (обсуждение | вклад) |
||
(не показана 1 промежуточная версия этого же участника) | |||
Строка 7: | Строка 7: | ||
csf -r Restart the firewall rules | csf -r Restart the firewall rules | ||
csf -a [IP address] [Optional comment] Allow an IP and add to /etc/csf/csf.allow | csf -a [IP address] [Optional comment] Allow an IP and add to /etc/csf/csf.allow | ||
− | csf -td [IP | + | csf -td [IP address] [Optional comment] Place an IP on the temporary deny list in /var/lib/csf/csf.tempban |
csf -tr [IP.add.re.ss] Remove an IP from the temporary IP ban or allow list. | csf -tr [IP.add.re.ss] Remove an IP from the temporary IP ban or allow list. | ||
csf -tf Flush all IPs from the temporary IP entries | csf -tf Flush all IPs from the temporary IP entries | ||
Строка 14: | Строка 14: | ||
csf -df Remove and unblock all entries in /etc/csf/csf.deny | csf -df Remove and unblock all entries in /etc/csf/csf.deny | ||
csf -g [IP.add.re.ss] Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number) | csf -g [IP.add.re.ss] Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number) | ||
− | csf -t | + | csf -t Displays the current list of temporary allow and deny IP entries with their TTL and comments |
Текущая версия на 13:02, 13 декабря 2022
Csf - шпаргалка по командам - CSF Cheat Sheet
csf -e Enable CSF csf -x Disable CSF csf -s Start the firewall rules csf -f Flush/Stop firewall rules (note: lfd may restart csf) csf -r Restart the firewall rules csf -a [IP address] [Optional comment] Allow an IP and add to /etc/csf/csf.allow csf -td [IP address] [Optional comment] Place an IP on the temporary deny list in /var/lib/csf/csf.tempban csf -tr [IP.add.re.ss] Remove an IP from the temporary IP ban or allow list. csf -tf Flush all IPs from the temporary IP entries csf -d [IP.add.re.ss] [Optional comment] Deny an IP and add to /etc/csf/csf.deny csf -dr [IP.add.re.ss] Unblock an IP and remove from /etc/csf/csf.deny csf -df Remove and unblock all entries in /etc/csf/csf.deny csf -g [IP.add.re.ss] Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number) csf -t Displays the current list of temporary allow and deny IP entries with their TTL and comments