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