Reply To: can’t configure ZS as a router & gateway for different s

Home Page Forums Network Management ZeroShell can’t configure ZS as a router & gateway for different s Reply To: can’t configure ZS as a router & gateway for different s

#50994

ppalias
Member

Hi! To accomplish this you must configure iptables from the shell and not from the webgui. First remove any interface from NAT at the webgui. Then issue the following commands in “System -> Setup -> Startup/Cron”
Select “NAT and Virtual Servers” from the drop down list and fill in the field below the following.

iptables -t nat -A POSTROUTING -o LAN01 -s 192.168.0.0/24 -j MASQUERADE