wssocks

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 5 Imported by: 0

README

wssocks

socks5 over websocket.

wssocks can proxy TCP and UDP(not implemented currently) connections via socks5. But the socks5 data is wrapped in websockets and then sent to server.

Features

  • Transporte data through firewalls
    In some network environment, due to the restricts of firewalls, only http(s)/websocket is allowed. wssocks is mainly useful for passing through firewalls. We can access the inner netwrok (such as ssh) behind the firewalls via socks protocol wrapped in websockets.
  • High performance
    wssocks only create one TCP connection (websocket) per client to handle multiple socks5 connections, which achieves much higher performance.
  • Easy to use
    No configures, no dependences, just a single executable including client and server.

Install

go get -u github.com/genshen/wssocks

You can also download it from release page.

Usage

server side
wssocks server --addr :1088
client side
wssocks client --addr :1080 --remote ws://example.com:1088
# using ssh to connect to example.com which may be behind firewalls.
ssh -o ProxyCommand='nc -x 127.0.0.1:1080 %h %p' user@example.com 

And set your socks5 server address as :1080 in your socks5 client (such as proxifier or proxy setting in mac's network preferences) if you need to use socks5 proxy in more situations, not only ssh in terminal.

help
wssocks --help
wssocks client --help
wssocks server --help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
wss

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL