Skip to content

Commit

Permalink
Update voodoo-vpn.sh w/ new AWS metadata endpoints
Browse files Browse the repository at this point in the history
AWS endpoints "instance-data" have been changed to "169.254.169.254" and "public-hostname" has been changed to "public-ipv4."
  • Loading branch information
matthewdfuller committed Feb 2, 2015
1 parent ac70440 commit 96054ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voodoo-vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ VPN_USER=johndoe
VPN_PASSWORD=unsecure

# Those two variables will be found automatically
PRIVATE_IP=`wget -q -O - 'http://instance-data/latest/meta-data/local-ipv4'`
PUBLIC_IP=`wget -q -O - 'http://instance-data/latest/meta-data/public-hostname'`
PRIVATE_IP=`wget -q -O - 'http://169.254.169.254/latest/meta-data/local-ipv4'`
PUBLIC_IP=`wget -q -O - 'http://169.254.169.254/latest/meta-data/public-ipv4'`

apt-get install -y openswan xl2tpd

Expand Down

0 comments on commit 96054ee

Please sign in to comment.