changing routing from serv to pub
This commit is contained in:
parent
1dc8bdc3e3
commit
6c5d103e12
|
@ -101,12 +101,12 @@ in
|
|||
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients
|
||||
#----------------------Start-Routing----------------------------
|
||||
postSetup = ''
|
||||
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.11.1/24 -o serv -j MASQUERADE
|
||||
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.11.1/24 -o pub -j MASQUERADE
|
||||
'';
|
||||
|
||||
# This undoes the above command
|
||||
postShutdown = ''
|
||||
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.10.11.1/24 -o serv -j MASQUERADE
|
||||
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.10.11.1/24 -o pub -j MASQUERADE
|
||||
'';
|
||||
#----------------------End-Routing----------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue