Port Forwarding To An Internal Web Server

This is an example of how you can port forward a port to an internal machine. In this case, we are port forwarding from the firewall to an Apache web server located on IP, with both HTTP and HTTPS services.

  • eth0: Internet facing interface
  • eth1: LAN facing interface
  • Dynamic IPv4 address from ISP on eth0
  • Internal LAN machines are on private subnet mask
  • Web server is on with ports 80 and 443 already open
  • A second web server is on, which needs to have its port 80 available on 8080 externally

Config: etc/srfirewall/ipv4/portfw.conf

# <port> <protocol> <internal IP> <internal port> <external interface>
80 tcp 80 eth0
443 tcp 443 eth0
8080 tcp 80 eth0
  • software/srfirewall/examples/intwebportfw.txt
  • Last modified: 2014/04/13 11:57
  • by brielle