[go: up one dir, main page]

Skip to content

DeerCloud/docker-gost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gost

a simple tunnel written in golang.

Docker Hub · Project Source · Telegram Channel


latest version

version
deercloud/gost:latest
deercloud/gost:current
deercloud/gost:2.7.0

environment variables

name value
SERVER_ADDR 0.0.0.0
SERVER_PORT 8080
DNS 8.8.8.8,8.8.4.4
PROTOCOL socks5
TRANSPORT tcp
USERNAME -
PASSWORD -

Pull the image

$ docker pull deercloud/gost

Start a container

$ docker run -p 8080:8080 -p 8080:8080/udp -d \
  --restart always --name=gost deercloud/gost

Display logs

$ docker logs gost

  HOST: 0.0.0.0
  PORT: 8080
  Protocol: socks5
  Transport: tcp

  gost start!

Example of Shadowsocks

Server (example.com)

setting emcrypt-method in USERNAME

$ docker run -p 8838:8080 -p 8838:8080/udp -d \
  -e PROTOCOL=ss \
  -e USERNAME=chacha20 \
  -e PASSWORD=deercloud \
  --restart always --name=gost_shadowsocks deercloud/gost

Client (ss-local)

$ ss-local -s example.com -p 8838 -l 1080 -m chacha20 -k deercloud

2019-01-06 15:22:17 INFO: initializing ciphers... chacha20
2019-01-06 15:22:17 INFO: listening at 127.0.0.1:1080

Browser (curl)

$ curl -x socks5h://127.0.0.1:1080 http://www.google.com/ -I

HTTP/1.1 200 OK
Date: Sun, 06 Jan 2019 07:26:15 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked
Accept-Ranges: none
Vary: Accept-Encoding

or Client (Surge 3)*

Surge 3

Example of Socks5 over TLS

Server (example.com)

$ docker run -p 8838:8080 -p 8838:8080/udp -d \
  -e PROTOCOL=socks5 \
  -e TRANSPORT=tls \
  -e USERNAME=deercloud \
  -e PASSWORD=123456 \
  --restart always --name=gost_socks5_over_tls deercloud/gost

Client (gost)

$ gost -L=:1080 -F=socks5+tls://deercloud:123456@example.com:8838

Browser (curl)

$ curl -x socks5h://127.0.0.1:1080 http://www.google.com/ -I

HTTP/1.1 200 OK
Date: Sun, 06 Jan 2019 07:30:19 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked
Accept-Ranges: none
Vary: Accept-Encoding

Client (Surge 3)*

Surge 3

About

🐳 gost - a simple tunnel written in golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published