All Projects → yassine → soxy-driver

yassine / soxy-driver

Licence: other
A docker networking driver that transparently tunnels docker containers TCP traffic through a proxy

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to soxy-driver

alternative-frontends
🔐🌐 Privacy-respecting web frontends for popular services
Stars: ✭ 821 (+3184%)
Mutual labels:  tor, anonymity
Socks5 Http Client
SOCKS v5 HTTP client implementation in JavaScript for Node.js.
Stars: ✭ 253 (+912%)
Mutual labels:  tor, socks
Tor Socks Proxy
🐳 Tiny Docker(🤏 10MB) image as 🧅 Tor SOCKS5 proxy 🛡
Stars: ✭ 218 (+772%)
Mutual labels:  tor, socks
Digital Rights
Promote digital rights in China
Stars: ✭ 186 (+644%)
Mutual labels:  tor, anonymity
tor-ip-changer
request new identity every X seconds interval using TOR client
Stars: ✭ 233 (+832%)
Mutual labels:  tor, anonymity
Kuhero
websocket proxy on heroku
Stars: ✭ 192 (+668%)
Mutual labels:  tor, socks
Invizible
Android application for Internet privacy and security
Stars: ✭ 251 (+904%)
Mutual labels:  tor, anonymity
Onionr
Private Decentralized Communication Network 🎭 🧅
Stars: ✭ 84 (+236%)
Mutual labels:  tor, anonymity
Tor-IP-Addresses
Hourly checked and updated list of IP Addresses of Tor and Tor Exit Nodes
Stars: ✭ 182 (+628%)
Mutual labels:  tor, anonymity
alpine-tor-docker
A minimal Docker image with the Tor daemon running in the background.
Stars: ✭ 23 (-8%)
Mutual labels:  tor, anonymity
Private Tor Network
Run an isolated instance of a tor network in Docker containers
Stars: ✭ 125 (+400%)
Mutual labels:  tor, anonymity
tordam
A library for peer discovery inside the Tor network
Stars: ✭ 13 (-48%)
Mutual labels:  tor, anonymity
Onionbrowser
An open-source, privacy-enhancing web browser for iOS, utilizing the Tor anonymity network
Stars: ✭ 1,702 (+6708%)
Mutual labels:  tor, anonymity
Adamant Im
ADAMANT Decentralized Messenger. Progressive Web Application (PWA)
Stars: ✭ 202 (+708%)
Mutual labels:  tor, anonymity
Tor Android
Tor binary and library for Android
Stars: ✭ 90 (+260%)
Mutual labels:  tor, anonymity
Torghostng
TorghostNG - Make your internet traffic anonymized through Tor network and Privoxy. Rewritten from TorGhost with Python 3
Stars: ✭ 241 (+864%)
Mutual labels:  tor, anonymity
Jacobappelbaumleavestor
🔍 An investigation into Jacob Appelbaum leaving the Tor Project
Stars: ✭ 75 (+200%)
Mutual labels:  tor, anonymity
Tinytor
A tiny Tor client implementation (in pure python).
Stars: ✭ 80 (+220%)
Mutual labels:  tor, anonymity
alias-wallet
Official Alias source code repository
Stars: ✭ 5 (-80%)
Mutual labels:  tor, anonymity
kali-whoami
Whoami provides enhanced privacy, anonymity for Debian and Arch based linux distributions
Stars: ✭ 1,424 (+5596%)
Mutual labels:  tor, anonymity

soxy-driver

image Build Status

A Linux docker networking driver that transparently tunnels underlying networks TCP traffic through a proxy. The driver uses docker's core networking library libnetwork and benefits thus from its stability.

With respect to TCP-tunneling, redsocks is used behind the scenes, supporting therefore many proxy tunneling strategies : socks4, socks5, http-connect, http-relay.

The driver embeds a tor instance that is used as a fallback socks proxy.

Usage

The following example uses implicitly the driver embedded fallback tor proxy:

  1. Pull the image
    docker pull yassine/soxy-driver
    
  2. Run the driver container
    docker run -d -v '/var/run/docker.sock':'/var/run/docker.sock' -v '/run/docker/plugins':'/run/docker/plugins' --net host --name soxy-driver --privileged yassine/soxy-driver
    
  3. Create a network based on the driver
    docker network create -d soxy-driver soxy_network
    

Note : If you want to test against another proxy than the embedded tor-based one, you can pass the proxy params using the -o label. For example : docker network create -d soxy-driver soxy_network -o "soxy.proxyaddress"="%PROXY_HOST%" -o "soxy.proxyport"="%PROXY_PORT%", see the next section for all available configuration options.

You can now create a container that uses the network formerly created and test the tunneling:

docker run --rm -it --dns 8.8.8.8 --net soxy_network uzyexe/curl -s https://check.torproject.org/api/ip

Output : {"IsTor":true,"IP":"%SOME_TOR_EXIT_NODE_IP_HERE%"}

Note : It is mandatory to specify a DNS server when creating containers, as by default docker will configure one through the loopback interface (127.0.0.22 as bind address). As per se, it is impossible otherwise for the driver to intercept/tunnel the DNS traffic and prevent from dns-leaks.

Configuration options

Configuration options are passed when creating a given network (See example above). Available options are :

Option Description Default
soxy.proxyaddress The address of the proxy through which the traffic is redirected localhost
soxy.proxyport The proxy port A random port that maps to the embedded tor instance socks port
soxy.proxytype The proxy type socks5 (available choices : socks4, socks5, http-connect, http-relay)
soxy.proxyuser The proxy user if the proxy requires Authentication none
soxy.proxypassword The proxy password if the proxy requires Authentication none
soxy.blockUDP Block networks outgoing UDP traffic but DNS false

Configuration params maps to one given network only, therefore it would be passed when creating any network through docker network create. If the network configuration is skipped, the driver falls-back on the singleton embedded tor instance socks proxy.

Namespacing

If for some reason you want to run multiple instances of the driver on a given docker host, the driver supports a namespacing feature. When running the driver container, you can pass an environment variable DRIVER_NAMESPACE while creating its container.

Example:

  1. Assume a namespace 'my-namespace'
  2. You would run the driver container as follows:
    docker run -d -e DRIVER_NAMESPACE='my-namespace' -v '/var/run/docker.sock':'/var/run/docker.sock' -v '/run/docker/plugins':'/run/docker/plugins' --net host --privileged yassine-soxy-driver
    
  3. The driver name you would use should now be prefixed by my-namespace__ as follows :
    docker network create -d my-namespace__soxy-driver namespaced_driver_soxy_network
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].