X-Git-Url: http://lab.mitty.jp/git/?a=blobdiff_plain;f=iptables%2Fsetnapt.sh;h=6093f6df9bf742de75fc3c455420339571cc40d0;hb=39eda0b67765385af21a00eb6d61e1d9b9915e51;hp=d34ba375e9f3856f6f56cf993defd6350738a7e6;hpb=4a36a1b26f4cdc2dc3d06d7b3c4ac895b0083b2f;p=lab.git diff --git a/iptables/setnapt.sh b/iptables/setnapt.sh index d34ba37..6093f6d 100644 --- 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