projects
/
lab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* FIX script aborts if nonexistent devices are in the script argument
[lab.git]
/
iptables
/
setnapt.sh
diff --git
a/iptables/setnapt.sh
b/iptables/setnapt.sh
index
d34ba37
..
6093f6d
100644
(file)
--- a/
iptables/setnapt.sh
+++ b/
iptables/setnapt.sh
@@
-42,7
+42,7
@@
for GW in ${GATEWAYS}; do
IPADDR=`/sbin/ip addr show dev ${GW} | grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1`
if [ -z "${IPADDR}" ]; then
# device doesn't seem to have an IP address
- break
+ continue
fi
## set masquerade rule to all devices