Re: [suse-security] iptables blocking telnet 25 ?
30 Apr
2002
30 Apr
'02
23:29
Hi! from comp.mail.sendmail: ---snip--- #!/bin/sh COUNTRIES="kr cn tw" for i in $COUNTRIES; do lynx --dump 'http://www.apnic.net/apnic-bin/'\ 'ipv4-by-country.pl?country='$i \ |grep ]APNIC|awk '{print $2;}' done ---snip--- you run the script and save the result to file /etc/rogue-state-ips then you add this to your firewall script (depending on your os version) ---snip--- # blocking countries for i in `cat /etc/rogue-state-ips | grep /`; do $IPTABLES -A input -i eth0 -p tcp --dport 25 -j DENY -s $i done ---snip---
8272
Age (days ago)
8272
Last active (days ago)
0 comments
1 participants
participants (1)
-
spam