mdusher / socksvpn

Docker image container that uses openvpn and dante to provide a SOCKS service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Containerised OpenVPN client with attached SOCKS proxy

This is a containerised OpenVPN client that has dante SOCKS server attached to it so you can connect to a VPN without putting all your traffic through it. I personally use it with an automatic proxy switcher in Google Chrome to access resources that are only available while connected to a VPN.

Requirements

  • docker
  • docker-compose
  • Privilege to grant access to NET_ADMIN and /dev/net/tun
  • An OpenVPN config

How to use

  • git clone git@github.com:mdusher/socksvpn.git
  • cd socksvpn
  • mkdir config
  • Copy your OpenVPN config to config/vpn.conf
    • If a username and password is required:
      • Create a file called config/auth and put your username on the first line and password on the second line
      • Modify config/vpn.conf and add auth-user-pass /vpn/auth to it (remove any other references to auth-user-pass)
  • Run: docker-compose up --build

This will build the docker image and run it, the SOCKS proxy should then be available at localhost:1080.

About

Docker image container that uses openvpn and dante to provide a SOCKS service


Languages

Language:Dockerfile 100.0%