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

透明代理部分的加强 #94

Open
shellqiqi opened this issue Nov 17, 2019 · 1 comment
Open

透明代理部分的加强 #94

shellqiqi opened this issue Nov 17, 2019 · 1 comment
Labels
enhancement New feature or request pull request wanted no obvious way to fix

Comments

@shellqiqi
Copy link

关于两节透明代理,例子当中很关键的一部分在于,网关本身不做“路由”,即网关和网内设施在同一个网络内,如下图所示。
image

由于我个人的需求,服务器集群当中有一台较弱的机器充当网关,这时这台机器拥有出口IP和内网IP,如下图所示。
image

在这个情况下,在使用TPROXY代理的时候,只需要在mangle和nat表中各增加一个出口IP直通规则即可。

iptables -t nat -A V2RAY -d 1.2.3.4/32 -j RETURN
iptables -t mangle -A V2RAY_MASK -d 1.2.3.4/32 -j RETURN

不过由于拓扑的不同,所以我就没有对原文进行更改。

@nicholascw nicholascw added the wontfix This will not be worked on label Mar 9, 2020
@nicholascw
Copy link
Contributor

可以考虑PR成一个单独的页面 不覆盖原有内容。

@nicholascw nicholascw added the enhancement New feature or request label Mar 9, 2020
@nicholascw nicholascw added pull request wanted no obvious way to fix and removed wontfix This will not be worked on labels May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pull request wanted no obvious way to fix
Projects
None yet
Development

No branches or pull requests

2 participants