Using tor only for one specific destination

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
kias
Posts: 1
Joined: Thu Sep 07, 2017 1:49 pm

Using tor only for one specific destination

Post by kias »

Hi there,

I just have finished setting up my router with gargoyle image and activating tor. I've activated tor for a client but noticed that this client can't access other clients in the local network via ssh because it gets routed via tor.

How can I set gargoyle router up that tor is only used for one specific destination url/ip? e.g. I want to route requests (port 80 + 443) to google . com via tor and all others via normal internet.

Thanks for your help!

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Using tor only for one specific destination

Post by ispyisail »

Code: Select all

/var/tor/keys/torrc
## For security, by default Tor rejects connections to private (local)
## networks, including to the configured primary public IPv4 and IPv6 addresses,
## and any public IPv4 and IPv6 addresses on any interface on the relay.
## See the man page entry for ExitPolicyRejectPrivate if you want to allow
## "exit enclaving".
##
#ExitPolicy accept *:6660-6667,reject *:* # allow irc ports on IPv4 and IPv6 but no more
#ExitPolicy accept *:119 # accept nntp ports on IPv4 and IPv6 as well as default exit policy
#ExitPolicy accept *4:119 # accept nntp ports on IPv4 only as well as default exit policy
#ExitPolicy accept6 *6:119 # accept nntp ports on IPv6 only as well as default exit policy
#ExitPolicy reject *:* # no exits allowed
No idea if this will work?

Post Reply