1
0
Fork 0

Workaround for shitty pulic wifi firewalls

This commit is contained in:
clerie 2021-07-11 16:21:35 +02:00
parent 2525c506fc
commit b7798bf8ee
1 changed files with 4 additions and 1 deletions

View File

@ -123,7 +123,10 @@
};
};
networking.firewall.allowedUDPPorts = [ 50101 50127 50128 51820 60001 ];
networking.firewall.allowedUDPPorts = [ 53 993 995 50101 50127 50128 51820 60001 ];
networking.firewall.extraCommands = ''
iptables -t nat -I PREROUTING -p udp -m multiport --dports 53,993,995 -j REDIRECT --to-ports 51820
'';
clerie.nginx-port-forward = {
enable = true;