Community discussions

 
hurymak
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Mon Oct 06, 2014 1:31 pm

Route traffic from some lan ip through tor whonix gateway inside main lan?

Fri Apr 26, 2019 8:44 am

I have pc with whonix which is inside main lan, for example lets say whonix gateway tor ip is 192.168.7.11. (everything is connected to one mikrotik router connected to isp)
Now i would like to make some policy based routing on this mikrotik so traffic from 192.168.8.1 will be transferred normally through isp,
but traffic from 192.168.9.1 will go only through tor gateway.

How to do that?
my guess is mangle packets from 192.168.9.1, mar prerouting, add gateway from ip route?
do i have to also ad some srcnat masquerade?
 
Sob
Forum Guru
Forum Guru
Posts: 4806
Joined: Mon Apr 20, 2009 9:11 pm

Re: Route traffic from some lan ip through tor whonix gateway inside main lan?

Sat Apr 27, 2019 3:39 am

Your guess seems correct. Masquerade shouldn't be necessary, if tor gateway has route to 192.168.9.1. If it's not via the main router (which will be routing 192.168.9.1 to tor gateway), it will create asymmetric routing and firewall on router may complain about invalid packets. Masquerade would be one way to solve it. Or you can make sure that packets from 192.168.9.1 to tor gateway are always allowed.
People who quote full posts should be spanked with ethernet cable. Some exceptions for multi-topic threads may apply.

Who is online

Users browsing this forum: No registered users and 49 guests