Gitiles
Code Review
Sign In
gerrit.opencord.org
/
service-profile
/
abdbf30aaf0c0c1be87fbc383a55bf2b70e1aac1
/
.
/
common
/
devstack
/
net-fix.sh
blob: 5b486bd316a28cd9221529cbed1493e77879db1d [
file
] [
log
] [
blame
]
#!/bin/sh
PRIMARY
=
$
(
route
|
grep default
|
awk
'{print $NF}'
)
RULE
=
"POSTROUTING -t nat -o $PRIMARY -s 172.24.4.0/24 -j MASQUERADE"
iptables
-
C $RULE
||
iptables
-
A $RULE