- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Am I looking for an impossible solution ???
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
Forums
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
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
06-24-2003 02:43 AM
06-24-2003 02:43 AM
I have a number of remote support people who use SonicWall VPN to connect to our UNIX servers. Of course the IP address of these users is provided by their own ISP's and is unknown to our network. The problem I have is that a telnet
I understand that this delay is caused by the server trying to perform a reverse lookup on the IP address to resolv the host name, but how can I prevent the delay?? We have 2 DNS servers on our network which is probably why it takes about 60 seconds but changing this to one still takes about 30 seconds.
I can't add every possible IP address to our DNS servers, but I can't find a way to an an generic address or zone to cover all address outside our subnet
To make this worse, we don't have the same situation if you telnet to a non Unix/Linux server.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:01 AM
06-24-2003 03:01 AM
Re: Am I looking for an impossible solution ???
I have not used Sonic Wall but would imagine the problem is in the config of somnic wall in that should it not do an address translation fot these vpn telnet users and only present a known pre-defined range of ip addresses to the server.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:03 AM
06-24-2003 03:03 AM
Re: Am I looking for an impossible solution ???
justa thought: does this occur for every user or only for certain users ?
It may also be a problem related to NIS/NIS+/LDAP, do you have any of these facilities ?
Are you sure that the problem is the reverse lookup ? Or it might be related to tha handshaking of the VPN ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:07 AM
06-24-2003 03:07 AM
Re: Am I looking for an impossible solution ???
The SonicWall VPM client just provides an IP tunnel to our network. Unfortunatly it does not support NAT (Network Address Translation), so the IP address provided by our users ISP's is the IP address seen by our servers, hence the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:12 AM
06-24-2003 03:12 AM
Re: Am I looking for an impossible solution ???
This happens for all users. I can prove its reverse DNS related by deleting the entry of my own office PC from our dns server. When I try to telnet to a UNIX server I get the delay, but a ping works straight away.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:34 AM
06-24-2003 03:34 AM
Re: Am I looking for an impossible solution ???
The following /etc/nsswitch.conf entries allowed immediate login via ftp/telnet
(my network is configured properly):
hosts: files [NOTFOUND=return UNAVAIL=return]
or
hosts: files [NOTFOUND=return UNAVAIL=return TRYAGAIN=return]
If you can avoid DNS, this might be a solution.
Still looking for case similar to yours....
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:40 AM
06-24-2003 03:40 AM
Re: Am I looking for an impossible solution ???
I did a search but your problem looks well known, but not resolved in 11.00
There should be an enhancement in 11.11, where you can specify the timeout for the reverse lookup for telnetd, but a backpot to 11.00 it's not near.
YOu can try mny hint an afterwards decide.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:43 AM
06-24-2003 03:43 AM
Re: Am I looking for an impossible solution ???
Yes it does happen for all users. I believe it is due to reverse lookup as I have removed the dns entry for my office PC from our dns server telnet to UNIX server and I get the same delay. The basic question is how can I telnet from an unknown hostname.
Its worse as this only effects my UNIX/LINUX servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 04:17 AM
06-24-2003 04:17 AM
Re: Am I looking for an impossible solution ???
I remember to have read timeout value for DNS search. If you reduce this you will get telnet early.
But 30 sec seems to be default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 04:29 AM
06-24-2003 04:29 AM
Re: Am I looking for an impossible solution ???
Please isolate the path and determine what network nodes are involved for both. Use tracert from your windows work stations.
> tracert 192.1.1.1
.
.
.
Trace Complete.
Isolate the differences and focus on the network node difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 04:37 AM
06-24-2003 04:37 AM
Re: Am I looking for an impossible solution ???
this is almost certainly caused by your DNS timeout settings.
telnetd makes a gethostbyaddr() call to try to map the incoming IP address to a name. This triggers the resolver library routines which results in an nslookup. The nslookup eventually times out. The fact that using two DNS servers takes twice as long as one would seem to confirm this.
As Anil suggested you can create a .nslookuprc file (which should be in root's home directory as telnetd will be running as root) and specify the options you want to override.
I would start with "retry = 0"
HTH,
Michael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 04:39 AM
06-24-2003 04:39 AM
Re: Am I looking for an impossible solution ???
See 'man nslookup' for details of the options you and set.
Michael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 06:41 AM
06-24-2003 06:41 AM
Re: Am I looking for an impossible solution ???
Massimo your entry for the nsswitch.conf file file does work but it does cause problems with not having DNS. Unless somebody else comes in with a better answer I will allocate you another 3 points but I have not allocated 10 to try to encourage further ideas.
Mike , Anil, The .nslookuprc file makes no difference. If I do an nslookup 123.123.123.123 which is an unknown address to our dns server it returns sraight back with
Trying DNS
Trying NIS
looking up FILES
*** No hostname information is available for "123.123.123.123"
but the telnet still takes ages.
Michael, The trace route does not show any differece to between a UNIX server and an iseries or windows server.
I believe the problem is somewhere in the gethostbyname routine telnet must perform, else why does Massimo's fix for disabling DNS work. I'm guessing this function does not use a straight nslookup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 07:03 AM
06-24-2003 07:03 AM
Re: Am I looking for an impossible solution ???
if the people you mentioned connect rarely, i will not disable DNS.
This problem is not-blocking, it is only annoying.
So, if disabling DNS can held more problem, i will let situation as is.
Another solution: build just one server, with all secutiry cares on it, and have all the people connect to this server.
From this server, they can telnet/login to the others, without loss of functionality.
If security is a concern, and you must export also the X server, you can think of using ssh.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 07:12 AM
06-24-2003 07:12 AM
Re: Am I looking for an impossible solution ???
retry 0
in your resolv.conf file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 07:18 AM
06-24-2003 07:18 AM
SolutionGo through your /var/adm/syslog/syslog.log file and you'll see most of them.
Of course you'll want to run the daemons in inet.conf with the enhanced logging feature -l
From there you can collect some data off of your syslog and then write a script adding them to a dns zone called outside or unknown.
Most non dial-up users with dynamic IP addresses generally get the same one for months at a time.
As an alternative, you can just use made up hostnames for the same data in /etc/hosts and set the DNS servers to a quick timeout, so files gets used quickly.
This could disrupt internal dns, but probably not.
I don't think your situation is impossible. You merely need to think outside the box and patiently try some ideas.
Good Luck,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 09:24 AM
06-24-2003 09:24 AM
Re: Am I looking for an impossible solution ???
I think Paula hit the issue...it's how you configure your VPN. That's what our VPN guy tells me.
Here we come from a variety of ISP's....and gain access. We pass through the firewall and login to our VPN. In other words...and body from anywhere can hit the VPN login, but must have an account and password to gain access (so all ports are open at that end).....once logged in each login get's a unique private IP that is within the IP ranges allowed on the UNIX servers, and allows the connection to then pass on through....
Can you tell I am not the VPN guy......but that is the basic scenario he outlined to me. He says this is just one of the ways you can configure VPN.
Hope that made some sense,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 09:42 AM
06-24-2003 09:42 AM
Re: Am I looking for an impossible solution ???
http://www.sonicwall.com/products/soho3.html
Being able to NAT is really the issue, and then you won't have to bother with the DNS lookups.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 09:44 AM
06-24-2003 09:44 AM
Re: Am I looking for an impossible solution ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 10:46 PM
06-24-2003 10:46 PM
Re: Am I looking for an impossible solution ???
Many thanks to everybody for their help on this one it's goo to know there are people out there willing to help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 04:36 AM
06-25-2003 04:36 AM
Re: Am I looking for an impossible solution ???
I give this tip out frequently:
Change the DNS resolver timeout!
The root cause of the issue is, as others have noted, the time to do the map of the incoming IP to a hostname using DNS. Change the DNS resolver timeout so that you won't get as long of a pause. e.g. retry 1 and retrans 1000
# cat /etc/resolv.conf
search mydomain.com anotherdomain.com
nameserver 10.10.10.10
retrans 1000
retry 1
resolver(4) man page sez:
retrans value in milliseconds
retry number of retries
Implemented in libc patches for 10.20 and 11.0 in 1999, implemented in 11.11 base release.
Hope that helps,
-> Brian Hackley