Gitiles
Code Review
Sign In
gerrit.opencord.org
/
service-profile
/
3670f448a2d287e5471eeb53f20fc9c4832f19b0
/
.
/
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