LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-29-2013, 04:46 AM   #1
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Local proxy that supports upstream .pac files?


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.

Has anyone ever set up something like this?
 
Old 08-30-2013, 02:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 08-30-2013, 02:45 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-30-2013, 05:10 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 08-31-2013, 05:41 AM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
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...

Last edited by dive; 08-31-2013 at 05:45 AM.
 
Old 08-31-2013, 12:02 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
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.
 
  


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
ubuntu squid proxy redirect to another proxy pac. karger Linux - Networking 0 02-17-2013 09:44 PM
Using apt behing a .pac http Proxy havok1977 Debian 5 12-11-2012 03:22 AM
Proxy.pac file is not working zyothi Linux - Networking 19 06-10-2010 04:32 PM
Proxy settings PAC file ignored ??? Wynand1 Linux - Networking 1 09-18-2008 05:17 AM
proxy.pac andrewfeberwee Linux - General 4 07-07-2008 05:43 AM

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

All times are GMT -5. The time now is 12:58 AM.

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