2020-05-29 11:09:39 +08:00
|
|
|
|
# AIS
|
|
|
|
|
|
2021-04-01 16:23:21 +08:00
|
|
|
|
修改自mproxy(https://github.com/examplecode/mproxy), 作为CProxy服务端. 仅代理TCP.
|
|
|
|
|
支持客户端IP白名单.
|
2022-01-12 09:37:15 +08:00
|
|
|
|
支持IPV4/IPV6.
|
2021-04-01 16:23:21 +08:00
|
|
|
|
|
|
|
|
|
## 参数
|
|
|
|
|
|
2020-05-29 11:09:39 +08:00
|
|
|
|
Usage:
|
2021-04-01 16:23:21 +08:00
|
|
|
|
-l <port number> specifyed local listen port
|
2020-05-29 11:09:39 +08:00
|
|
|
|
-h <remote server and port> specifyed next hop server name
|
|
|
|
|
-d <remote server and port> run as daemon
|
2020-11-16 11:10:11 +08:00
|
|
|
|
-c <configure file> Specify configuration file
|
2020-05-29 11:09:39 +08:00
|
|
|
|
-E <0-128> encode data when forwarding data
|
|
|
|
|
-D <0-128> decode data when receiving data
|
2021-04-01 16:23:21 +08:00
|
|
|
|
|
|
|
|
|
## 配置文件
|
|
|
|
|
|
2020-05-29 11:09:39 +08:00
|
|
|
|
global {
|
2021-04-01 16:23:21 +08:00
|
|
|
|
// 本地端口
|
|
|
|
|
local_port="127";
|
|
|
|
|
|
|
|
|
|
// IO标志 R_C_DEC、W_S_ENC. W_S_ENC在转发数据时对数据进行编码, R_C_DEC 接收数据时解码数据
|
|
|
|
|
io_flag="R_C_DEC";
|
|
|
|
|
|
|
|
|
|
// 编码
|
|
|
|
|
encode=128;
|
|
|
|
|
|
2020-08-16 07:56:52 +08:00
|
|
|
|
// 是否开启白名单(1开启,0关闭)
|
|
|
|
|
IP_RESTRICTION = 1;
|
2021-04-01 16:23:21 +08:00
|
|
|
|
|
2020-11-16 11:10:11 +08:00
|
|
|
|
// 白名单IP段, 判断前两段IP空格隔开冒号结尾(可以写完整的IPV4和IPV6地址)
|
|
|
|
|
IP_SEGMENT= 115.60 115.61 115.62 223.88 2409:8a44:336:7180:5cb7:5b71:85e2:7f14;
|
2020-05-29 11:09:39 +08:00
|
|
|
|
}
|