Git Product home page Git Product logo

socatorssl's Introduction

SocaTorSSL = SOCAT + TOR + SSL

Based on https://github.com/Arno0x/Docker-Socator

SocaTorSSL acts as an SSL secured clear net proxy to a hidden service on the TOR network.

RUN Environment Variables

  • ALLOWED_RANGE : Restrict the IP addresses that are allowed to connect to this service by specifying an environment variable and using CIDR notation.
  • TOR_SITE : The .onion address to your hidden service
  • TOR_SITE_PORT : The port to connect to on your TOR hidden service
  • SSL_CERT : SSL certificate filename (PEM) *
  • SSL_KEY : SSL key filename (PEM) *
  • Certificate PEM files should be placed in the host container directory /etc/socatorssl/certs/

Mounting SSL Certificates

If you generate or already have SSL certificates on your host server you can mount the folder that contains the certificates to the docker container directory /etc/socatorssl/certs/. See example below.

Example Usage

Host a proxy service to allow a device that has problems connecting over TOR to connect to a service that is only accessible over TOR.

Eg. BlueWallet Android -> Umbrel Node

Pull
docker pull damanic/socatorssl
Run

In the following example /path/to/ssl/certificate points to the host directory that contains your SSL certificates

docker run -d \
    -p 5100:5100 \
    -e "PUBLIC_PORT=5100" \
    -e "TOR_SITE=23eqduMyfAkeafs4awr2314d.onion" \
    -e "TOR_SITE_PORT=50001" \
    -e "SSL_CERT=cert.pem" \
    -e "SSL_KEY=key.pem" \
    --name socatorssl \
    --mount type=bind,source=/path/to/ssl/certificate,target=/etc/socatorssl/certs/ \
    damanic/socatorssl

You can now access the tor hidden service via https://yourdomain.com:5100


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.