Gitiles
Code Review
Sign In
gerrit.opencord.org
/
xos
/
409409ac1378e9c0b64bff5991293f00207bdfaa
/
.
/
xos
/
configurations
/
common
/
devstack
/
net-fix.sh
blob: 5b486bd316a28cd9221529cbed1493e77879db1d [
file
] [
log
] [
blame
]
Andy Bavier
20aec61
2015-12-17 15:46:00 -0500
[
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