#------------------------------------------------------------------------------ # /etc/rc.d/fwrules.post.dhcp # # Creation: 04.01.2003 od # Last Update: 04.01.2003 od #------------------------------------------------------------------------------ if [ "$OPT_DHCRELAY" = "yes" ] then # DHCPDISCOVER is done with ip adress 0.0.0.0 so we have to open # INPUT table for these packages idx=1 while [ "$idx" -le "$DHCRELAY_IF_N" ] do eval ipname='$DHCRELAY_IF_'$idx /sbin/iptables -A INPUT -p udp -i $ipname --source-port 68 --destination-port 67 -j ACCEPT idx=`/usr/bin/expr $idx + 1` done fi