Server Setup

Fix slow SSH and DNS in CentOS 6

by , , revisited on

We have by far the largest RPM repository with dynamic stable NGINX modules and VMODs for Varnish 4.1 and 6.0 LTS. If you want to install NGINX, Varnish, and lots of useful modules for them, this is your one-stop repository to get all performance-related software.
You have to maintain an active subscription in order to be able to use the repository!

On a DigitalOcean or Vultr VPS, with IPv6 enabled, you may find that fresh installation of CentOS 6 would have slow SSH connectivity. DNS requests are slow. The solution is easy: you have to allow ICMP traffic for both v4 and v6 in iptables.

iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
ip6tables -I INPUT -p icmpv6 -j ACCEPT

You can run the above command to affect the current firewall state.

After this, save the current rules:

service iptables save

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.