X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-terminalserver-config;h=9b01239eceb80f13279186f12894395d1d1a162d;hb=608a4ec394f98c12e0cc5a8f36f80f3bdd5d5190;hp=25836e5119fd7f5df04ae0af2f3d0820ae7c5dd7;hpb=17edea1f26bf27b35d14ab06f282bdd920e724f7;p=grml-terminalserver.git diff --git a/grml-terminalserver-config b/grml-terminalserver-config index 25836e5..9b01239 100755 --- a/grml-terminalserver-config +++ b/grml-terminalserver-config @@ -194,8 +194,8 @@ for addresses from 192.168.0.101 to (and including) 192.168.0.200. NAMESERVERS_=`netGetNameservers warn` GW_=`netGetDefaultGateway warn` - GW_DEV_=`/sbin/ip route get "$GW_" | awk '{ print $3; exit; }'` - if [ "$GW_DEV_" != "$INTERFACE_" ] && [ "$GW_DEV_" != "" ]; then + GW_DEV_=`/sbin/ip route get "$GW_" | sed 's/^local //' | awk '{ print $3; exit; }'` + if [ "$GW_DEV_" != "$INTERFACE_" ] && [ "$GW_DEV_" != "" ] && [ "$GW_DEV_" != "lo" ]; 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"