iptables -t nat -A POSTROUTING -j MASQUERADE iptables -t nat -A POSTROUTING -s 192.168.50.0\/24 ! -d 192.168.50.0\/24 -j MASQUERADE COMMIT