Reply To: nat reflection

Forums Network Management ZeroShell nat reflection Reply To: nat reflection


pfSense and m0n0wall uses ipfilter, zeroshell uses iptables, so you don’t need a workaround like them. You can use a rule like this one to get it working.

iptables -t nat -A prerouting_rule -d WAN_IP -p tcp --dport 80 -j DNAT --to
iptables -A forwarding_rule -p tcp --dport 80 -d -j ACCEPT
iptables -t nat -A postrouting_rule -s -p tcp --dport 80 -d -j MASQUERADE

All traffic on port 80 from LAN ( to WAN (WAN_IP) will be redirected to the internal webserver (