Update manual guide to not harcode br-ex
Make it same as quick guide to get public interface Closes-Bug: #1477793 Change-Id: I69c74c01aa196c6150148798a43d413f0cc7e84f
This commit is contained in:
parent
0d06ed6df9
commit
6b3e7cfda1
@ -85,9 +85,11 @@ Create a local.sh to automatically make necessary networking changes during
|
||||
the devstack deployment process. This will allow bays spawned by magnum to
|
||||
access the internet through PUBLIC_INTERFACE::
|
||||
|
||||
cat > local.sh << END_LOCAL_SH
|
||||
cat > local.sh << 'END_LOCAL_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
|
||||
chmod 755 local.sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user