I would like to have 3 different public IP to access the MariaDB running on a VPS with myVestaCP.
Say (public IPs):
First of all, I have added 22.214.171.124 on the FIREWALL setting for DB (administration page -> FIREWALL tab -> "ACCEPT TCP /DB 3306,5432 126.96.36.199").
Then, I have created a custom.sh (/usr/local/vesta/data/fiewall) and add the following lines.
It is now connecting from these whitelisted IP addresses.
Code: Select all
#!/bin/bash iptables -A INPUT -s 188.8.131.52,184.108.40.206 -p tcp -m multiport --dports 3306,5432 -j ACCEPT
Please suggest whether I am taking the best way to do so. Thanks in advance.