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
fi
if [ $LANDHCPSERVER ]; then
$IPTABLES -A INPUT -i ${INTIF} -p udp --dport 67:68 -j ACCEPT
$IPTABLES -A INPUT -i ${INTIF} -p udp -d 255.255.255.255 --dport 67 -j ACCEPT
if [ "$LANDHCPSERVER" ]; then
for i in $LANDHCPSERVER; do
$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
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
#CLAMPMSS="ppp0 eth0"
# Do we run a LAN DHCP server?
#LANDHCPSERVER=1
# Do we run a LAN DHCP server? Put the interfaces here
# where this server is providing services.
#LANDHCPSERVER="eth0 eth1"
# Internal Interface
#INTINF=ppp+