(Answer) (Category) NetMAXFAQ : (Category) Routing / Fire Wall / Proxy Cache :
How do I setup port forwarding (on FreeBSD)?
Applies to: NetMAX FreeBSD versions
address-suppressed
Port forwarding is not available in the FreeBSD NetMAX FireWall interface.

However, we believe that the following command line settings using natd may provide the port forwarding functions. These settings have not been completely tested and are provided as a courtesy to you. Feedback and/or questions regarding it are welcome.

If you have NAT enabled on the NetMAX, then it is simple to create rules to redirect incoming and outgoing IP traffic when using the NetMAX as a router.

For example, if you wanted to have all accesses to the NetMAX's web server redirected to another machine's web server, you'd need three firewall rules (you can add these to the rc.local file):

ipfw add 10 divert natd tcp from otherwebserver 80 to any
ipfw add 11 divert natd tcp from any            to otherwebserver 80
ipfw add 12 divert natd tcp from any            to netmaxIP       80

Also, you'll need to edit the /etc/natd.conf file and add a line that reads:

redirect_port tcp otherwebserver:80 80

Then run:

kill `cat /var/run/natd.pid` && natd -f /etc/natd.conf

Feel free to contact us if you have further comments or questions.
address-suppressed

Previous: (Answer) How can I get ICQ to work behind my NetMAX firewall?
Next: (Answer) Why does a route I entered not get created, even though NetMAX doesn't give me any errors?
This document is: http://www.netmax.org/cgi-bin/fom.cgi?file=289
[Search] [Appearance]
This is a Faq-O-Matic 2.721.
This FAQ administered by ...Cybernet Systems Corp.