A
A
aroun2016-01-22 18:20:29
iptables
aroun, 2016-01-22 18:20:29

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


Table 25910

ip route show table 25910
default via 169.254.1.2 dev tun6536
169.254.1.0/24 dev tun6536  scope link


Packets do not go, but if you explicitly specify the route,

ip route add 93.158.134.3 dev tun6536

then the packets go to this node.

Why are labeled packages not included in the table?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Dubrovin, 2016-01-23
@aroun

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 question

Ask a Question

731 491 924 answers to any question