I have two servers. Let's call them A and B. Both are running ubuntu server 14.04. B runs percona server. Now I do not have any firewall set-up on either servers still I am unable to connect to server B from A. Percona server is bound to XXX.XXX.XXX.XXX

When I do a

 telnet XXX.XXX.XXX.XXX 3306

      - where the IP is a local private IP

from A, I am unable to access it. Whereas, the server B also runs a SSH and when I try to do:

telnet XXX.XXX.XXX.XXX 22

I am able to connect. Can some tell me why is this happening?

  • What is output of cat /etc/xinetd.d/telnet in both servers. Paste the output of both systems in your question – Faizan Akram Dar Apr 14 '15 at 15:54
  • On Server A I get $ cat /etc/xinetd.d/telnet cat: /etc/xinetd.d/telnet: No such file or directory On Server B I get cat /etc/xinetd.d/telnet cat: /etc/xinetd.d/telnet: No such file or directory – Shammi Shailaj Apr 14 '15 at 16:19
  • Percona server is a replacement server for mysql or mariadb, it is not like SSH. See this for more info digitalocean.com/community/tutorials/… – Faizan Akram Dar Apr 14 '15 at 16:31
  • Yes I know that. And that is why I am using it. I have other servers as well from which I am able to access server B and also am able to do a telnet <local-IP> 3306 from those servers – Shammi Shailaj Apr 14 '15 at 16:46
  • Have you removed mysql before installing percona? and have you restarted mysql service before using percona – Faizan Akram Dar Apr 14 '15 at 16:48

I checked. The issue was with thr firewall. Iptables was not registered as a service. So issuing a firewall command to allow from my ip worked. Command used was:

iptables -I INPUT -p tcp -s xxx.xxx.xxx.xxx --dport 3306 -j ACCEPT

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.