octopus
1、中文
(1)特点
- 支持TCP代理
- 支持IPv6
- 支持用户名密码验证
- 支持DNS
- 高并发高性能
(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、连接数受限
-
#echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range
-
添加 * - nofile 500000 到文件 /etc/security/limits.conf
2、English
(1) Features
- Support TCP proxy
- Support IPv6
- Support user name and password verification
- Support DNS
- 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
-
#echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range
-
add * - nofile 500000 to file /etc/security/limits.conf