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
How to set iptables to use dokodemo-door #270
Comments
You probably need to bypass local connections as well. The following is copied from shadowsocks-libev's document:
|
Finally, I solved the problem. So, I don't use route rules in v2ray but in iptables,everyting might be OK(I guess). |
Assuming fixed. |
* Build: do NOT rely on GOPATH * Format pipelines
提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。
Please answer the following questions before submitting your issue. Thank you.
你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
What version of V2Ray are you using?
v2.2.1
你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
What your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.
use dokodemo-door
你看到的不正常的现象是什么?
What did you see?
mess warning message
你期待看到的正确表现是怎样的?
What do you expected to see instead?
请附上你的配置文件。
Please attach your configuration file.
"inboundDetour": [
{
"protocol":"dokodemo-door",
"port":"1111",
"settings":{
"address": "",
"network": "tcp",
"timeout": 0,
"followRedirect": true
}
}
]
Problems:
I use iptables to redirect all traffics to localhost:1111 port.
iptables -t nat -N v2ray
iptables -t nat -A v2ray -d REMOTEIP -j RETURN
iptables -t nat -A v2ray -p tcp -j REDIRECT --to-ports 1111
iptables -t nat -A OUTPUT -p tcp -j v2ray
when I try to connect to www.google.com via web browser, and I get fellowing warnings too many times:
2016/10/07 19:42:09 [Warning]Internet|Listener: Failed to accept new TCP connection: accept tcp [::]:1111: accept4: too many open files
Anyone can help me? Many thanks.
The text was updated successfully, but these errors were encountered: