Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.96 KB

README-VPN.md

File metadata and controls

48 lines (30 loc) · 1.96 KB

Overview

The VPN is based on:

Note:

  • The VPN server is provided by SoftEther running on the RDP Linux server.
  • SoftEther is used because it does not have the 2 user limitation like OpenVPN.
  • The SoftEther VPN server is only accessible by whitelisted client IP addresses, e.g. those managed by terraform.
  • The Mac VPN client (described below) is setup NOT to route all traffic to it.

Server setup

  • run ./bin/vpn_server_setup.sh to create the vpn - you can run this multiple times (e.g. after adding new users).

vpn server setup

Mac OS VPN client management

  • run sudo ./bin/vpn_mac_connect.sh to create vpn and to connect to it.
  • run sudo ./bin/vpn_mac_connect_with_keepalive to create vpn and to connect to it, and periodically check it.

vpn mac connect

  • run sudo ./generated/vpn_mac_delete.sh to delete the vpn
  • run sudo ./generated/vpn_mac_status.sh to report on the vpn status

Non Mac OS VPN client management

  • VPN is L2TP+IPSEC
  • Pre-shared key is stored in: ./generated/vpn_shared_key
  • Users and password are stored in: ./generated/vpn_users

Add VPN Users

  • Multiple usernames and passwords may be set with the following pattern: username:password;user2:pass2;user3:pass3
  • Username and password are separated by :. Each pair of username:password should be separated by ;
  • If not set a single user account with username ("user1") and a random weak password is created.
  • You can add users to the file: ./generated/vpn_users
  • If the file ./generated/vpn_users doesn't exist on running ./generated/vpn_server_setup.sh, it will be created automatically
  • The pre-shared key is created automatically in the file ./generated/vpn_shared_key