Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat, Fedora, Debian, BSD, CentOS, Ubuntu
Posts: 44
Rep:
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.
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";
Distribution: Red Hat, Fedora, Debian, BSD, CentOS, Ubuntu
Posts: 44
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.