Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
dcdb3e40
Commit
dcdb3e40
authored
Jun 26, 2013
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/uci-defaults/qmp_clamp_tcpmss
View file @
dcdb3e40
...
...
@@ -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
bm
x6
_
+ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment