Skip to content

Terraform configuration to run droplet in DigitalOcean with SOCKS5 and IPsec VPN

Notifications You must be signed in to change notification settings

toshyak/tf-vpn-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform configuration for SOCKS5 proxy and IPsec VPN server in DigitalOcean

Creates droplet in DigitalOcean with SOCKS5 proxy server and IPsec VPN server. Based on SOCKS5 server and IPsec VPN server Docker images.

Usage


Create file "vars.tfvars" with terraform input variables(example). Input variables description.

After, in cloned repository:

terraform init
terraform apply -var-file="vars.tfvars"

Next steps


Configure IPsec/L2TP VPN Clients

Important notes


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.

Input variables


  • 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: \ " '

About

Terraform configuration to run droplet in DigitalOcean with SOCKS5 and IPsec VPN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published