Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Lan2 Traffic on Tor
« previous
next »
Print
Pages: [
1
]
Author
Topic: Lan2 Traffic on Tor (Read 2011 times)
cadtiago
Newbie
Posts: 1
Karma: 0
Lan2 Traffic on Tor
«
on:
March 20, 2021, 11:37:48 pm »
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.
Logged
cmanzur
Newbie
Posts: 4
Karma: 0
Re: Lan2 Traffic on Tor
«
Reply #1 on:
June 09, 2021, 03:52:57 pm »
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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Lan2 Traffic on Tor