LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2010, 06:51 PM   #1
Yomaoni
Member
 
Registered: Aug 2003
Location: Boise, idaho
Distribution: Red Hat, Fedora, Debian, BSD, CentOS, Ubuntu
Posts: 44

Rep: Reputation: 15
proxy redirect based on url


I work for a auto dealership, and they have a proxy server that is provided by toyota that does nothing other than route traffic some specific sites they use in the dealership. We are looking to put a local proxy server in place to filter web traffic of virus/inappropriate content. What I am looking to do is set everyone's proxy settings to point to our server but when someone puts in the toyota sites it will redirect them to toyota's proxy server and out. I am not sure if this is possible or not. Any help will be greatly appreciated.

Thanks
 
Old 03-24-2010, 09:39 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Yes, you can. If you take a look at proxy.pac doco you'll see that you can redirect people based on network addresses, URL's etc including the use of wildcards

eg.

Code:
if (shExpMatch(url,"http://*.toyota.com/*")) return "PROXY toyota-proxy.toyota.com:8080";
hth
 
Old 03-25-2010, 12:35 PM   #3
Yomaoni
Member
 
Registered: Aug 2003
Location: Boise, idaho
Distribution: Red Hat, Fedora, Debian, BSD, CentOS, Ubuntu
Posts: 44

Original Poster
Rep: Reputation: 15
kdp,

thanks for the quick reply. up till the past few days I have had very little dealings with the workings of the proxy system of this network since it was managed by the toyota tech support. This has been a learning experience to say the least. I was looking into this proxy.pac file and found that I can do everything I need to do by the looks of it with the if/then statements. now I just need to get a list of all the sites that need to go through this toyota proxy and then funnel everything else out our connection. Thanks again for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid how to redirect url gubak Linux - Networking 3 03-04-2010 02:06 PM
squid redirect url to different proxy aeby Linux - Software 0 08-13-2009 08:37 AM
Redirect URL to localhost beachcomber Linux - Newbie 3 10-22-2007 08:39 AM
redirect url munna_dude Linux - Software 2 02-15-2007 12:18 AM
url redirect Present Linux - Networking 4 01-26-2007 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration