IPTABLES question.

Dan de Haan ddehaan at omnexcontrols.com
Thu Jan 6 18:54:57 UTC 2005


I am using iptables to block all computers except of internal mail server
from connecting to offsite SMTP servers using the following rule:

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp -s ! 192.168.1.5  --dport
25 -j DROP

We now have a second mail server that needs to send out, but I can firgure
out how to add two exceptions.  If I add another -s I just get an error.
How can I do this?

	-Dan




More information about the fedora-list mailing list