You are not logged in.

#1 2012-01-04 07:47:15

bahman
Member
Registered: 2011-04-11
Posts: 17
Website

System-wide Transparent Proxy With URL Patterns

Internet censorship -where I live- has almost turned web unusable so  I decided to setup a transparent proxy using Tor for my home network.
Since Tor is so slow -here- proxying all traffic through Tor would slow my connection to a crawl.  Therefore I need a mechanism to selectively proxy the traffic.

I know a bit of 'iptables' and it looks to me like the solution to my problem.  However there's a trick.  As most of the websites I need to access through Tor (like Google+, Facebook and such) use several IP addresses for their entry points, it's almost impossible for me to add 'iptables' rules for all of those IP addresses.  I need a mechanism to proxy the traffic based on URL patterns.  For example I need to be able to proxy access to '*.facebook.com' through Tor.

So the question boils down to:  how can I setup a system-wide transparent proxy using URL patterns?

Any idea/hint is much appreciated.  TIA,

--
Bahman

Last edited by bahman (2012-01-04 07:48:44)

Offline

#2 2012-01-04 09:01:11

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: System-wide Transparent Proxy With URL Patterns

Hmm. Is it not sufficient to use two different browsers, one Tored, and one not? Eg use Firefox with Tor for all Facebook etc; and use Chromium for traffic you don't need torified.

Don't get yourself killed! Authoritarian regimes suck ass.

Offline

#3 2012-01-04 09:13:53

bahman
Member
Registered: 2011-04-11
Posts: 17
Website

Re: System-wide Transparent Proxy With URL Patterns

Applications that I use and need to be proxied are more than Firefox -which has excellent FoxyProxy add-on.  That's the problem :-)

Offline

#4 2012-01-04 17:54:51

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: System-wide Transparent Proxy With URL Patterns


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

Board footer

Powered by FluxBB