|
|
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.
|
| Previous: |
|
| Next: |
|
| ||||||||