This commit is contained in:
catvayor 2025-01-14 17:20:42 +01:00
parent 0b31d7b83e
commit 17cc74c69c
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
2 changed files with 9 additions and 2 deletions

View file

@ -9,7 +9,7 @@
# DHCP = "ipv4";
# networkConfig.IPMasquerade = "ipv4";
# };
"10-enp2s0" = {
"05-enp2s0" = {
name = "enp2s0";
address = [ "192.168.2.1/24" ];
networkConfig.DHCPServer = "yes";
@ -29,7 +29,13 @@
content = ''
chain postrouting {
type nat hook postrouting priority 100;
ip saddr 192.168.2.0/24 masquerade
ip saddr 192.168.2.0/24 ip daddr != {
10.10.10.0/24,
10.42.0.0/16,
192.168.122.0/24,
192.168.1.0/24,
100.80.0.0/16,
} masquerade
}
'';
};

View file

@ -69,6 +69,7 @@
libnotify
zathura
vlc
prismlauncher
discord
signal-desktop