appending iptables rules interrupts sshd
If I log into remote machine over SSH, execute screen(1) and start following commands:
Code:
root@s1:~# iptables -t filter -A INPUT -s 10.10.10.0/24 -i eth1 -j ACCEPT; iptables -t filter -A INPUT -i eth1 -j DROP; iptables-save; sleep 30; iptables -t filter -F INPUT ..my current SSH session from 10.10.10.0/24 network hangs for 30 seconds and I'm not able to start new SSH sessions to "s1" server from 10.10.10.0/24 network. On the other hand, I'm able to ping "s1" server from 10.10.10.0/24 and "nmap -PN -sT --reason -p22 s1" reports, that port 22 is open: Code:
PORT STATE SERVICE REASON Code:
debug1: SSH2_MSG_NEWKEYS received |
Quote:
|
Quote:
Code:
*filter |
Well you executed "ssh -v root@s1", never mind you logging in as root (for now), so if you want to read the other part of the story, next to 'ssh -vvv' you should also execute 'sshd -ddd'.
|
All times are GMT -5. The time now is 06:24 PM. |