Coder Social home page Coder Social logo

wsocks's Introduction

wsocks

A fast and high performance socks5 proxy over websocket based on netty.

Getting started

How to build

You require the following to build wsocks:

Latest stable OpenJDK 8 +

Latest stable Apache Maven

Maven package

mvn package

Config file

application.properties
local.host=(the host of local socks5 server)
local.port=(the port of local socks5 server)
ws.host=(the host of local or remote websocket server)
ws.port=(the port of local or remote websocket server)
ws.key=(the encryption key)
ws.obfs=(enable data obfuscation:true or false)
ws.path=(the path of websocket server)
ws.scheme=(the scheme of websocket:ws or wss )

client

local.host=127.0.0.1
local.port=1081
ws.host=you.domain.org
ws.port=443
ws.key=123456
ws.obfs=true
ws.path=/way-to-freedom
ws.scheme=wss

server

ws.host=127.0.0.1
ws.port=443
ws.key=123456
ws.obfs=true
ws.path=/way-to-freedom
ws.scheme=wss

Run java jar

client

java -jar wsocks-cli-1.0-SNAPSHOT.jar --spring.config.location=/data/config/application.properties

server

java -jar wsocks-srv-1.0-SNAPSHOT.jar --spring.config.location=/data/config/application.properties

Run on docker

client

docker run -e JAVA_OPTS='-server -Xmx128m -Xms128m' -e ARGS='--spring.config.location=/data/config/application.properties' -v /data/config/application.properties:/data/config/application.properties -d  -p 1081:1081 -p 1081:1081/udp --restart=always  --name wsocks-cli  netbyte/wsocks-cli

server

docker run -e JAVA_OPTS='-server -Xmx128m -Xms128m' -e ARGS='--spring.config.location=/data/config/application.properties' -v /data/config/application.properties:/data/config/application.properties -d  -p 8088:8088 --restart=always  --name wsocks-srv  netbyte/wsocks-srv

Recommended deployment

wsocks-cli(wss 443)---->nginx/caddy(tls 443)---->wsocks-srv(ws 8088)

License

Apache License v2.0

wsocks's People

Contributors

net-byte avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.