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.
I'd like to set up a proxy either local or on LAN server that has the ability to process an upstream .pac file and then send either the proxy address or the direct URL back to a browser.
I want to do this because Midori doesn't yet support .pac files directly, so I need some sort of middle-man solution.
I've looked at a few proxies like privoxy, tinyproxy, 3proxy, haproxy, but none of these support such a mthod either.
what is an upstream pac file? A pac file will come from a web server or a local disk, "upstream" doesn't figure in any of that The point is that it defines which "upstream" route to take. If you can get a pac file from some out-of-band mechanism, then why can't you just convert that file into config appropriate to your proxy of choice?
It's the converting into something useful that is giving me problems. I tried running a local webserver and using the pac as a normal javascript source but I never managed to get it to work.
a javascript source? What do you mean? Are you saying you're trying to *serve* the pac from a proxy now? It's probably worth you taking a step back and fully explaining what you're trying to achieve here, in simpler terms that are universally recognised.
Well a pac file is simply javascript that works out whether to connect direct or which proxy to use. What I tried to do was use that in a simple html page, as a javascript source. But it would probably need to be extended somewhat. I guess I would need to actually use the proxy url variable as a redirect and send the browser there or something.
Would just be easier if Midori supported pac files directly the same as other browsers do...
The only way I ever got it to work is using a internet connection sharing way. Then you don't put the pac in browser on client but upstream you put it there and share the connection downstream. I used to use Analogx on windows but ICS would work. I keep forgetting how to do this in linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.