Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ohpe/socks-my-vpn

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ohpe/socks-my-vpn

  • v0.0.0-20181023142958-e1e08c6e9433
  • Source
  • Go
  • Socket score

Version published
Created
Source

Socks my VPN

This is a small Docker image which blends together OpenVPN-Client and a SOCKS proxy server. Use it to isolate network changes.

Usage

bash run.sh ~/path/to/vpn-folder/

Alternatively:

docker run \
    --rm \
    -it \
    --privileged \
    --device=/dev/net/tun \
    --cap-add=NET_ADMIN \
    --env-file socks.config \
    -p 1080:1080 \
    --volume "~/path/to/vpn-folder/:/vpn/:ro" \
    --sysctl net.ipv6.conf.all.disable_ipv6=0 \
    ohpe/socks-my-vpn:latest

SOCKS proxy server

The socks5 server is written in Go and forked from https://github.com/serjs/socks5-server. If works with or without authentication and the configurations can be set in the socks.config file.

Supported config parameters:

ENV variableTypeDefaultDescription
PROXY_USERStringEMPTYSet proxy user (also required existed PROXY_PASS)
PROXY_PASSWORDStringEMPTYSet proxy password for auth, used with PROXY_USER
PROXY_PORTString1080Set listen port for application

Test

Connect to proxy:

without auth:

curl --proxy socks5://127.1:$PROXY_PORT ipinfo.io

with auth:

curl --socks5 --user $PROXY_USER:$PROXY_PASSWORD 127.1:$PROXY_PORT ipinfo.io

FAQs

Package last updated on 23 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc