Skip to contentSkip to conversation

mail injection protocol port

DISCUSSION Dan Egli 1 participant 1 message Feb 4, 2003

lore
Share & tools
lore

Dan Egli

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Question all.

~ I'm defining a rule set for my machine. Most services work fine, but I use tmda-ofmipd to send email, and when I implement my firerwall rules tmda-ofmipd stops working. It connects fine, but then it won't properly recieve and forward the messages to the smtp server. I don't know whats up. I believe that it tried to send mail to localhost:25 and I have all localhost traffic allowed. Here's my rules. Any help is appreciated!

- --- Dan
$IPT -P INPUT DROP
$IPT -P OUTPUT ACCEPT
$IPT -P FORWARD DROP

# step 3 FLUSH THE TABLES
$IPT -F INPUT
$IPT -F OUTPUT
$IPT -F FORWARD
$IPT -t nat -F PREROUTING
$IPT -t nat -F POSTROUTING
$IPT -t nat -F OUTPUT
# setp 4 - setup rules
$IPT -A INPUT -i lo -j ACCEPT
$IPT -A INPUT -p tcp -i eth0 -m multiport --dports telnet,ssh,domain,nntp,ntp,printer,pop3,imap,http,https,netbios-ssn,netbios-dgm -j ACCEPT
$IPT -A INPUT -p tcp -m multiport --dports netbios-ssn,netbios-dgm,netbios-ns,4000,pgpkeyserver,mysql,sunrpc,rndc,8027 -j ACCEPT
$IPT -A INPUT -p udp -i eth0 -m multiport --dports domain,ntp,route,137,138,139 -j ACCEPT

$IPT -A FORWARD -i eth0 -j ACCEPT
$IPT -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+P+SgxQEzeXtVwzoRApQWAJ4iRpXMLZZ1OPQHgwfV0YoX3kpEzQCgo0s+ YnWj4U5X2OhnwcQPWN2Vbag=
=46FY
-----END PGP SIGNATURE-----