Connect to Postgres remotely, open port 5432 for Postgres in iptables
- by Victor
I am trying to connect to Postgres remotely but I need to open port 5432 in iptables. My current iptables configuration is as follows:
*filter
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0
-A INPUT -i lo -j ACCEPT
-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT
# Accepts all established inbound connections…