2

On Ubuntu Server, I try to open port 5432 for postgresql:

$ sudo ufw allow 5432/TCP
ERROR: Bad port

Postgresql is not currently running and netstat shows no processes currently using that port. What is going on here?

1 Answer 1

6

Ubuntu's ufw command is case sensitive, the TCP should be lower case

sudo ufw allow 5432/tcp
2
  • 1
    wow I can't believe I missed that one Jun 27, 2014 at 20:04
  • Me too! I completely missed that! Even on 2018, I facepalmed really hard. Jun 27, 2018 at 2:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .