Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按透明代理章节设置 udp 流量代理后,v2ray进程cpu跑满 #49

Open
caoli5288 opened this issue Aug 19, 2019 · 4 comments
Open
Labels
unconfirmed Waiting investigation

Comments

@caoli5288
Copy link

复制粘贴教程此节中的代码,https://guide.v2fly.org/app/transparent_proxy.html

除udp代理外,其他都工作正常,已经可以代理上网,但是一复制粘贴以下几条,路由立刻卡死,

ip rule add fwmark 1 table 100
ip route add local 0.0.0.0/0 dev lo table 100
iptables -t mangle -N V2RAY_MASK
iptables -t mangle -A V2RAY_MASK -d 192.168.0.0/16 -j RETURN
iptables -t mangle -A V2RAY_MASK -p udp -j TPROXY --on-port 12345 --tproxy-mark 1
iptables -t mangle -A PREROUTING -p udp -j V2RAY_MASK
@tomqin93
Copy link

tomqin93 commented Aug 27, 2019

+1, 4.20版本在openwrt上
我的现象倒不是cpu跑满,而是一旦iptables里面代理了udp立马netstat就都满了,并且网络会卡死。v2ray里面有
v2ray dial udp socket: too many open files 这样的error
只代理tcp没有这个问题

Update: 附带一下我目前的配置
https://pastebin.com/ggzkFqhk

@nicholascw nicholascw added the unconfirmed Waiting investigation label Sep 28, 2019
@imess
Copy link

imess commented Jan 9, 2020

要排除环回地址,局域网地址和服务器地址,否则会造成环回死循环。同时教程也有很多错误的地方

@wancaibida
Copy link

代理网关本机那段iptables貌似也有问题

@nicholascw
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed Waiting investigation
Projects
None yet
Development

No branches or pull requests

5 participants