add new-vpn-interface-without-internet
This commit is contained in:
parent
b93a0d2a73
commit
1dc8bdc3e3
|
@ -141,8 +141,6 @@ networking.wireguard.interfaces = {
|
||||||
#VPN Port.
|
#VPN Port.
|
||||||
listenPort = 8900;
|
listenPort = 8900;
|
||||||
|
|
||||||
# This allows the wireguard server to route your traffic to the internet and hence be like a VPN
|
|
||||||
# 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.100.1/24 -o serv -j MASQUERADE
|
# ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.100.1/24 -o serv -j MASQUERADE
|
||||||
|
|
Loading…
Reference in New Issue