I have this rule on my iptables:
iptables -A INPUT -i eth0 -p tcp --dport 5432 -s 18.104.22.168 -j ACCEPT
where 22.214.171.124 is the client ip that i want to connect to my db server. can you please tell me what's the problem? this still won't allow me to connect. When i try to stop my firewall or flush the rules, i can be able to remotely connect to postgresql.
Please help. THanks!