Giter Site home page Giter Site logo

honeygain-socks's Introduction

honeygain-socks

Run honeygain through a socks proxy

Usage

docker run --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e HG_USER=<your_honeygain_email> \
-e HG_PASS=<your_honeygain_password> \
-e HG_NAME=<device_name> \
-e SOCKS_HOST=<host>:<port> \
-d failedshack/honeygain-socks

You can also use SOCKS_PORT to specify the port instead. If SOCKS_HOST is omitted, it will connect to the network gateway, usually the host machine. By default, the DNS server used will be 1.1.1.1, this can be changed with DNS_SERVER.

Examples

Forward honeygain traffic over SSH

nohup ssh -TND '*:1080' <your_user>@<SSH_server> &

docker run --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e HG_USER=<your_honeygain_email> \
-e HG_PASS=<your_honeygain_password> \
-e HG_NAME=<device_name> \
-d failedshack/honeygain-socks

First we create a SSH dynamic socks proxy, then we run the container. As SOCKS_HOST is omitted, it will connect to port 1080 on the host by default. You can change just the port by setting SOCKS_PORT.

Note that the socks server in this example is publicly accessible as the container is on a different network. You may want to restrict this so other computers on your network cannot connect to it. One such way is to listen on the docker0 interface directly.

honeygain-socks's People

Contributors

failedshack avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

kosiun

honeygain-socks's Issues

Help running the image

Hello !

Thanks for this great docker image :)

Sadly I am not abble to run it with success, when I try to run a container I got the logs :

2022-10-23 01:17:03,271 INFO supervisord started with pid 1
2022-10-23 01:17:04,273 INFO spawned: 'honeygain' with pid 18
2022-10-23 01:17:04,274 INFO spawned: 'tun2socks' with pid 19
2022-10-23 01:17:05,283 INFO success: honeygain entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-10-23 01:17:05,283 INFO success: tun2socks entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-10-23 01:17:14,279 INFO exited: honeygain (exit status 1; not expected)
2022-10-23 01:17:14,339 INFO spawned: 'honeygain' with pid 25
2022-10-23 01:17:15,451 INFO success: honeygain entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-10-23 01:17:24,345 INFO exited: honeygain (exit status 1; not expected)
2022-10-23 01:17:24,523 INFO spawned: 'honeygain' with pid 31
2022-10-23 01:17:25,647 INFO success: honeygain entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-10-23 01:17:34,529 INFO exited: honeygain (exit status 1; not expected)
2022-10-23 01:17:34,658 INFO spawned: 'honeygain' with pid 37
2022-10-23 01:17:35,749 INFO success: honeygain entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-10-23 01:17:44,664 INFO exited: honeygain (exit status 1; not expected)
2022-10-23 01:17:44,834 INFO spawned: 'honeygain' with pid 43
2022-10-23 01:17:46,643 INFO success: honeygain entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-10-23 01:17:46,701 INFO exited: honeygain (exit status 1; not expected)
2022-10-23 01:17:46,703 INFO spawned: 'honeygain' with pid 49
2022-10-23 01:17:47,708 INFO success: honeygain entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-10-23 01:17:56,708 INFO exited: honeygain (exit status 1; not expected)
2022-10-23 01:17:56,716 INFO spawned: 'honeygain' with pid 55
2022-10-23 01:17:57,808 INFO success: honeygain entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Do you have any clues ?

Thank you

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.