openwrt-v2ray icon indicating copy to clipboard operation
openwrt-v2ray copied to clipboard

How to force router itself to go through transparent proxy?

Open Tualua opened this issue 5 years ago • 9 comments

I'd like to route all router traffic through my v2ray server. Now, if I check with curl 2ip.ru it gives me v2ray server address but for example zerotier service keeps going through default pppoe connection.

Is there any way to force all router traffic to v2ray?

Tualua avatar Oct 08 '20 07:10 Tualua

for some reason, we can't get router itself to go through transparent proxy at this time. we are looking for some way to resolve this.

kuoruan avatar Oct 09 '20 03:10 kuoruan

Does the router that you run the test on 2ip.ru connected directly to the ISP cable through pppoe?

bailaowai avatar Oct 09 '20 13:10 bailaowai

Yes

On Fri, Oct 9, 2020, 21:06 cessnabee [email protected] wrote:

Does the router that you run the test on 2ip.ru connected directly to the ISP cable through pppoe?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-v2ray/issues/103#issuecomment-706169364, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHX2DHOVUPCTVDTSF5E7OADSJ4DDXANCNFSM4SIMDSMA .

Tualua avatar Oct 09 '20 13:10 Tualua

instead, connect a generic router to your ISP and set the DNS 1 and 2 on the WAN to use YANDEX public DNS, then plug in the router you are currently using to it but do not set as a secondary device. For example, if the first router IP is 192.168.1.1 set the other one as 192.168.2.1. on LAN, then change the WAN interface to use DHPC (try to set the DNS 1 & 2 to google for example.) After this is complete, run a test on dnsleaktest.com to see if there is a leak.

bailaowai avatar Oct 09 '20 13:10 bailaowai

is there a way to send all traffic through v2ray?

vagabund89 avatar Apr 23 '21 20:04 vagabund89

@Tualua @vagabund89 are you still in the need of doing transparent proxy? I'm making a guide for that, let me know if you'd like to see it.

arinc9 avatar Jul 25 '21 15:07 arinc9

Yes I need it

vagabund89 avatar Jul 25 '21 15:07 vagabund89

Me too

On Sun, Jul 25, 2021, 23:11 vagabund89 @.***> wrote:

Yes I need it

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-v2ray/issues/103#issuecomment-886215475, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHX2DHO6UEICYWTBMVX5NWTTZQSQ3ANCNFSM4SIMDSMA .

Tualua avatar Jul 25 '21 15:07 Tualua

Take a look at TPROXY. You need to install iptables-mod-tproxy package and configure dokodemo-door as inbound on v2ray. The rest is pretty straightforward.

https://www.notion.so/arinc9/Transparent-Proxy-Using-v2ray-c6bfee7be82f4084a73a132e362c6a10

arinc9 avatar Jul 25 '21 15:07 arinc9