From 3fbe227b80e3c08c7746156226c4f9afe51b0a46 Mon Sep 17 00:00:00 2001 From: "bruns@2mbit.com" Date: Thu, 13 Aug 2009 21:12:04 +0000 Subject: [PATCH] Added DHCP LAN server allow --- options.default | 3 +++ rc.firewall | 3 +++ 2 files changed, 6 insertions(+) diff --git a/options.default b/options.default index dacc8eb..29fe425 100755 --- a/options.default +++ b/options.default @@ -21,6 +21,9 @@ BLOCKINCOMING=1 # Clamp MSS, useful on DSL/VPN links #CLAMPMSS=ppp0 +# Do we run a LAN DHCP server? +LANDHCPSERVER=1 + # Port forwardings, requires NAT PORTFW=$BASEDIR/port-forwards diff --git a/rc.firewall b/rc.firewall index 4d0b310..4080960 100755 --- a/rc.firewall +++ b/rc.firewall @@ -97,6 +97,9 @@ if [ $PORTFW ] && [ $NAT ]; then done fi +if [ $LANDHCPSERVER ]; then + $IPTABLES -A INPUT -i $INTIF -s 0.0.0.0 -j ACCEPT +fi if [ $NAT ]; then for i in $NATRANGE; do