diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index b8f0662..100862e 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -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 diff --git a/options.default b/options.default index c5f2b47..836f1ed 100755 --- a/options.default +++ b/options.default @@ -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+