We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

http_proxy in solaris10 sparc?

stock99
stock99 asked
on
Medium Priority
3,838 Views
Last Modified: 2013-12-19
Hi,
   Can someone help me on configuring the proxy login from the solaris 10 (sparc)? I need to setup the http proxy so the box can reach internet doing some download and other things.

   Is there similar thing like http_proxy i can do for solaris? Would be appreciated if someone can show me the step on configuring it.  By the way, is there anyway i can make it prompt user to enter password (or/and username) upon access internet from shell?

ps: would prefer to do it on command line
   
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
so there is no environment variable like linux's http_proxy where you can set it and let other applications using http traffic to go through proxy server ? I mean, configure individual package using http to go through proxy is kinda not as convenient.

Author

Commented:
Forgot to mention i only have ssh access.
CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Hi Gheist,


does that export mean I going to allow system wide accessing using that single username/password? is there anyway to limit the access of proxy for per user credential basis(ie. each user have to use their own login and password to get through proxy to internet)?
 
CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
hmm i tried the http approach, but not sure if it is because the last character of my password is '@' , or sth else causing issue. I doesn't seem to able to get anything download using pca "http://www.par.univie.ac.at/solaris/pca/installation.html"

bash-3.00$ pca -l all
Downloading xref file to /var/tmp/patchdiag.xref
Trying https://sunsolve.sun.com/patchdiag.xref (1/1)
Failed
Failed (patchdiag.xref not found)

ERROR: Can't open xref file /var/tmp/patchdiag.xref (No such file or directory)


Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
my wget work with normal http download but not https download. Not too sure what's wrong here. My web browser has no trouble to access https site.

bash-3.00# echo $http_proxy
http://username:password@companyproxy.com:8080
bash-3.00# echo $https_proxy
http://username:password@companyproxy.com:8080

Author

Commented:
forgot to paste the error message when trying to download file from https

Connecting to companyproxy.com[x.x.x.x]:8080... connected.
Proxy request sent, awaiting response... 400 Bad Request
11:22:23 ERROR 400: Bad Request.
Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
i tried added that, but still got the same result..
Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Can someone else with more knowledge able to help me for this issue?


From the error log, it had probably already pass the authentication stage (hence the work 'connected').  But somehow, it doens't get pass the https for the proxy? During my normal browsing, I don't usually enter credential twice.

Btw, what would the error 400 stand for proxy error return ?
bash-3.00# echo $http_proxy
http://username:password@company_proxy.com:8080/
bash-3.00# echo $https_proxy
http://username:password@company_proxy.com:8080/
bash-3.00# wget https://sunsolve.sun.com/patchdiag.xref
--12:33:21--  https://sunsolve.sun.com/patchdiag.xref
           => `patchdiag.xref'
Resolving company_proxy.com... some_internal_dns_ip
Connecting to company_proxy.com[some_internal_dns_ip]:8080... connected.
Proxy request sent, awaiting response... 400 Bad Request
12:33:21 ERROR 400: Bad Request.

Open in new window

Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
i dont' have access to proxy server unfortunately.  because of the company bureaucracy, i can't get any info from them..

I am able to download via wget via http but not via https . I can go try lynx but not so sure where to config the ssl (seldom use lynx)
Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
well.. the problem is when going thro http, most pacakge are not found. Not sure if it is because i use "--noreboot" and "--safe".  But only 10% of package get update make me wonder if http access allow all the update package to be done.
Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
no
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.