Table of Contents

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 192.168.0.10, with both HTTP and HTTPS services.

Basic Machine Setup

Configuration

Config: etc/srfirewall/ipv4/portfw.conf

portfw.conf
# <port> <protocol> <internal IP> <internal port> <external interface>
80 tcp 192.168.0.10 80 eth0
443 tcp 192.168.0.10 443 eth0
8080 tcp 192.168.0.11 80 eth0