Answer the question
In order to leave comments, you need to log in
How to make local network go through NOT local socks5 proxy?
I do according to the article unix.stackexchange.com/questions/144562/redirect-a...
I mark packets from the address 192.168.100.2 for example and put them in a table where the default gateway is tun adapter
ip rule
0: from all lookup local
32763: from 192.168.100.2 lookup 25910
32764: from all fwmark 0xc8 lookup 25910
32765: from all fwmark 0x6536 lookup 25910
32766: from all lookup main
32767: from all lookup default
ip route show table 25910
default via 169.254.1.2 dev tun6536
169.254.1.0/24 dev tun6536 scope link
ip route add 93.158.134.3 dev tun6536
Answer the question
In order to leave comments, you need to log in
In
3proxy
under
Linux _
_
parent 1000 socks5 SOCKS5_IP SOCKS5_PORT USER PASSWORD
tcppm -iLOCAL_IP 12345 127.0.0.1 11111
and then redirect all TCP traffic except SOCKS5_IP:SOCKS5_PORT to LOCAL_IP:12345.
With this configuration, 3proxy will get the source address:port and make a request to the parent SOCKS5.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question