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