Hi.
I have 1 Wan and 2 Lan (Lan1 and Lan2).
Can I setup Tor so that all traffic from Lan2 uses the tor network in transparent mode (no settings on the devices)?
If sho, how?
Thanks.
Suppose you LAN2 is 192.168.0.0./24
Go to SERVICES -> TOR -> Configuration
- Check Enable
- SOCKS Port Number: 9050
- Control Port: 9051
- Check Enable Transparent Proxy
- Transparent Port: 9040
Go to SERVICES -> TOR -> SOCKS Proxy ACL
Add 2 ACL:
- Protocol IPv4
- Network: 127.0.0.1/32
- Action: Accept
- Protocol IPv4
- Network: 192.168.0.0/24 (here your LAN2 network)
- Action: Accept
Click "Reload Service" button
Go to FIREWALL -> NAT -> PORT-FORWARD
Add the following rule:
- Interface: LAN
- Source: LAN2 Net alias OR 192.168.0.0./24
- Destination: ANY
- Destination Port: ANY
- Redirect Target IP: Single Host or Network: 127.0.0.1
- Redirect Target Port: 9040 (this is the Transparent TOR Port)
Click "APPLY CHANGES" button
How to test?
Login into machine (on LAN) and run:
curl ifconfig.me
The output should be an TOR network IP.
If you disable the PORT-FORWARD rule you should see you normal IP.
Of course, depending on your LAN configuration maybe you must add more FW rules.