blob: 3f390851bd44d1f10be29bc4760768f3f5ba44d3 (
plain)
- # Based on A10dhcpd.rul by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>:
- if [ -n "$INTERNAL" ]; then
- for i in $INTERNAL; do
- ipnm_cache $i
- case $MASQMETHOD in
- ipfwadm)
- $IPFWADM -I -i accept -S 0.0.0.0/0 67 -D 255.255.255.255/32 68 -W ${i%%:*} -P udp
- # $IPFWADM -O -i accept -S $IPOFIF/32 68 -D 255.255.255.255/32 67 -W ${i%%:*} -P udp
- ;;
- ipchains)
- $IPCHAINS -I input -j ACCEPT -s 0.0.0.0/0 67 -d 255.255.255.255/32 68 -i ${i%%:*} -p udp
- # $IPCHAINS -I output -j ACCEPT -s $IPOFIF/32 68 -d 255.255.255.255/32 67 -i ${i%%:*} -p udp
- ;;
- iptables)
- $IPTABLES -I INPUT -j ACCEPT -s 0.0.0.0/0 67 -d 255.255.255.255/32 68 -i ${i%%:*} -p udp
- # $IPTABLES -I OUTPUT -j ACCEPT -s $IPOFIF/32 68 -d 255.255.255.255/32 67 -i ${i%%:*} -p udp
- ;;
- esac
- done
- fi
|