- The FortiClient service in the container is designed for users to connect to a VPN with proxy support, which is important in situations where bypassing network restrictions or routing traffic through a specific proxy server is required.
- Tailscale is used to create a secure network infrastructure that connects all devices (containers, servers, workstations) through secure tunnels. It is especially useful for remote access to resources and building distributed networks.
VPNADDR=vpn.example.com:212
VPNUSER=username
VPNPASS=password
VPNTIMEOUT=60
TS_HOSTNAME=vpn-in-docker
TS_STATE_DIR=/var/run/tailscale
- Clone this repository.
- Edit the
.env
file. - Run:
docker-compose up -d
- Open the Tailscale logs and follow the link for authorization:
docker logs tailscale
- Download and log in to Tailscale for your platform on the official website.
Testing via curl:
curl -x socks5://vpn-in-docker:1080 example.com
Configuration for SSH and GIT.
cat ~/ssh/config
Host example.com
Identityfile ~/.ssh/id_rsa
ProxyCommand /usr/bin/nc -X 5 -x vpn-in-docker:1080 %h %p