-A INPUT -p tcp -m state --state NEW -m tcp --dport 5432 -j ACCEPT
despues ejecutar:
sudo iptables-restore < /etc/iptables/rules.v4
====== Open port in the security list ======
^ Source ^ Protocol ^Origin Port ^ Destination Port ^ Name^
| 10.0.0.0/24 | TCP | All | 5432 | PostgreSQL|
====== Open port external ======