fix vpn and add rofi toggle
This commit is contained in:
parent
43998b73d7
commit
ae06e0c8c2
3 changed files with 39 additions and 1 deletions
|
|
@ -11,6 +11,7 @@
|
|||
networking.firewall = {
|
||||
allowedTCPPorts = [ 22 80 443 2222 ];
|
||||
allowedUDPPorts = [ 51820 53 ]; # Wireguard, Adguard DNS
|
||||
checkReversePath = "loose"; # Required for WireGuard NAT
|
||||
};
|
||||
|
||||
# ============================================================================
|
||||
|
|
@ -259,7 +260,7 @@
|
|||
# NAT for Wireguard clients to access the internet
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
externalInterface = "ens3";
|
||||
externalInterface = "enp1s0";
|
||||
internalInterfaces = [ "wg0" ];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue