Skip to content

Running cow with docker with C S

netroby edited this page Mar 29, 2016 · 1 revision

If you want to visit website which blocked by Greate Firewall. You need to bought a vps location outside china. You can run Cow server on it. and your local PC, you need install cow also.

By using docker, you can make things very easy.

to install docker, you may following the guide on https://www.docker.com

after you have installed docker. you can following this guide.

server side

create /etc/cow.rc file

listen = cow://chacha20:[email protected]:7878

run command

docker run -d --restart=always --name cow-server -v /etc/cow.rc:/root/.cow/rc -p 0.0.0.0:7878:7878  netroby/alpine-cow cow  -v

client side

create /etc/cow.rc file

listen = http://0.0.0.0:7878
proxy = cow://chacha20:VERYSTRONGPASSWORD@SERVER_IP_ADDRESS:7878
alwaysProxy = true

run command

docker run -d --restart=always --name cow -v /etc/cow.rc:/root/.cow/rc -p 0.0.0.0:7878:7878  netroby/alpine-cow cow  -v -debug

Remeber replace password with (VERYSTRONGPASSWORD) and server ip address with (SERVER_IP_ADDRESS)

Now you can connect with your 127.0.0.1:8787 as http proxy to visit the blocked website.