Trying to set up separate web and db servers. I have it working on another host and am trying to migrate both to Linode. Where I'm having confusion is how Linode recommends using the public ipv6 address between the two linodes and my iptables rule.
On the other host I'm using the private ip4's and have set them both up in the /etc/hosts on each server, example: 192.11.23.111 webapp, 192.11.23.222 dbserver. Then in iptables on the db server, I only allow connections to mysql from webapp.
Code:
# Allow DB connections
-A INPUT -i eth1 -s webapp -p tcp --destination-port 3306 -j ACCEPT
So I'm not sure how to edit this rule to allow the ipv6 connection from the webapp.
Or I could skip all this and just use the private ip4's linode provides right?