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

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct