Merge "Derive the public interface"
This commit is contained in:
commit
fe0c382bfa
@ -147,7 +147,9 @@ access the internet through PUBLIC_INTERFACE::
|
|||||||
|
|
||||||
cat > /opt/stack/devstack/local.sh << END_LOCAL_SH
|
cat > /opt/stack/devstack/local.sh << END_LOCAL_SH
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sudo iptables -t nat -A POSTROUTING -o br-ex -j MASQUERADE
|
ROUTE_TO_INTERNET=$(ip route get 8.8.8.8)
|
||||||
|
OBOUND_DEV=$(echo ${ROUTE_TO_INTERNET#*dev} | awk '{print $1}')
|
||||||
|
sudo iptables -t nat -A POSTROUTING -o $OBOUND_DEV -j MASQUERADE
|
||||||
END_LOCAL_SH
|
END_LOCAL_SH
|
||||||
chmod 755 /opt/stack/devstack/local.sh
|
chmod 755 /opt/stack/devstack/local.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user