配置示例 & 分流
国内IP白名单/v6:https://github.com/mayaxcn/china-ip-list/blob/master/chnroute.txt
国内域名白名单:https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/refs/heads/master/accelerated-domains.china.conf
配置文件示例:
{
"concurrent": 10,
"key": {
"kf": 82225XXXXX908275747,
"kx": 128,
"kl": 10,
"kh": 12,
"sb": 1000,
"protocol": "aes-256-cfb",
"protocol-key": "GoGx2KXXXXXXEYvE742XJjh",
"transport": "aes-256-cfb",
"transport-key": "H9oxThG7XXXXXI3YOr6dizqg",
"masked": true,
"plaintext": false,
"delta-encode": true,
"shuffle-data": true
},
"ip": {
"public": "YOUR VPS IP",
"interface": "::"
},
"vmem": {
"size": 4096,
"path": "./{}"
},
"tcp": {
"inactive": {
"timeout": 300
},
"connect": {
"timeout": 5,
"nexcept": 4
},
"listen": {
"port": 20000
},
"cwnd": 0 ,
"rwnd": 0 ,
"turbo": true,
"backlog": 1024,
"fast-open": true
},
"udp": {
"cwnd": 0 ,
"rwnd": 0 ,
"inactive": {
"timeout": 300
},
"dns": {
"timeout": 4,
"ttl": 60,
"cache": true,
"turbo": false,
"redirect": "::"
},
"listen": {
"port": 20000
},
"static": {
"keep-alived": [
1,
5
],
"dns": true,
"quic": true,
"icmp": true,
"aggligator": 0,
"servers": [
]
}
},
"mux": {
"connect": {
"timeout": 10
},
"inactive": {
"timeout": 300
},
"congestions": 134217728,
"keep-alived": [
1,
5
]
},
"server": {
"log": "./ppp.log",
"node": 1,
"subnet": true,
"mapping": true,
"backend": "",
"backend-key": "T7JZgXXXXXrobdZ2H3lOa"
},
"client": {
"guid": "{F4569208-BB45-4DEB-B115-0FEA1D91B85B}",
"server": "ppp://YOUR VPS IP:20000/",
"bandwidth": 1000000000,
"reconnections": {
"timeout": 5
},
"paper-airplane": {
"tcp": true
},
"http-proxy": {
"bind": "::",
"port": 8080
},
"socks-proxy": {
"bind": "::",
"port": 1080,
"username": "",
"password": "2XXXXXXX"
},
"mappings": [
{
"local-ip": "::",
"local-port": 80,
"protocol": "tcp",
"remote-ip": "::",
"remote-port": 10001
}
]
}
}
启动脚本示例
start ppp.exe --config=./AKIJP100MS.JSONstart --mode=client --lwip=yes --tun=ppp --tun-ip=10.0.0.10 --tun-gw=10.0.0.1 --tun-mask=24 --tun-host=yes --tun-mux=4 --tun-mux-acceleration=3 --tun-vnet=yes --tun-ssmt=4/st --tun-static=yes --link-restart=3 --block-quic=no --bypass=./chn_ip.txt --dns-rules=./chn_dns.txt