Change LANDHCPSERVER to accept network interfaces

master
bbruns 2010-10-02 03:39:51 +00:00
parent 7b4b7fb787
commit f7ad83ea0b
2 changed files with 8 additions and 6 deletions

View File

@ -400,10 +400,11 @@ if [ $PORTFW ] && [ $NAT ]; then
reset_color reset_color
fi fi
if [ $LANDHCPSERVER ]; then if [ "$LANDHCPSERVER" ]; then
$IPTABLES -A INPUT -i ${INTIF} -p udp --dport 67:68 -j ACCEPT for i in $LANDHCPSERVER; do
$IPTABLES -A INPUT -i ${INTIF} -p udp -d 255.255.255.255 --dport 67 -j ACCEPT $IPTABLES -A INPUT -i $i -p udp --dport 67:68 -j ACCEPT
$IPTABLES -A INPUT -i $i -p udp -d 255.255.255.255 --dport 67 -j ACCEPT
done
fi fi
if [ -s "$BASEDIR/include/ipv4_custom_mark" ]; then if [ -s "$BASEDIR/include/ipv4_custom_mark" ]; then

View File

@ -31,8 +31,9 @@ MODPROBE=/sbin/modprobe
# Space separated list of interfaces to apply this on # Space separated list of interfaces to apply this on
#CLAMPMSS="ppp0 eth0" #CLAMPMSS="ppp0 eth0"
# Do we run a LAN DHCP server? # Do we run a LAN DHCP server? Put the interfaces here
#LANDHCPSERVER=1 # where this server is providing services.
#LANDHCPSERVER="eth0 eth1"
# Internal Interface # Internal Interface
#INTINF=ppp+ #INTINF=ppp+