Creates droplet in DigitalOcean with SOCKS5 proxy server and IPsec VPN server. Based on SOCKS5 server and IPsec VPN server Docker images.
Create file "vars.tfvars" with terraform input variables(example). Input variables description.
After, in cloned repository:
terraform init
terraform apply -var-file="vars.tfvars"
Configure IPsec/L2TP VPN Clients
Due to an IPsec/L2TP limitation and an Libreswan issue, it is not currently possible to connect multiple devices simultaneously from behind the same NAT (e.g. home router). More info here.
-
do_token
- DigitalOcean access token. https://developers.digitalocean.com/documentation/v2/#authentication -
droplet_name
- Droplet name in DigitalOcean -
region
- A datacenter where droplet will be depoyed. https://developers.digitalocean.com/documentation/v2/#regions -
ssh_key_path
- Absolute path to ssh key to install in droplet -
proxy_user
- Username to authenticate in SOCKS5 proxy -
proxy_password
- Password to authenticate in SOCKS5 proxy -
proxy_port
- Network port for SOCKS5 proxy -
vpn_user
- VPN username. DO NOT use these special characters within values: \ " ' -
vpn_password
- VPN password. DO NOT use these special characters within values: \ " ' -
vpn_ipsec_psk
- IPsec pre-shared key. DO NOT use these special characters within values: \ " '