Currently, I'm allowing all TCP connections to port
80 on my :
-A INPUT -p tcp --dport 80 -j ACCEPT
I'd like to allow all TCP connections to port
5432, but only from my local network. Is there a way to do that, using iptables?
I'm using Ubuntu 12.04.1 LTS server 64bit, but if the answer works the same for most flavors of Linux, let me know and I can update the question title upon your answer.