hosts/carbon: enable mss clamping
This commit is contained in:
parent
f2d88ee295
commit
f05567cbce
@ -243,11 +243,15 @@
|
|||||||
networking.firewall.allowedUDPPorts = [ 53 ];
|
networking.firewall.allowedUDPPorts = [ 53 ];
|
||||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
networking.firewall.allowedTCPPorts = [ 53 ];
|
||||||
|
|
||||||
networking.firewall.extraCommands = ''
|
clerie.firewall.enable = true;
|
||||||
ip46tables -A FORWARD -i enp1s0.202 -o ppp-ntvdsl -j ACCEPT
|
clerie.firewall.extraForwardFilterCommands = ''
|
||||||
ip46tables -A FORWARD -i enp1s0.202 -j DROP
|
ip46tables -A forward-filter -i enp1s0.202 -o ppp-ntvdsl -j ACCEPT
|
||||||
ip46tables -A FORWARD -i ppp-ntvdsl -o enp1s0.202 -j ACCEPT
|
ip46tables -A forward-filter -i enp1s0.202 -j DROP
|
||||||
ip46tables -A FORWARD -o enp1s0.202 -j DROP
|
ip46tables -A forward-filter -i ppp-ntvdsl -o enp1s0.202 -j ACCEPT
|
||||||
|
ip46tables -A forward-filter -o enp1s0.202 -j DROP
|
||||||
|
'';
|
||||||
|
clerie.firewall.extraForwardMangleCommands = ''
|
||||||
|
ip46tables -t mangle -A forward-mangle -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1452
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.pppd = {
|
services.pppd = {
|
||||||
|
Loading…
Reference in New Issue
Block a user