I built a custom Tor Router which got two ethernet ports.
This router will take internet connection (which is coming out of my main internet OpenWrt router) via eth0 and route it via eth1(after Tor'd) which I connect to my PC.
I am planning to introduce a manageable switch (Planet GS-4210-8P2T2S) to the network.
Wanted to understand how this second Tor router can be plugged in to the network.
My need is, I want this PC to be normally connected to Internet via the switch and use internet from main OpenWrt router.
At certain ocations, I want it to go through the Tor Router. At that time unplugging the ethernet cable from PC and plugging in to the Tor Router eth1 the only option?
Note: I already tried Tor client on main OpenWrt router, which make every client behind Tor. I dont want that. I only want this PC to be behind Tor, that too occasionally.
TOR is actually a proxy, not a router. You can set your browser to use the proxy or not. There are even extensions to make the change as easy as one click. There is no need to change the network configuration and you don't need a second router or a switch.
If you don't trust your browser and you want to make sure there are no leaks while you use TOR, there are multiple solutions:
Completely disconnect the PC from the internet by disabling routing in your second router and install a second proxy on it. Use that proxy as the default. When using TOR, login to router and stop that proxy, and switch the browser to TOR proxy. Advantage: you can have ad-blocking with that second proxy.
Same as above, but without the second proxy. Just turn off routing when you switch to TOR.
Have 2 network adapters. One connected to the main router and one to the router with TOR. Disable routing on the second router. When you want to use TOR, switch the browser to TOR proxy and disconnect the cable to main router.