Skip to content

takuya-o/wstunnel-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for wstunnel

Starting Docker Image

$ docker run -d --name=wstunnel --hostname=wstunnel.example.com \
	-p 8022 -p 8080 -restart always \
	--env SERVER=example.com takuyao/wstunnel:latest

Forwarding Ports

  • WebSocket 8022 to SERVER:22 for sshd
  • WebSocket 8080 to SERVER:3128 for squid

Client Sample

$ npm install -g wstunnel
$ wstunnel -t 8022 wss://server.example.com:8022/ &
$ ssh user@localhsot -p 8022