Gitiles
Code Review
Sign In
gerrit.opencord.org
/
service-profile
/
53f0135b9c64baf8160f997dca981190a777bed0
/
.
/
common
/
devstack
/
net-fix.sh
blob: 5b486bd316a28cd9221529cbed1493e77879db1d [
file
] [
log
] [
blame
]
Scott Baker
5042166
2016-06-27 22:09:48 -0700
[
diff
] [
blame
]
1
#!/bin/sh
2
3
PRIMARY
=
$
(
route
|
grep default
|
awk
'{print $NF}'
)
4
RULE
=
"POSTROUTING -t nat -o $PRIMARY -s 172.24.4.0/24 -j MASQUERADE"
5
6
iptables
-
C $RULE
||
iptables
-
A $RULE