[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Iptables config



En réponse à Lars Roland Kristiansen <m00lrk@math.ku.dk>:

> Thanks for the quick respons
> 
> I have put this in my /etc/default/iptables file 
> 
> # Deny ALL
> iptables -P INPUT DROP
> 
> # Allow these sevices
> 
> # SMTP
> iptables -I INPUT -p tcp -s 0/0 --dport 25 -i eth0 -j ACCEPT
> # SSH
> iptables -I INPUT -p tcp -s 0/0 --dport 22 -i eth0 -j ACCEPT
> # POP#
> iptables -I INPUT -p tcp -s 0/0 --dport 110 -i eth0 -j ACCEPT
> 
> I can connect to the server using ssh and pop3 but SMTP doest seam to
> be allowed ?????
> 
> 
> i get "cant conect to smtp service" when trying to mail 

try by rejecting port 113 requests with :

iptables -I INPUT -p tcp -s 0/0 --dport 113 -i eth0 -j REJECT



-------------------------------------------------
This mail sent through Tiscalinet Webmail (http://webmail.tiscalinet.be)


-- 
To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: