sshd childs hangs after blocking
Posted: 04 Aug 2014, 08:36
i use csf v7.07.
i got a lot of processes like these:
i investigated this issue and found that processes are frozen when blocking IP after ssh false logins.
as result we got "hanged" ESTABLISHED connection:
and iptables rules:
but sshd shouldn't hang after blocking. Is it known issue? Solutions?
i got a lot of processes like these:
Code: Select all
root 9164 0.0 0.0 101236 4084 ? Ss Aug01 0:00 sshd: root [priv]
sshd 9165 0.0 0.0 67992 1652 ? S Aug01 0:00 sshd: root [net]
root 10412 0.0 0.0 101104 3796 ? Ss Aug02 0:00 sshd: unknown [priv]
sshd 10414 0.0 0.0 67992 1740 ? S Aug02 0:00 sshd: unknown [net]
root 10439 0.0 0.0 101236 4088 ? Ss Aug03 0:00 sshd: root [priv]
sshd 10440 0.0 0.0 67992 1656 ? S Aug03 0:00 sshd: root [net]
as result we got "hanged" ESTABLISHED connection:
Code: Select all
tcp 0 0 107.6.145.75:22 188.40.170.149:24746 ESTABLISHED 28164/sshd
Code: Select all
12 2352 DROP all -- !lo * 188.40.170.149 0.0.0.0/0 reject-with icmp-port-unreachable
12 2688 DROP all -- * !lo 0.0.0.0/0 188.40.170.149 reject-with icmp-port-unreachable