Added DHCP LAN server allow

master
bruns@2mbit.com 2009-08-13 21:12:04 +00:00
parent 509faebf6d
commit 3fbe227b80
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ BLOCKINCOMING=1
# Clamp MSS, useful on DSL/VPN links # Clamp MSS, useful on DSL/VPN links
#CLAMPMSS=ppp0 #CLAMPMSS=ppp0
# Do we run a LAN DHCP server?
LANDHCPSERVER=1
# Port forwardings, requires NAT # Port forwardings, requires NAT
PORTFW=$BASEDIR/port-forwards PORTFW=$BASEDIR/port-forwards

View File

@ -97,6 +97,9 @@ if [ $PORTFW ] && [ $NAT ]; then
done done
fi fi
if [ $LANDHCPSERVER ]; then
$IPTABLES -A INPUT -i $INTIF -s 0.0.0.0 -j ACCEPT
fi
if [ $NAT ]; then if [ $NAT ]; then
for i in $NATRANGE; do for i in $NATRANGE; do