On Thursday 18 April 2002 6:05 pm, Bryan J. Snow wrote:

> I need help routing and forwarding SMTP traffic across my firewall:
>
> I have a firewall using iptables with a public(eth0) and a private
> interface(eth1).  The private interface is connected to a web server that
> needs to be able to only send outgoing mail- the web server does not need
> to be able to check mail or access anyone's mail account.
>
> I need a list of the iptables commands needed to allow outgoing SMTP
> requests from the internal web server to pass through this firewall to a
> mail server on the public network.

iptables -A FORWARD -s <web server IP> -p tcp --dport 25 -j ACCEPT

Add that to the end of your existing rules and you should be set.


Antony.

Reply via email to