- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setting proxy setting
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 06:21 PM
03-01-2007 06:21 PM
setting proxy setting
1). I set the DNS server ip address in /etc/resolv.conf
I can ping the DNS server.
2).I ran,from the commandline
export http_proxy=”http://username:password@proxy.blah.com”
But i can't lynx www.google.com
why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 06:36 PM
03-01-2007 06:36 PM
Re: setting proxy setting
- Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 06:52 PM
03-01-2007 06:52 PM
Re: setting proxy setting
nsswitch.compat nsswitch.hp_defaults nsswitch.nisplus
nsswitch.files nsswitch.nis
I can't find nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 07:39 PM
03-01-2007 07:39 PM
Re: setting proxy setting
The default settings are documented in /etc/nsswitch.hp_defaults. Changing this file will have no effect: it is provided as an example only.
Does "nslookup www.google.com" report the correct address(es) for Google?
If it does, there might be a firewall preventing you from accessing the proxy... or the proxy itself might be configured to not serve your HP-UX box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 07:49 PM
03-01-2007 07:49 PM
Re: setting proxy setting
Name Server: svdt1ad01.xyz.net
Address: 172.29.200.99
Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "www.google.com"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 08:01 PM
03-01-2007 08:01 PM
Re: setting proxy setting
Where your global lynx.cfg file is supposed to reside depends on how your lynx was configured before make.
For instance with my lynx build on AIX it resides in /usr/local/lib/lynx.cfg, but yours may be somewhere else.
If you edit this file search for directives that contain the string proxy.
There is ample comment how these directives ought to be set.
If you had invoked lynx with -h (or some other invalid option), or had read lynx's manpage you would have come accross the option "-pauth=id:pw" which is how you should pass the proxy credentials.
Better yet however would be setting them in the cfg file.
lynx should acknowledge the same variables like wget or the Perl LWP suite (aka libwww).
So I think you could as well export the environment variables proxy_user and proxy_passwd.
As many proxies behave differently it could be likely that yours isn't considering the credentials in the URI as you provided them (although according to the URI RFC this is valid syntax).
Our proxy for instance, doesn't care for URI embedded credentials, but the passing of a proper Base64 hashed request header of type
"Proxy-Authorization: Basic ", which wget or lynx formats for you from the above mentioned directive or option values, works very well.
You could check this if you have a recent Perl installation by an lwp-request which you pass your proxy-url with -p, the proxy credentials with -C, and get the request HTTP header displayed (together with the response) by the -U option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 10:48 PM
03-01-2007 10:48 PM
Re: setting proxy setting
Can it at least resolve the IP of the proxy server?
Try something like:
nslookup proxy.blah.com
What is the port number of the HTTP proxy? It is not always port 80, but may be something else, like 8080.
In that case, use:
export http_proxy="http://username:password@proxy.blah.com:8080"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 11:16 PM
03-01-2007 11:16 PM
Re: setting proxy setting
Name Server: svdt1ad01.blah.net
Address: 172.29.200.99
Trying DNS
Name: svdt2proxy02.blah.net
Address: 172.31.160.18
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 12:13 AM
03-02-2007 12:13 AM
Re: setting proxy setting
Your user agent only needs to be able to resolve your proxy's name to which it passes the Internet URI whose content you want to fetch.
If your proxy cannot resolve e.g. www.google.com I would ask the admin responsible for the proxy to check their DNS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 12:19 AM
03-02-2007 12:19 AM
Re: setting proxy setting
This HP-UX box is baffling me!!
In which file in hP-UX do u insert the export http_proxy, instead of typing on the commandline?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 07:46 PM
03-04-2007 07:46 PM
Re: setting proxy setting
I assume that the mentioned HP-UX box isn't acting as the WWW proxy for your shielded PCs.
You would export any proxy related environment variables that your user agent understands (be it wget, lynx, links, lwp-request or whatever) in the user's environment that is running these UAs, so in most cases a shell profile file like $HOME/.profile,
or set them in a wrapper script that starts the UA.