Greg Pascual wrote:

> I'm using ipchains on my Redhat 7.3 linux box. I just
> want to ask if how to port forward all incoming
> packets to ports 110 and 25. of my mail server
> 
> Let's say my firewall which receives all incoming
> transactions has a local ip of 192.168.1.5 and my mail
> server has 192.168.1.9.

One way to do it is using the portfw kernel module for ipmasqadm.
So be sure to have it loaded first,

    # modprobe ip_masq_portfw

or put something appropriate in /etc/modules.conf or put this in your
firewall script. 

Now to port-forward mails received in your gateway/firewall to
your internal mail server, you may add this line to your firewall
rules

/usr/sbin/ipmasqadm portfw -a -P tcp -L 192.168.1.5 25 -R 192.168.1.9 25

For more help,

    # man ipmasqadm

or

    # ipmasqadm portfw -h

Your question is a good memory jogger.


--
Benj               "There is no spoon." -- a child in The Matrix 

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to