Agregar lo siguiente en /etc/iptables/rules.v4
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5432 -j ACCEPT
despues ejecutar:
sudo iptables-restore < /etc/iptables/rules.v4
| Source | Protocol | Origin Port | Destination Port | Name |
|---|---|---|---|---|
| 10.0.0.0/24 | TCP | All | 5432 | PostgreSQL |