老毛子v2ray设置GFWlist模式

小米路由器R3G版本刷了老毛子,v2ray一直配置不好。主要是按照网上的教程来的基本上都是全局走代理,导致访问国内网站比如淘宝、京东、百度什么的都特慢。好在终于找到了解决问题的办法。

参照以下三个网址:

https://www.right.com.cn/forum/thread-310440-1-1.html(这个帖子告诉了基本的配置,但是是全部走代理的全局模式)

https://www.right.com.cn/forum/thread-367260-1-1.html(这个帖子告诉了使用mkcp伪装wechat-video使用GFW-list的模式)

https://la4ji.blogspot.com/2018/09/padavan-project-vv2ray.html(这篇文章据说是v2ray+白名单的模式,使用上一条成功了,所以这里没有细致研究)

在这里记录一下第二条吧,好做个备份

{
"log": {
"error": "/tmp/syslog.log",
"loglevel": "warning"
},
"inbound": {
"port": 1088,
"listen": "路由网址",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "路由网址"
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "Vps的IP",
"port": 端口,
"users": [
{
"id": "的ID",
"alterId": 额外ID,
"security": "auto"
}
]
}
]
},
"mux": {
"enabled": true
},
"streamSettings": {
"network": "kcp",
"security": "",
"tlsSettings": null,
"tcpSettings": null,
"kcpSettings": {
"mtu": 1350,
"tti": 50,
"uplinkCapacity": 12,
"downlinkCapacity": 100,
"congestion": false,
"readBufferSize": 2,
"writeBufferSize": 2,
"header": {
"type": "wechat-video",
"request": null,
"response": null
}
},
"wsSettings": null,
"httpSettings": null
}
},
"inboundDetour": [
{
"port": "1099",
"listen": "0.0.0.0",
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"timeout": 30,
"followRedirect": true
}
}
],
"outboundDetour": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
],
"dns": {
"servers": [
"114.114.114.114",
"119.29.29.29",
"223.5.5.5"
]
},
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "chinasites",
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"100.100.100.100/32",
"188.188.188.188/32",
"110.110.110.110/32",
"104.160.185.171/32",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "direct"
},
{
"type": "chinaip",
"outboundTag": "direct"
}
]
}
}
}

修改完那就打开浏览器进管理界面,复制改好的v2ray配置文件到v2ray_config_script里,然后v2ray proxy 开关选开,点应用本页设置就行了。不要选透明代理。

扩展功能 的 广告屏蔽功能 中找到 transocks
工作模式选GFWlist
透明重定向的代理服务器IP、域名:  为你路由器管理地址
透明重定向的代理服务器端口: 用我上面配置 那就是1080
远端服务器IP、域名:你的vps服务器地址
然后transocks 开关打开,点应用本页设置就行了

然后就可以开心翻了。希望对你有帮助。

全局的那一种我也贴一下代码,对以后也许有帮助:

{
"log": {
"error": "/tmp/syslog.log",
"loglevel": "warning"
},
"inbound": {
"port": 1088,
"listen": "路由器的IP地址",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "路由器的IP地址"
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "vps的IP地址",
"port": 端口,
"users": [
{
"id": "设置的ID",
"alterId": 额外ID,
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "ws"
},
"mux": {
"enabled": true
}
},
"inboundDetour": [
{
"port": "1099",
"listen": "0.0.0.0",
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"timeout": 30,
"followRedirect": true
}
}
],
"outboundDetour": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
],
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"routing": {
"strategy": "rules",
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10",
"geoip:cn"
],
"domain": [
"geosite:cn"
],
"outboundTag": "direct"
},
{
"type": "chinasites",
"outboundTag": "direct"
},
{
"type": "chinaip",
"outboundTag": "direct"
}
]
}
}
}