Linode Forum
https://forum.linode.com/

Confirming Private IP Communication to MySQL
https://forum.linode.com/viewtopic.php?f=19&t=11585
Page 1 of 1

Author:  rssamad [ Fri Feb 06, 2015 9:38 pm ]
Post subject:  Confirming Private IP Communication to MySQL

Hi All,

I have 2 Linode servers: 1 web server and 1 database server. I have followed the Linode guides, currently Private IP communication via ping is working. So the Web and Database server can ping each other on their respective Private IPs.

I would like to validate that the Web and Database Servers are using their Private IP to communicate but I am not sure how to do this. Specifically, I want to make sure that any requests from the Web Server to the Database Server uses the Private IP.

Would this be achievable if I modified the /etc/my.cnf file? Removing the hash from the Bind-Address line, and inserting the Database Server's Private IP?

Please let me know if you have steps that I can follow to validate and configure the Private IP communication.


Database Server /etc/hosts File

127.0.0.1 localhost.localdomain localhost
104.237.146.33 db33.domainname.com db33
127.0.0.1 localhost 192.168.177.233 mysql.domainname.com mysql 192.168.176.211 domainname.com
192.168.177.233 db33
192.168.176.211 ws33
2600:2c03::f01c:91ff:fe84:ffde db33.domainname.com db33


Web Server
Fedora release 21 (Twenty One)
Apache/2.4.10 (Fedora)
PHP 5.6.4

Database Server
Fedora release 21 (Twenty One)
mariaDB 10


Thanks,

Ray

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/