Linux Router- No NAT

I assume you have one public IP address for your WAN side, and a block for the LAN side, something like this:


You NEED to have a public IP address for the WAN interface, ISP will route the subnet they have given you through this IP address. Simply you need to set the forwarding bit to 1

echo 1 > /proc/sys/net/ipv4/ip_forward

To make it persistent you need to edit /etc/sysctl.conf, find this line: Continue reading “Linux Router- No NAT” »