LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-14-2005, 09:13 PM   #1
swmok
Member
 
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
Question about "sshd log"


Hello:

I've check the auth.log of my Debian 3.0 system.
There is record about the sshd.

Apr 15 10:01:07 firewall sshd[3773]: Could not reverse map address 10.100.128.251.
Apr 15 10:01:09 firewall sshd[3773]: Accepted password for pig from 10.100.128.251 port 1037 ssh2

I understand the second statement. That means the user pig login successfully.

About the first statement, is it a problem or normal?
How can I fix it?

Thanks.
 
Old 04-14-2005, 09:20 PM   #2
swmok
Member
 
Registered: Jul 2003
Posts: 152

Original Poster
Rep: Reputation: 30
Sorry that I found the field "VerifyReverseMapping" is set to be "no" by default.
However, is the sshd still try to verify the remote host?

Thanks.
 
Old 04-14-2005, 09:24 PM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
This is just the optional reverse DNS lookup the sshd can perform. This acts as an added security feature against spoofing by checking whether the hostname and IP address agree according to the DNS record. However, the 10.0.0.0/8 IPs are an IANA reserved block for private use and so the DNS record won't match the local hostname. There isn't anything wrong with that, it's just how it works. You can actually disable the reverse DNS lookup if you like by uncommenting the useDNS option in the sshd_config file and setting it to 'No'.

--Just saw your reply---

VerifyReverseMapping has been deprecated and replaced with the useDNS option, at least in newer versions of sshd. If you are using an older version, the VerifyReverseMapping option may still work. You can try using one or the other, just make sure to restart sshd after making changes so that it re-reads the config.
 
Old 04-14-2005, 09:34 PM   #4
swmok
Member
 
Registered: Jul 2003
Posts: 152

Original Poster
Rep: Reputation: 30
Oh! Thanks for your reply.
However, there are still 2 questions.

First, the log shows the following


Apr 15 08:27:25 firewall sshd[3709]: Could not reverse map address 211.157.108.19.
Apr 15 09:46:33 firewall sshd[3756]: Could not reverse map address 61.129.49.27.


The IP address is not the reserved block. Is it normal?

Second, I cannot find the field "useDNS" or anyother options about "DNS".
I am using the Debian 3.0 kernel 2.4. Is it a difference?

Thanks.
 
Old 04-14-2005, 10:14 PM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69

Apr 15 08:27:25 firewall sshd[3709]: Could not reverse map address 211.157.108.19.
Apr 15 09:46:33 firewall sshd[3756]: Could not reverse map address 61.129.49.27.
The IP address is not the reserved block. Is it normal?

Not 100% sure, but I believe these come from hosts behind a NAT firewall. I see them fairly regularly too. I think it's unlikely that these are spoofed, as it's not trivial to spoof an ssh session and do anything meaningful.

Second, I cannot find the field "useDNS" or anyother options about "DNS".
I am using the Debian 3.0 kernel 2.4. Is it a difference?

It would depend more on your ssh version. If you don't see the useDNS option, but you do have the VerifyReverseMapping option, try using that first. Make sure to uncomment it and restart the ssh daemon after making any changes. It might also be informative if you use start sshd with the -ddd option. If it doesn't work try the useDNS option (just edit the config and put it in there). At the very worst, sshd will barf and you'll have to re-edit the config. If you're doing this remotely over an ssh session, then it's probably not a good idea as you'll lock yourself out (trust me I've done it enough times to know better by now )
 
  


Reply



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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM
Fedora Core 3 hangs, freezes on "Starting sshd" ayrton Fedora 2 12-09-2004 09:11 PM
sshd error " bad owner or mode for /var/empty" piraxter Slackware 1 09-09-2003 11:57 PM
sshd says that "Host *" is a bad configuration option. Travis86 Linux - Networking 2 07-08-2003 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:24 PM.

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
Open Source Consulting | Domain Registration