Solved

http_proxy in solaris10 sparc?

Posted on 2009-07-02
22
2,897 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
   
0
Comment
Question by:stock99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 11
  • 8
  • 3
22 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 138 total points
ID: 24765325
are you going t use gui browser ? if yes then you can set it to use proxy. if you want to use tools like wget then it supports http_proxy
0
 

Author Comment

by:stock99
ID: 24767705
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.
0
 

Author Comment

by:stock99
ID: 24767716
Forgot to mention i only have ssh access.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 138 total points
ID: 24770852
I am not sure if other applications use http_proxy on solaris. When you say you only have ssh access, do you mean from the system?
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24772367
export http_proxy=http://user:password@proxy.host:port/
-"- ftp_proxy
-"- https_proxy

Does not work with GNOME-JDS breed but that does not seem to be of concern.
Works with lynx, pkg etc.
0
 

Author Comment

by:stock99
ID: 24778530
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)?
 
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 138 total points
ID: 24778792
The export command will make env variables available to sub processes of the current shell for that user and not all users.
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24792437
command line tools have no intrumentation to get passwords.
graphical browsers do PAC/WPAD
0
 

Author Comment

by:stock99
ID: 24846094
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)


0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24846939
http://www.par.univie.ac.at/solaris/pca/usage.html

it uses wget configuration, not environment. get wget right first.
0
 

Author Comment

by:stock99
ID: 24875079
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
0
 

Author Comment

by:stock99
ID: 24875082
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.
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24878165
You missed last slash in variable content.
0
 

Author Comment

by:stock99
ID: 24885093
i tried added that, but still got the same result..
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24887606
Works for me for last 10 years, you are special - does not for you.
0
 

Author Comment

by:stock99
ID: 24888058
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

0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24888440
Look at proxy logs. HTTP error 400 is generated by HTTP server or proxy, not by client like the error you posted previously.
Are you able ot download with lynx or wget in current setup?
0
 

Author Comment

by:stock99
ID: 24891642
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)
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24892787
Then go with http. Your wget may not support ssl as well.
0
 

Author Comment

by:stock99
ID: 24910579
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.
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 362 total points
ID: 24910603
Ask your proxy admin - really...
0
 

Author Closing Comment

by:stock99
ID: 31599272
no
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question