Page 1 of 1

Using tor only for one specific destination

Posted: Thu Sep 07, 2017 1:52 pm
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!

Re: Using tor only for one specific destination

Posted: Thu Sep 07, 2017 6:32 pm
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?