Port forwarding using IP Tables

Posted by Darider on Server Fault See other posts from Server Fault or by Darider
Published on 2009-11-03T07:30:06Z Indexed on 2012/10/01 21:41 UTC
Read the original article Hit count: 148

I have a server with a LAN facing address of 192.168.5.100 (eth0) and another LAN facing address of 192.168.6.6 (eth1).

On this server I have a Virtualbox instance of fedora running an apache webserver (on port 8080) with a bridged interface to eth1 on the host server with address of 192.168.6.7

Users on the 192.168.6.x network can access the Webserver on the Vbox instance (192.168.6.7) with no problems.

My question is what kind of iptables entries or commands should be made/executed so as to allow for users on the 192.168.5.x network to access the webserver on the vbox instance. (I'm hoping their url can be something like: http://192.168.5.100:8080)

© Server Fault or respective owner

Related posts about linux

Related posts about dhcp