> Hi - i have just installed an mailserver with postfix and wu-imap/pop3 > now i just want to have iptables running. I am no iptables guro, i just > want to close all exept from ssh(port 22), pop3(port 110) and > imap(port143). Is there and easy way to do this. ????
>Sure it is easy... >iptables -P INPUT DROP >iptables -I INPUT -p tcp -s 0/0 --dport $port -i $dev -j DROP >where dev is your interface , and port is your port (last rule have to be >written thre times , each one for every port) It's not necessary to write this line three times, try to use this: iptables -A INPUT -p tcp -m multiport -s 0/0 --dport 25,110,22 -i $dev -j ACCEPT Just one line ;) []'s Henrique -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]