techotaku / luci-app-transparent-proxy Goto Github PK
View Code? Open in Web Editor NEWLEDE LuCI helper for iptables transparent proxy
License: GNU General Public License v3.0
LEDE LuCI helper for iptables transparent proxy
License: GNU General Public License v3.0
在额为被忽略ip选项输入域名的时候,提示值无效,无法保存。
东西不错,感谢制作,能再完善完善吗,也许能更好
提出如下建议
分流设置,比如国内国外路由,支持CHNROUTER,自定义域名
软件移植的很赞,
谢谢了先
可以考虑支持一下新的3.43特性,sockopt 和 TPROXY,更加灵活了
之前在lede上正常,到18.06.0之后改了配置后不生效,只能手工/etc/init.d/transparent-proxy restart
我是直接从 v2ray 官方下载 linux 版的,配置好了之后从luci上看 提示 v2ray 未存在
1、v2ray方案:ws+tls+nginx,手机、电脑正常使用。
2、路由器使用linux arm版本3.4,使用以下命令可以正常使用。路由器为lede最新版。
iptables -t nat -N V2RAY
iptables -t nat -A V2RAY -p tcp -j REDIRECT --to-ports 12345
iptables -t nat -A PREROUTING -p tcp -j V2RAY
3、透明代理里面能显示v2ray正常运行,但点击全局规则启用依然无法访问墙外网站。
4、v2ray error日志:
2018/01/02 07:16:52 [Warning]: App|DNS: failed to lookup IPs for domain play.google.com. > lookup play.google.com. on 192.168.1.1:53: read udp 192.168.1.14:45444->192.168.1.1:53: i/o timeout
2018/01/02 07:16:52 [Warning]: App|DNS: failed to lookup IPs for domain xxx.xxx. > lookup xxx.xxx. on 192.168.1.1:53: read udp 192.168.1.14:39845->192.168.1.1:53: i/o timeout
2018/01/02 07:16:52 [Warning]: App|DNS: failed to lookup IPs for domain xxx.xxx. > lookup xxx.xxx. on 192.168.1.1:53: read udp 192.168.1.14:39845->192.168.1.1:53: i/o timeout
2018/01/02 07:16:52 [Warning]: App|DNS: failed to lookup IPs for domain xxx.xxx. > lookup xxx.xxx. on 192.168.1.1:53: read udp 192.168.1.14:39845->192.168.1.1:53: i/o timeout
2018/01/02 07:16:53 [Warning]: App|DNS: failed to lookup IPs for domain clients3.google.com. > lookup clients3.google.com. on 192.168.1.1:53: read udp 192.168.1.14:43406->192.168.1.1:53: i/o timeout
2018/01/02 07:16:57 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37136->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: lookup xxx.xxx on 192.168.1.1:53: read udp 192.168.1.14:57424->192.168.1.1:53: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: operation was canceled] > Retry: all retry attempts failed
2018/01/02 07:16:58 [Warning]: App|DNS: failed to lookup IPs for domain plus.google.com. > lookup plus.google.com. on 192.168.1.1:53: read udp 192.168.1.14:42298->192.168.1.1:53: i/o timeout
2018/01/02 07:17:07 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37104->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37106->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: lookup xxx.xxx on 192.168.1.1:53: read udp 192.168.1.14:57424->192.168.1.1:53: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: lookup xxx.xxx on 192.168.1.1:53: dial udp 192.168.1.1:53: operation was canceled Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37152->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:17:15 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37110->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: lookup xxx.xxx on 192.168.1.1:53: read udp 192.168.1.14:57424->192.168.1.1:53: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: lookup xxx.xxx on 192.168.1.1:53: dial udp 192.168.1.1:53: operation was canceled Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37150->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37184->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:17:32 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: lookup xxx.xxx on 192.168.1.1:53: dial udp 192.168.1.1:53: operation was canceled Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37148->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37182->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37292->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37378->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:17:42 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37156->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37228->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37308->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37386->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37402->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:17:50 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37294->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37384->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37400->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37410->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: operation was canceled] > Retry: all retry attempts failed
2018/01/02 07:17:50 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37248->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37310->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37390->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37404->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37412->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:17:51 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37316->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37392->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37406->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37414->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: operation was canceled] > Retry: all retry attempts failed
2018/01/02 07:18:33 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37418->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37460->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37742->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37872->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37960->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:18:35 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37918->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37974->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: operation was canceled] > Retry: all retry attempts failed
2018/01/02 07:18:42 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37482->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37790->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37904->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37976->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38036->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:18:44 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37530->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37802->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37932->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37990->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38050->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:18:50 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37756->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37876->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:37958->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38034->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38104->xxx.xxx.xxx.xxx:443: i/o timeout] > Retry: all retry attempts failed
2018/01/02 07:19:11 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38312->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38358->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: operation was canceled] > Retry: all retry attempts failed
2018/01/02 07:19:15 [Warning]: failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38352->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > read tcp 192.168.1.14:38374->xxx.xxx.xxx.xxx:443: i/o timeout Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://xxx.xxx/): > dial tcp: operation was canceled] > Retry: all retry attempts failed
v2ray配置文件如下
``{
"log": {
"access": "Vaccess.log",
"error": "Verror.log",
"loglevel": "debug"
},
"inbound": {
"port": 12345,
"listen": "127.0.0.1",
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"followRedirect": true
}
},
"outbound": {
"tag": "agentout",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": " ",
"port": ,
"users": [
{
"id": " ",
"alterId": 64,
"security": " "
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": ""
},
"mux": {
"enabled": true
}
},
"outboundDetour": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
},
"tag": "blockout"
}
],
"inboundDetour": [
{
"protocol": "socks",
"port": 1080,
"tag": "socks5",
"listen": "0.0.0.0",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "192.168.1.1"
}
}
]
}
如题,配置按照https://github.com/techotaku/luci-app-transparent-proxy/wiki/Get-Started来的
设置同https://github.com/techotaku/luci-app-transparent-proxy/wiki/Screenshots
下面的ChinaList和GFWList也执行了
运行后,国内网站如淘宝京东等没问题,国外网站如Google等依旧打不开
这是哪里有什么问题吗
Linksys WRT1200AC,运行的最新的LEDE
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.