On 27 December 2011 15:11, MT Julianto <[email protected]> wrote:

>
> On 27 December 2011 08:57, zxq9 <[email protected]> wrote:
>
>> On 12/27/2011 04:12 PM, MT Julianto wrote:
>>
>>> The machine looks (sometimes) sleep, although it is always on, idle, no
>>> screensavers is running, and no network changes surroundings.  That's
>>> never happened before migrated, and never happened when connecting or
>>> neighbor machines in the office.
>>>
>>
> I haven't had this issue myself at all, but power settings is the first
>> place I would start looking. Another place to check might be the sshd
>> settings (but again, this would be strange since others haven't reported
>> the same issue).
>>
>
> What settings of sshd might related to the problem?  I used fresh
> installation of SL61, did small change to /etc/ssh/sshd_config:
> "PermitRootLogin no" and always use ssh with authentication key.
>
>
>> It could also be routing in the office. But I'd check the above two
>> things before I start wondering if routers don't like to remember my
>> system's MAC or DHCP address or something (though its possible if your
>> office needs some setting for DHCP leases to last the right amount of time
>> or whatever).
>>
>
> The machine got IP (public IP) via dhcp with fixed-address
>
> I'll watch the dhcp lease further whenever the problem occurs again later,
>

Thanks for your replies :-)

All possibilities are negative: not power mode issue, not dhcp issue (see
below), not iptables issue (see below), not hacking issue (/var/log/secure
is clear (no attack) at that fail time).

Then I will conclude that there must be a problem with the router nearby.
Are there any other possibilities?

Cheers,
-Tito.


home:~$ ssh office
ssh: connect to host office port 22: No route to host

home:~$ ssh office
Last login: Fri Dec 30 01:20:07 2011 from home
Welcome back
office:~$ date
Fri Dec 30 07:57:15 CET 2011

root@office:~$ tail --lines=3 /var/log/secure
Dec 30 07:57:12 office sshd[22176]: Accepted publickey for username from
ip_home port 42296 ssh2
Dec 30 07:57:12 office sshd[22176]: pam_unix(sshd:session): session opened
for user username by (uid=0)
Dec 30 07:57:25 office su: pam_unix(su:session): session opened for user
root by username(uid=17689971)

root@office:~$ tail --lines=16 /var/lib/dhclient/dhclient-xxxx-eth0.lease
lease {
  interface "eth0";
  fixed-address ip_office;
  option subnet-mask 255.255.240.0;
  option routers ip_router;
  option dhcp-lease-time 7200;
  option dhcp-message-type 5;
  option domain-name-servers ip_dnsserver;
  option dhcp-server-identifier ip_dhcpserver;
  option ntp-servers ip_ntpserver;
  option host-name "office.domain";
  option domain-name "domain";
  renew 5 2011/12/30 07:35:58;
  rebind 5 2011/12/30 08:34:10;
  expire 5 2011/12/30 08:49:10;
}

root@office:~$ tail --lines=3 /var/log/messages
Dec 30 07:49:10 office dhclient[1360]: DHCPREQUEST on eth0 to ip_dhcpserver
port 67 (xid=0x725e8c7b)
Dec 30 07:49:10 office dhclient[1360]: DHCPACK from ip_dhcpserver
(xid=0x725e8c7b)
Dec 30 07:49:10 office dhclient[1360]: bound to ip_office -- renewal in
2808 seconds.

root@office:~$ iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state
RELATED,ESTABLISHED
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp
dpt:22
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with
icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with
icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Reply via email to