I have a problem with a VPS ports config (on ovh.com). I set up Debian 10 and updated it, but when I try to configure ports I get many errors.
I found that OVH infrastructure is protected by a global firewall, but on my panel it's shown as disabled and there are no rules applied.
EXAMPLE
If I use port 22 for SSH, it's all ok, but if I change the port then I get locked out. Same goes for any port.
ANOTHER EXAMPLE:
MariaDB is installed and listening on port 3306:
MariaDB [(none)]> show variables where variable_name = 'port';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port | 3306 |
+---------------+-------+
Also the rules in iptables are supposed to allow al conections:
debian@vps-54c8e268:~$ sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
Showed open with netstat:
debian@vps-54c8e268:~$ sudo netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
BUT:
When I test port 3306 on https://www.yougetsignal.com/tools/open-ports/, it shows Port Closed.
And when I try to connect from DBeaver, it gets connection refused.