#------------------------------------------------------------------------------ # /etc/rc.d/fwrules.post.dhcp # # Creation: 04.01.2003 od # Last Update: $Id$ #------------------------------------------------------------------------------ if [ "$OPT_DHCP" = yes ] then # DHCPDISCOVER is done with ip adress 0.0.0.0 so we have to open # INPUT table for these packages for idx in `seq 1 $IP_NET_N` do eval range='$DHCP_RANGE_'$idx if [ -n "$range" ] then eval dev='$IP_NET_'$idx'_DEV' iptables -A INPUT -p udp -i $dev --source-port 68 --destination-port 67 -j ACCEPT fi done fi