Developing lightweight computation at the DSG edge

Commit dcdb3e40 authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Update the clamp MSS TCP rule to new interface name of bmx6 with tunnels on-demand. Closes #148.

parent fa5afdbf
......@@ -23,9 +23,12 @@
# Simó Albert i Beltran
#
# Update the clamp MSS TCP rule to new interface name of bmx6 with tunnels on-demand.
sed -i -e "s/^iptables -A FORWARD -p tcp -o bmx6_+ -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu$/iptables -A FORWARD -p tcp -o x6+ -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu/g" /etc/firewall.user
if grep -q -e "^# Clamp MSS TCP rule to fix MTU problems" /etc/firewall.user; then exit 0; fi
cat << EOF >> /etc/firewall.user
# Clamp MSS TCP rule to fix MTU problems
iptables -A FORWARD -p tcp -o bmx6_+ -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
iptables -A FORWARD -p tcp -o x6+ -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