LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2011, 02:14 PM   #1
hyprduey
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Proxy configuration


Hey I'm sorry if this is a repost, but I've searched for about 20 minutes through the forums and can't seem to find anything pertaining to my problem.

My company uses a proxy configuration script hosted on their domain (eg. example.com/proxy.pac). So for configuring firefox, I just put the url of the script in the proxy-config options and it works fine. However, I still cannot use terminal commands like wget and apt-get, or even ping outside of our network. Is there any way to see what the script is returning to the browser when it queries the proxy.pac file?

I've tried setting the system proxy ('export http_proxy=***') to the .pac file.

Note: The proxy DOES require authentication.
 
Old 09-15-2011, 02:24 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
just curl / wget that url, it's just an ascii script.
 
Old 09-15-2011, 04:51 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
You are subject to getting fired just so you know.

I have never seen a proxy pac that requires authentication but you should be able to see it when you view the pac file.


proxy pac files and wpdat files are only good per application.

You have to edit the configuration if you can for each app to get them to work. Not all apps will work.

They have never fixed the system wide proxy setting for pac files.

You might look at your proxy.pac file and set the correct proxy address and port in manually too. The file would reveal the rules of the pac file.
 
Old 09-15-2011, 05:00 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
proxy pac files don't require authentication, that's not what he's saying, he means the proxy needs authentication.


"proxy pac files and wpdat files are only good per application."? what does that mean?? have you ever used one??

just get the pac file and read it, that's all he needs to do.
 
Old 09-15-2011, 09:21 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
I have used proxy.pac files for about 17 years. I think I am pretty good at them.

Just reading it is not how I have to connect via our proxy servers. It gives me clues but I have to edit the tools that require changes.

As I have stated, no disto I have ever used can apply system settings with a proxy.pac file.
It may allow some browsers to connect but it won't allow anything else. You have to edit each apps configuration file if you can in the app settings. Not all apps allow that.

An example might be .wgetrc to fix wget. Apt is the same, it needs it's config to be edited.

Last edited by jefro; 09-15-2011 at 10:26 PM.
 
Old 09-19-2011, 10:28 AM   #6
hyprduey
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks to everyone who replied. Followed your suggestions, and I can use wget now.

Thanks..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 12:25 PM
Alpine configuration through Proxy indiajoe Linux - Software 0 07-01-2009 10:03 AM
Proxy configuration tsaravan Linux - Newbie 1 08-04-2005 07:28 AM
Proxy configuration milon Linux - Newbie 1 09-26-2004 10:24 AM


All times are GMT -5. The time now is 04:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration