why opening a port is so difficult in ubuntu?
Posted
by
icn
on Ask Ubuntu
See other posts from Ask Ubuntu
or by icn
Published on 2013-10-19T04:59:43Z
Indexed on
2013/10/19
16:09 UTC
Read the original article
Hit count: 151
I have searched around and I have run these commands
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 5432 -j ACCEPT
iptables-save > /etc/iptables.rules
And I rebooted the box. I had no luck.
What am I missing? IS there a universal way to do this thing in ubuntu? I remember in fedora I just need to edit a text file and make it happen.
Thanks
UPDATE
I have run
ufw allow 5432
and I ran
ufw status
I got this result
Status: active
To Action From
-- ------ ----
5432/tcp ALLOW Anywhere
80 ALLOW Anywhere
22 ALLOW Anywhere
5432 ALLOW Anywhere
5432/tcp ALLOW Anywhere (v6)
80 ALLOW Anywhere (v6)
22 ALLOW Anywhere (v6)
5432 ALLOW Anywhere (v6)
I still cannot access 5432!
© Ask Ubuntu or respective owner