Skip to content

Instantly share code, notes, and snippets.

@rnbguy
Last active June 10, 2019 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnbguy/d3a614ae296deda0f63ea47e3bdf3f1b to your computer and use it in GitHub Desktop.
Save rnbguy/d3a614ae296deda0f63ea47e3bdf3f1b to your computer and use it in GitHub Desktop.
SOCKS5 proxy for SigaVPN

Creates a socks5 proxy at localhost:1081 for SigaVPN.

If you want to use any other port, just replace 1081 in the docker compose file with your desired port.

If you want to use a specific server, change CODE to that country code or the unique code from your ovpn link.

  • If you want to connect to the second free server of New York, use CODE=ny2.
  • If you have a link https://ovpn.sigavpn.com/a1b2c3d.php from Siga admin, use CODE=a1b2c3d.
  • Default CODE is nl1.
version: '3.6'
services:
sigavpn:
container_name: sigavpn
image: rnbguy/sigavpn
dns:
- 1.1.1.1
- 1.0.0.1
cap_add:
- net_admin
devices:
- /dev/net/tun
environment:
- CODE=ny1
srelay:
container_name: srelay
image: fsvehla/srelay
network_mode: service:sigavpn
port_forward:
container_name: port_forward
image: alpine/socat
ports:
- 1081:1080
command:
- TCP-LISTEN:1080,fork,reuseaddr
- TCP:sigavpn:1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment