A
A
angel_exe2018-01-19 12:59:14
iptables
angel_exe, 2018-01-19 12:59:14

Redirecting pptp client traffic to tor, how?

There is a router configured according to the article https://habrahabr.ru/post/270657/.
In the same place the pptp server for external clients is lifted.
The goal is to allow vpn clients as well as local clients to access blocked resources or tor domain names.
Local clients are now accessed by 3 three iptables rules:
iptables -t nat -I PREROUTING -i br0 -p tcp -m set --match-set rublack-dns dst -j REDIRECT --to-ports 9040
iptables -t nat -I PREROUTING -i br0 -p tcp -m set --match-set rublack-ip dst -j REDIRECT --to-ports 9040
iptables -t nat -I PREROUTING -i br0 -p tcp -m set --match-set onion dst -j REDIRECT --to-ports 9040
An attempt to replace br0 with a ppp interface failed.
What to write in iptables?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
angel_exe, 2018-01-19
@angel_exe

Clients can access tor domain addresses by adding the rule
iptables -t nat -I PREROUTING -i $peee_if -p tcp -m set --match-set onion dst -j DNAT --to 192.168.1.1:9040
But with blocked sites it doesn't work that way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question