Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker support #12

Closed
ghost opened this issue Mar 24, 2016 · 1 comment
Closed

Add docker support #12

ghost opened this issue Mar 24, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 24, 2016

We can put chisel into docker image.
Here is my docker image

https://github.com/netroby/alpine-chisel
https://hub.docker.com/r/netroby/alpine-chisel/

and these guide how to using docker image

Both server and client need docker installed.

Server side

There be a proxy server listen on 127.0.0.1:8123 on server. (squid or polipo)
create a file /etc/chisel.json, with content

{
    "USER:AVERYSTRONGPASSWORD": [
        ""
    ]
}

run command

docker run -d --restart=always --name chisel-server  -v /etc/chisel.json:/etc/chisel.json -p 0.0.0.0:8719:8719  netroby/alpine-chisel /bin/chisel server -v --port 8719 --authfile /etc/chisel.json

Client side

$SERVER_IP will be your chisel server ip address
run command

docker run -d --restart=always --name chisel  -p 0.0.0.0:8123:8123  netroby/alpine-chisel /bin/chisel client -v --keepalive 300s --auth USER:AVERYSTRONGPASSWORD $SERVER_IP:8719 8123

After it success connected to chisel server, the localhost:8123 will forward tcp connection to remote server proxy server port. you will be access to the free network

@jpillora
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant