Send specific url's via vpn?

FromTheLou

[H]ard|Gawd
Joined
Nov 2, 2006
Messages
1,118
I'm wanting to send send some specfic web traffic to set of urls/ips via a vpn connection. Id like all devices on the network to be able ti do this.

I've got a spare 3720/3640 along with some available 1u servers that could use pfense/etc.

I.e. I want all devices to route www.google.com thru a vpn connection.

Thoughts?
 
I do this with 2x squid, one local one on the other side of the tunnel

config on the local squid looks something like this...


Code:
acl redirect dstdomain .domain.com .domain1.com
cache_peer 192.168.1.1 parent 3128 0
cache_peer_access 192.168.1.1 allow localnet redirect
never_direct allow  redirect

192.168.1.1 being the remote squid.

I tried multiple other ways this was the simplest I found though when you start having domains with multiple ips behind them. there may well be a better way to do this, this fitted my needs.
 
Back
Top