2020-03-24 11:46:32 +08:00
|
|
|
global {
|
|
|
|
uid=3004;
|
|
|
|
process=2;
|
2021-12-23 09:02:41 +08:00
|
|
|
timeout=7;
|
|
|
|
encode=128;
|
2020-07-30 18:10:31 +08:00
|
|
|
tcp_listen=0124;
|
2021-12-23 09:02:41 +08:00
|
|
|
dns_listen=0126;
|
|
|
|
udp_listen = 10010;
|
2020-03-24 11:46:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2021-12-23 09:02:41 +08:00
|
|
|
http_ip="47.240.75.93";
|
|
|
|
http_port=127;
|
|
|
|
http_del="Host";
|
|
|
|
http_first="[M] http://[host][U] [V]\r\nHost: [H]\r\n";
|
2022-01-19 21:48:02 +08:00
|
|
|
//strrep="Windows NT 10.0" -> "Linux";
|
|
|
|
//regrep="Host:*.+?" -> "Host: [host]:80";
|
2020-03-24 11:46:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
https {
|
2021-12-23 09:02:41 +08:00
|
|
|
https_ip="47.240.75.93";
|
|
|
|
https_port=127;
|
2020-03-24 11:46:32 +08:00
|
|
|
https_del="Host,host,x-online-host";
|
2021-12-23 09:02:41 +08:00
|
|
|
https_first="[M] [U] [V]\r\nHost: [host]\r\n";
|
2022-01-19 21:48:02 +08:00
|
|
|
//strrep="Windows NT 10.0" -> "Linux";
|
|
|
|
//regrep="Host*.+?" -> "host: [host]:443";
|
2020-03-24 11:46:32 +08:00
|
|
|
}
|
|
|
|
|
2020-07-30 18:10:31 +08:00
|
|
|
httpdns {
|
2021-12-23 09:02:41 +08:00
|
|
|
addr = 119.29.29.29:80;
|
|
|
|
http_req = "[M] [U] [V]\r\nHost: [H]\r\n\r\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
httpudp {
|
|
|
|
addr = 47.240.75.93:10010;
|
|
|
|
http_req = "[M] [U] [V]\r\nHost: [H]\r\n";
|
2020-07-30 18:10:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-05 21:56:08 +08:00
|
|
|
global模块
|
2021-12-09 19:31:51 +08:00
|
|
|
uid=3004; //进程UID
|
|
|
|
process=2; //进程数量(已经弃用)
|
|
|
|
timeout=60; //超时时间(秒)
|
|
|
|
sslencoding=128; //编码(非零生效)
|
2020-11-05 21:56:08 +08:00
|
|
|
tcp_listen=0124; //TCP监听端口
|
2021-12-09 19:31:51 +08:00
|
|
|
tcp6_listen=0124; //TCP6监听端口 (TCP和TCP6可以使用同一个端口, IPV4的数据走内部IPV4程序结构, IPV6数据走内部IPV6程序结构.)(已经弃用)
|
2020-11-05 21:56:08 +08:00
|
|
|
dns_listen=0125; //UDP监听端口
|
|
|
|
|
2020-03-24 11:46:32 +08:00
|
|
|
|
2020-11-05 21:56:08 +08:00
|
|
|
http、https模块
|
|
|
|
http、https 模块关键字: [M], [method], [uri], [U], [V], [version], [H], [host], [port], \r, \n, \v, \f, \b, \t, \a. 如果原本请求头含有关键字也会被替换.
|
2020-03-24 11:46:32 +08:00
|
|
|
[M]、[method] 原请求方法
|
|
|
|
[U] 原请求url
|
|
|
|
[uri] 原请求uri(http 模块)
|
|
|
|
[V]、[version] 原请求协议版本
|
|
|
|
[host] 原请求host
|
|
|
|
[port] 原请求端口
|
|
|
|
[H] 原请求[host]:[port]
|
|
|
|
|
2021-12-09 19:31:51 +08:00
|
|
|
http_ip=47.240.75.93; //指定HTTP服务器IP
|
|
|
|
http_port=127; //指定HTTP服务器端口
|
|
|
|
http_del="x-online-host,X-Online-Host,host,Host"; //删除HTTP头字段,逗号分开
|
|
|
|
http_first="[M] [U] [V]\r\nHost: [H]\r\n"; //自定义HTTP请求头
|
2020-03-24 11:46:32 +08:00
|
|
|
关键字strrep替换字符串指令.
|
2021-12-09 19:31:51 +08:00
|
|
|
strrep = "Mi MIX 2->Linux"; //以"->"为分界符,"Mi MIX 2"字符串替换为"Linux"字符串.
|
2020-03-24 11:46:32 +08:00
|
|
|
关键字regrep正则匹配替换字符串.
|
2021-12-09 19:31:51 +08:00
|
|
|
regrep = "Host*.+?->Host: iread.wo.cn:443"; //以"->"为分界符,匹配到的内容"Host*.+?"替换为"Host: iread.wo.cn:443"字符串.
|
2020-03-24 11:46:32 +08:00
|
|
|
|
2020-11-05 21:56:08 +08:00
|
|
|
httpdns模块
|
2020-07-30 18:10:31 +08:00
|
|
|
httpdns 模块关键字: [M], [D], [V], \r, \n, \v, \f, \b, \t, \a.
|
|
|
|
默认 [M] 为 GET
|
|
|
|
默认 [V] 为 HTTP/1.0
|
2021-12-09 19:31:51 +08:00
|
|
|
addr=119.29.29.29:80; //HTTPDNS服务器IP
|
|
|
|
http_req = "[M] [U] [V]\r\nHost: [H]\r\n\r\n"; //自定义HTTPDNS请求头
|
2021-05-18 14:18:56 +08:00
|
|
|
|
2021-12-23 09:02:41 +08:00
|
|
|
httpudp模块
|
|
|
|
httpudp 模块关键字: [M], [U], [V], [H].
|
|
|
|
默认 [M] 为 CONNECT
|
|
|
|
默认 [V] 为 HTTP/1.1
|
|
|
|
addr=47.240.75.93:10010; //HTTPUDP服务器IP
|
|
|
|
http_req = "[M] [U] [V]\r\nHost: [H]\r\n\r\n"; //自定义HTTPUDP请求头
|
|
|
|
|