Developing lightweight computation at the DSG edge

Commit 80aa2f41 authored by p4u's avatar p4u
Browse files

Added temporal clamp_tcpmss script to solve tcp mtu/mss problem with lan clients

parent 3fa358b6
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment