NAT setup: do not fail if local route is present
authorMichael Prokop <mika@grml.org>
Tue, 11 Sep 2012 17:11:37 +0000 (19:11 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 11 Sep 2012 17:11:39 +0000 (19:11 +0200)
commit00ee2943bfe06b976cd72b0c4572d00ff9abdbd2
treeef1d9e8f70f25cc401da9ee9a1da2998946a7e5b
parenta1d4eea356a72d92846e54c033d481bd832a70cf
NAT setup: do not fail if local route is present

If the system running grml-terminalserver uses the gateway
IP address and it's a local route then the loopback device
is the matching device. This doesn't make any sense for the
NAT setup, therefore skip it.

Without this change the iptables code gets executed with
invalid arguments and is failing.
grml-terminalserver-config