Why ssh session gets disconnect after restarting iptables service ?
Issue
- After taking a
ssh
connection to a system and then restarting theiptables
service , thessh
connection/session breaks, gets disconnect. Its found that before restartingiptables
service ifip6tables
service is stopped or commandip6tables -F
is run then thenssh
connection 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, tools, and much more.