Fix slow SSH and DNS in CentOS 6
by Danila Vershinin, , revisited on
GetPageSpeed keeps NGINX and Varnish servers fast and secure: performance modules and builds, plus security fixes within days, all through routine
Free to install; commercial production use requires a subscription.
dnf, yum or apt upgrades. It maintains the largest RPM repository of NGINX module packages and Varnish VMODs, with APT packages for Debian and Ubuntu.
Free to install; commercial production use requires a subscription.
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