Change LANDHCPSERVER to accept network interfaces
parent
7b4b7fb787
commit
f7ad83ea0b
|
@ -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
|
||||
|
|
|
@ -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+
|
||||
|
|
Loading…
Reference in New Issue