mirror of
https://github.com/trailofbits/algo
synced 2024-11-13 19:12:06 +00:00
Drop the MSS for GCE instances
This commit is contained in:
parent
9676a23c01
commit
b444398fab
2
algo
2
algo
@ -286,7 +286,7 @@ Please choose the number of your zone. Press enter for default (#8) zone.
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
ROLES="gce vpn cloud"
|
ROLES="gce vpn cloud"
|
||||||
EXTRA_VARS="credentials_file=$credentials_file server_name=$server_name ssh_public_key=$ssh_public_key zone=$zone"
|
EXTRA_VARS="credentials_file=$credentials_file server_name=$server_name ssh_public_key=$ssh_public_key zone=$zone max_mss=1348"
|
||||||
}
|
}
|
||||||
|
|
||||||
non_cloud () {
|
non_cloud () {
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
*mangle
|
||||||
|
:PREROUTING ACCEPT [0:0]
|
||||||
|
:INPUT ACCEPT [0:0]
|
||||||
|
:FORWARD ACCEPT [0:0]
|
||||||
|
:OUTPUT ACCEPT [0:0]
|
||||||
|
:POSTROUTING ACCEPT [0:0]
|
||||||
|
{% if max_mss is defined %}
|
||||||
|
-A FORWARD -s {{ vpn_network }} -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss {{ max_mss }}
|
||||||
|
{% endif %}
|
||||||
|
COMMIT
|
||||||
*nat
|
*nat
|
||||||
:PREROUTING ACCEPT [0:0]
|
:PREROUTING ACCEPT [0:0]
|
||||||
:POSTROUTING ACCEPT [0:0]
|
:POSTROUTING ACCEPT [0:0]
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
*mangle
|
||||||
|
:PREROUTING ACCEPT [0:0]
|
||||||
|
:INPUT ACCEPT [0:0]
|
||||||
|
:FORWARD ACCEPT [0:0]
|
||||||
|
:OUTPUT ACCEPT [0:0]
|
||||||
|
:POSTROUTING ACCEPT [0:0]
|
||||||
|
{% if max_mss is defined %}
|
||||||
|
-A FORWARD -s {{ vpn_network_ipv6 }} -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss {{ max_mss }}
|
||||||
|
{% endif %}
|
||||||
|
COMMIT
|
||||||
*nat
|
*nat
|
||||||
:PREROUTING ACCEPT [0:0]
|
:PREROUTING ACCEPT [0:0]
|
||||||
:POSTROUTING ACCEPT [0:0]
|
:POSTROUTING ACCEPT [0:0]
|
||||||
|
Loading…
Reference in New Issue
Block a user