Coder Social home page Coder Social logo

octopus-1's Introduction

octopus

1、中文

(1)特点

  1. 支持TCP代理
  2. 支持IPv6
  3. 支持用户名密码验证
  4. 支持DNS
  5. 高并发高性能

(2)编译

  • $ cd builder/
  • $ cmake ../ -DCMAKE_BUILD_TYPE=Debug 或者 cmake ../ -DCMAKE_BUILD_TYPE=Release
  • $ make
  • $ cpack

(3)运行

 配置从命令行输入,详细参数可以使用帮助:

 $ octopus-socks5 -h
    --listen.port               listen port      
    --thread.sum                thread sum
    --log.dir                   log output dir
    --thread.connections.sum    the max connections of per thread
    --heartbeat.cycle           heartbeat cycle microseconds (must small 1000000!)
    --access.method             access method : 0 (anonymous), 2(USERNAME/PASSWORD)
    --userlist                  userlist file 
  --addr.list                 NIC address list, use like this --addr.list 192.168.1.1,192.168.1.2
    --help or -v                this message

  • --listen.port :监听的端口
  • --thread.sum :线程数量
  • --log.dir :log信息输出的路径
  • --thread.connections.sum :每个线程最大的连接数
  • --heartbeat.cycle  :超时心跳的间隔
  • --access.method :登录方法,0是匿名,2是用户名密码方式,用户名单用  --userlist  指定
  • --userlist :在 --access.method 为2时指定用户名单
  • --addr.list :在多网卡系统上可以指定数据从哪几个地址出去,这样可以增加整个系统的连接上限,使用方法:--addr.list 192.168.1.1,192.168.1.2
  • --help or -v :打印帮助信息

(4)常见问题

1、连接数受限

  1. #echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range

  2. 添加 * - nofile 500000 到文件 /etc/security/limits.conf  

2、English

(1) Features

  1. Support TCP proxy
  2. Support IPv6
  3. Support user name and password verification
  4. Support DNS
  5. High concurrency and high performance

(2)compile

  • $ cd builder /
  • $ cmake ../ -DCMAKE_BUILD_TYPE=Debug or cmake ../ -DCMAKE_BUILD_TYPE=Release
  • $ make
  • $ cpack

(3)run

Configuration input from the command line, detailed parameters can be used to help:

 $ octopus-socks5 -h
    --listen.port               listen port     
    --thread.sum                thread sum
    --log.dir                   log output dir
    --thread.connections.sum    the max connections of per thread
    --heartbeat.cycle           heartbeat cycle microseconds (must small 1000000!)
    --access.method             access method : 0 (anonymous), 2(USERNAME/PASSWORD) --userlist set the USERNAME/PASSWORD
    --userlist                  userlist file   (see builder/userlist.txt)
    --addr.list                 NIC address list, use like this --addr.list 192.168.1.1,192.168.1.2
    --help or -v                this message

(4)Question

1、connect limit

  1. #echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range

  2. add * - nofile 500000 to file /etc/security/limits.conf  

octopus-1's People

Contributors

mgwang37 avatar

Watchers

 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.