+grml-terminalserver (0.82) unstable; urgency=low
+
+ * Improve handling of NAT/gateway feature, thanks - Wolfgang Karall!
+
+ -- Michael Prokop <mika@grml.org> Mon, 4 Dec 2006 12:20:21 +0100
+
grml-terminalserver (0.81) unstable; urgency=low
* Fix iptables problem when not using the NAT/gateway feature.
NETWORK_=""
OPTIONS_=""
BOOT_ARGS_=""
-NAT_INTERFACE_=""
+NAT_INTERFACE_="none"
###
NAMESERVERS_=`netGetNameservers warn`
GW_=`netGetDefaultGateway warn`
GW_DEV_=`/sbin/ip route get "$GW_" | awk '{ print $3; exit; }'`
- if [ "$GW_DEV_" != "$INTERFACE_" ]; then
+ if [ "$GW_DEV_" != "$INTERFACE_" ] && [ "$GW_DEV_" != "" ]; then
# GW_DEV_ of server is not the same device as the one serviced by dhcpd
# so it doesn't make sense to provide the GW_ address to the clients
local do_nat_="YES"
GW_=
NAT_INTERFACE_="none"
fi
- else
- # no NAT, no sensible gateway
- GW_=
- NAT_INTERFACE_="none"
fi