Click to See Complete Forum and Search --> : iptables


Henrycoffin
06-27-2003, 04:49 AM
Can anyone help me with a iptables rule for allowing access to my mail server. I have a firewall running at the moment that appears to be blocking it

Cheers

homey
06-27-2003, 07:34 AM
If the mail server is on another computer, you could use port forwarding like this.....
$IPTABLES -t nat -A PREROUTING -i $EXT -p tcp --dport 25 -j DNAT --to 192.168.0.50

or if you want to open a particular port you could use something like this.....
$IPTABLES -A INPUT -i $EXT -s 0/0 -d 0/0 -p tcp --dport 25 -j ACCEPT

Also, your ISP may be blocking the well know ports so it may not be your machine doing the blocking.

serz
06-27-2003, 12:22 PM
www.linuxguruz.net/iptables/

Lots of iptables stuff :)