forked from extern/shorewall_code
Include workaround for ICMP bug in firewall script.
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@61 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b50d647981
commit
d58c3ac29e
@ -14,8 +14,13 @@
|
||||
#
|
||||
run_iptables -A common -p icmp -j icmpdef
|
||||
############################################################################
|
||||
# Drop invalid state TCP packets
|
||||
#
|
||||
run_iptables -A common -m state -p tcp --state INVALID -j DROP
|
||||
############################################################################
|
||||
# accept ACKs and RSTs that aren't related to any session so that the
|
||||
# protocol stack can handle them
|
||||
# protocol stack can handle them and so the ACKs can create connection
|
||||
# tracking entries.
|
||||
#
|
||||
run_iptables -A common -p tcp --tcp-flags ACK ACK -j ACCEPT
|
||||
run_iptables -A common -p tcp --tcp-flags RST RST -j ACCEPT
|
||||
|
@ -2707,7 +2707,7 @@ add_common_rules() {
|
||||
############################################################################
|
||||
# Enable icmp output
|
||||
#
|
||||
run_iptables -A OUTPUT -p icmp -j ACCEPT
|
||||
run_iptables -A OUTPUT -m state --state ! INVALID -p icmp -j ACCEPT
|
||||
|
||||
for f in /proc/sys/net/ipv4/conf/*/rp_filter; do
|
||||
echo 0 > $f
|
||||
|
Loading…
Reference in New Issue
Block a user