Developing lightweight computation at the DSG edge

qmp_clamp_tcpmss 302 Bytes
Newer Older
1
2
3
4
5
6
7
8
#!/bin/sh

if cat /etc/firewall.user | grep -e "^# Clamp MSS TCP rule to fix MTU problems"; then exit 0; fi

cat << EOF >> /etc/firewall.user
# Clamp MSS TCP rule to fix MTU problems
iptables -A FORWARD -p tcp -i br-lan ! -d 10.0.0.0/8  -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
EOF