Re: Iptables config
> 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 debian-security-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: