Why ssh session gets disconnect after restarting iptables service ?
Issue
- After taking a
sshconnection to a system and then restarting theiptablesservice , thesshconnection/session breaks, gets disconnect. Its found that before restartingiptablesservice ifip6tablesservice is stopped or commandip6tables -Fis run then thensshconnection doesn't get break or disconnect. - Below is how it affects, after restart there is no console and session breaks:
root@example> service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
root@example>
root@example> service iptables start
iptables: Applying firewall rules: WARNING: [ OK ]
iptables: Loading additional modules: nf_conntrack_proto_sc[ OK ]
Connection closed by foreign host.
Disconnected from remote host(10.255.X.Y:22) at 11:12:47.
Environment
- Red Hat Enterprise Linux
- iptables-ipv6-1.4.7-14.el6.x86_64
- iptables-1.4.7-14.el6.x86_64
- kernel-2.6.32-504.30.3.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
