mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 20:19:19 +01:00
Fix from 1.3.7a + switch order of RFC1918 and DHCP checking
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@218 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
429b8e7d38
commit
acce9b2379
@ -2848,6 +2848,16 @@ add_common_rules() {
|
|||||||
# BROADCASTS
|
# BROADCASTS
|
||||||
#
|
#
|
||||||
drop_broadcasts `find_broadcasts`
|
drop_broadcasts `find_broadcasts`
|
||||||
|
###########################################################################
|
||||||
|
# DHCP
|
||||||
|
#
|
||||||
|
echo "Adding rules for DHCP"
|
||||||
|
|
||||||
|
for interface in `find_interfaces_by_option dhcp`; do
|
||||||
|
run_iptables -A `input_chain $interface` -p udp --dport 67:68 -j ACCEPT
|
||||||
|
run_iptables -A OUTPUT -o $interface -p udp --dport 67:68 -j ACCEPT
|
||||||
|
done
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# RFC 1918
|
# RFC 1918
|
||||||
#
|
#
|
||||||
@ -3176,13 +3186,6 @@ define_firewall() # $1 = Command (Start or Restart)
|
|||||||
|
|
||||||
process_rules $rules
|
process_rules $rules
|
||||||
|
|
||||||
echo "Adding rules for DHCP"
|
|
||||||
|
|
||||||
for interface in `find_interfaces_by_option dhcp`; do
|
|
||||||
run_iptables -A `input_chain $interface` -p udp --dport 67:68 -j ACCEPT
|
|
||||||
run_iptables -A OUTPUT -o $interface -p udp --dport 67:68 -j ACCEPT
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Setting up ICMP Echo handling..."
|
echo "Setting up ICMP Echo handling..."
|
||||||
|
|
||||||
filterping_interfaces="`find_interfaces_by_option filterping`"
|
filterping_interfaces="`find_interfaces_by_option filterping`"
|
||||||
|
Loading…
Reference in New Issue
Block a user