Category: Knowledgebase

Server hangs for a long time on firewalld service shutting down or on reboot

Add/edit following option in /etc/firewalld/firewalld.conf;

CleanupOnExit=no

Using option CleanupOnExit=yes in /etc/firewalld/firewalld.conf flush firewall rules and try to off-load nf_conntrack module. If server hangs, it is because something is stopping nf_conntrack module from unloading quickly.

Try running systemctl stop firewalld and see if service hangs. If firewalld service start is success you are likely not having this issue.

System panic error – IPv4: Attempt to release alive inet socket | IPv4: Attempt to release TCP socket in state 1 [kernel address]

The main reason for this system panic error is that socket is being closed while packet sent via that socket is queued to userspace. After userspace reinjects (userspace or another netfilter rule asks for the packet to get queued again,) the refcount transition will be 1 -> 0 -> 1 (-> 0), thus double-free occurs.

This error is being managed in bugzilla 1885682 and 1886557.

How to configure a SSH tunnel?

On the client machine perform the following step:

[root@host]# ssh -N -L :: user@remote-machine-ip

From a new console/terminal execute the telnet command as follows:

[root@host]# telnet localhost

This kb is relevant to the following;

  • Encrypt the traffic by SSH tunneling the connection to remote host.
  • Encrypt unencrypted network traffic