Merge pull request 'fixing the interface name' (#44) from leon/nix-config:master into master
Reviewed-on: #44
This commit is contained in:
commit
0f4aa8baa8
|
@ -71,12 +71,12 @@ in
|
||||||
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients
|
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients
|
||||||
#----------------------Start-Routing----------------------------
|
#----------------------Start-Routing----------------------------
|
||||||
postSetup = ''
|
postSetup = ''
|
||||||
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.11.1/24 -o eth0 -j MASQUERADE
|
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.11.1/24 -o serv -j MASQUERADE
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# This undoes the above command
|
# This undoes the above command
|
||||||
postShutdown = ''
|
postShutdown = ''
|
||||||
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.10.11.1/24 -o eth0 -j MASQUERADE
|
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.10.11.1/24 -o serv -j MASQUERADE
|
||||||
'';
|
'';
|
||||||
#----------------------End-Routing----------------------------
|
#----------------------End-Routing----------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user