Hi
I'm trying to work out some network service on smpt protocol.
I tried to follow the communication on SMTP by catching the packets with ethereal.
It is a mail client application on slackware linux - KMail.
I send a stupid mail to see how it flows over that protocol.
It didn't work. I did not catche any packets!?
So I take a look at my iptables chains:
# the policy setting
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
# DNS and HTML allowed
iptables -A INPUT -p udp --sport 53 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p udp --dport 53 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --sport 80 -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
# And SMPT allowed
iptables -A INPUT -p tcp --sport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
I set the IP tables policy to ACCEPT on OUTPUT and INPUT, tried again and it worked!
I catched the packets communicating on port 53, 25 (DNS,SMTP) and no other.
I have this ports allowed in the iptables chains, why it is blocking the communication.
What port i'm missing??
Pls. help