Giter VIP home page Giter VIP logo

opensocks's Introduction

OpenSocks

A simple multiplexing proxy.

Features

  • Support socks5 proxy
  • Support http(s) proxy

Usage

Usage of ./opensocks:
  -S	server mode
  -bypass
    	bypass private ip
  -compress
    	enable data compression
  -http string
    	local http proxy address (default ":8008")
  -http-proxy
    	enable http proxy
  -k string
    	encryption key (default "6w9z$C&F)J@NcRfUjXn2r4u7x!A%D*G-")
  -l string
    	local socks5 proxy address (default "127.0.0.1:1080")
  -obfs
    	enable data obfuscation
  -p string
    	protocol tcp/ws/kcp (default "tcp")
  -s string
    	server address (default ":8081")
  -v	enable verbose output

Run

Run client

./opensocks-linux-amd64 -s=YOUR_DOMIAN:8081 -l=127.0.0.1:1080 -k=123456 -p kcp -obfs

Run client(enable http proxy)

./opensocks-linux-amd64 -s=YOUR_DOMIAN:8081 -l=127.0.0.1:1080 -k=123456 -p kcp -obfs -http-proxy -http 127.0.0.1:8000

Run server

./opensocks-linux-amd64 -S -k=123456 -obfs -p kcp

Docker

Run client

docker run -d --restart=always  --network=host \
--name opensocks-client netbyte/opensocks -s=YOUR_DOMIAN:8081 -l=127.0.0.1:1080 -k=123456 -p ws -obfs

Run server

docker run  -d --restart=always --net=host \
--name opensocks-server netbyte/opensocks -S -k=123456 -obfs

Reverse proxy server

add tls for opensocks ws server(8081) via nginx/caddy(443)

Server settings

settings for kcp with good performance

ulimit -n 65535
vi /etc/sysctl.conf
net.core.rmem_max=26214400 // BDP - bandwidth delay product
net.core.rmem_default=26214400
net.core.wmem_max=26214400
net.core.wmem_default=26214400
net.core.netdev_max_backlog=2048 // proportional to -rcvwnd
sysctl -p /etc/sysctl.conf

Cross-platform client

opensocks-gui

License

The MIT License (MIT)

Credits

This repo relies on the following third-party projects:

opensocks's People

Contributors

itviewer 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.