Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- declare -A config=(
- # Atlanta
- ["seed-rl"]='seed-rl'
- ['atl10']='Atlanta-10'
- ['atl11']='Atlanta-11'
- ['atl12']='Atlanta-12'
- # New York
- ['nyc02']='NewYork-02'
- ['nyc10']='NewYork-10'
- ['nyc11']='NewYork-11'
- ['nyc14']='NewYork-14'
- ['nyc16']='NewYork-16'
- ['nyc20']='NewYork-20'
- )
- if [[ -z $STY ]]; then
- exec screen -S vpn -d -m /bin/bash "$0" "$1"
- exit $?
- fi
- cd "/home/robbiel811/vpn configs"
- echo password | sudo -S openvpn --config "${config[$1]}.ovpn"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement