Browse Source

added clamp-mtu and masquerade iptables rocknet keywords

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2036 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
f5d550a949
2 changed files with 11 additions and 0 deletions
  1. +1
    -0
      Documentation/Developers/CHANGELOG-RENE
  2. +10
    -0
      package/base/iptables/rocknet_iptables.sh

+ 1
- 0
Documentation/Developers/CHANGELOG-RENE

@ -2,6 +2,7 @@
*) 2003-12-21 (2.0.0-rc3 - 2.0.0-rc4)
- added powerpc kernel26 disable list
- added clamp-mtu and masquerade itables rocknet keywords
*) 2003-12-20 (2.0.0-rc3 - 2.0.0-rc4)

+ 10
- 0
package/base/iptables/rocknet_iptables.sh

@ -53,3 +53,13 @@ public_drop() {
iptables_init_if
}
public_clamp_mtu() {
addcode up 1 6 "iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN \
-j TCPMSS --clamp-mss-to-pmtu"
}
public_masquerade() {
addcode up 1 6 "iptables -t nat -A POSTROUTING -o $if \
-j MASQUERADE"
}

Loading…
Cancel
Save