Size: 348
Comment:
|
← Revision 6 as of 2023-10-08 15:40:12 ⇥
Size: 703
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
=== firewall.sh === {{{#!highlight sh iptables -F sh mail_failure_ip_list.sh | xargs -i iptables -A INPUT -s {} -j DROP iptables -L }}} === mail_failure_ip_list.sh === {{{#!highlight sh #!/bin/sh cat /var/log/mail.log | grep failure | awk '//{print $5}' | sort | uniq | sed 's/unknown//g' | sed 's/://g' | sed 's/\[//g' | sed 's/\]//g' }}} |
iptables
Administration tool for IPv4/IPv6 packet filtering and NAT
Block IP address
firewall.sh