AlexGo

Q: o you want the application “postgres” to accept incoming network connections?

I recently updated my Mac Pro to Yosemite and everything was working fine until this morning. My Firewall has alwasy been on however I keep getting this very annoying pop up message: "Do you want the application “postgres” to accept incoming network connections?" it comes every 5 seconds and immediately disappears, even when I click on Apply it still comes back. I have repaired permissions, restarted the system and done search on the net fora solution, however no luck at all. I know that postgres is related to databse, but I have no clue what it is connected to.

 

Your input is highly appreciated.

Mac Pro, OS X Yosemite (10.10)

Posted on Oct 24, 2014 2:40 PM

Close

Q: o you want the application “postgres” to accept incoming network connections?

  • All replies
  • Helpful answers

  • by Linc Davis,

    Linc Davis Linc Davis Oct 25, 2014 3:51 PM in response to AlexGo
    Level 10 (207,941 points)
    Applications
    Oct 25, 2014 3:51 PM in response to AlexGo

    This is a comment on why you might, or might not, want to use the built-in Application Firewall.

    The firewall blocks incoming network traffic, regardless of origin, on a per-application basis. By default it's off, and when turned on, it allows applications digitally signed by Apple, and only those applications, to listen on the network. It does not block outgoing traffic, nor can it distinguish between different sources of incoming traffic, nor does it filter traffic by content.

    No matter how it's configured, the firewall is not, as some imagine, a malware filter. If that's what you expect it to do, forget it. All it will do is bombard you with pointless alerts.

    Consider some scenarios in which you may expect the firewall to be useful.

    1. You enable file sharing, and you allow guest access to certain folders. That means you want people on your local network, but not outsiders, to be able to access those shared folders without having to enter a password. In the default configuration, the firewall will allow that to happen. The router prevents outsiders from accessing the shares, whether the application firewall is on or off. But if your computer is portable and you connect it to an untrusted network such as a public hotspot, the firewall will still allow access to anyone, which is not what you want. It does not protect you in this scenario.

    2. You unknowingly install a trojan that steals your data and uploads it to a remote server. The firewall, no matter how it's configured, will not block that outgoing traffic. It does nothing to protect you from that threat.

    3. A more likely scenario: The web browser or the router is compromised by an attacker. The attack redirects all web traffic to a bogus server. The firewall does not protect you from this threat.

    4. You're running a public web server. Your router forwards TCP connection requests on port 80 to your Mac, and the connections are accepted by the built-in web server, which is codesigned by Apple. The application firewall, still configured as above, allows this to happen. An attacker hacks into the system and tries to hijack port 80 and replace the built-in web server with one that he controls. The good news here is that the firewall does protect you; it blocks incoming connections to the malicious server and alerts you. But the bad news is that you've been rooted. The attacker who can do all this can just as easily turn off the firewall, in which case it doesn't protect you after all.

    5. You're running a Minecraft server on the local network. It listens on a high-numbered port. You, as administrator, have reconfigured the firewall to pass this traffic. An attacker is able to log in to a standard account on the server. He figures out how to crash Minecraft, or he just waits for you to quit it, and then he binds his own, malicious, Minecraft server to the same port. The firewall blocks his server, and because he's not an administrator, he can't do anything about it. In this scenario, the security is genuine.

    6. Here is a more realistic scenario in which you might have reason to enable the firewall. Your MacBook has sharing services enabled. You want those services to be available to others on a home or office network. When you're on those networks, the firewall should be off. When you move to an untrusted network, you can either turn off all the services, or enable the firewall with a non-default configuration to block them. Blocking is easier: one click instead of several.

  • by AlexGo,

    AlexGo AlexGo Oct 26, 2014 8:41 AM in response to Linc Davis
    Level 1 (2 points)
    Oct 26, 2014 8:41 AM in response to Linc Davis

    Linc Davis, thank you for the response and the information regarding Firewall. However, this still did not help resolve the problem I have.

  • by Linc Davis,

    Linc Davis Linc Davis Oct 26, 2014 10:48 AM in response to AlexGo
    Level 10 (207,941 points)
    Applications
    Oct 26, 2014 10:48 AM in response to AlexGo

    You can resolve the problem by turning off the firewall. If you have a valid reason not to do that, which is unlikely, you'll have to figure out how to add the offending program to the allowed list in the Security & Privacy preference pane.

  • by AlexGo,

    AlexGo AlexGo Oct 27, 2014 11:35 PM in response to Linc Davis
    Level 1 (2 points)
    Oct 27, 2014 11:35 PM in response to Linc Davis

    I don't really want to turn of the firewall. The problem is I try to remove the postgres application from the allowed list but it doesnt exists. I also checked the Application folder and it is not there either. 

  • by Linc Davis,

    Linc Davis Linc Davis Oct 28, 2014 7:18 AM in response to AlexGo
    Level 10 (207,941 points)
    Applications
    Oct 28, 2014 7:18 AM in response to AlexGo

    It's not an application. In the firewall settings, uncheck the box marked Block all incoming connections.

  • by hemflit,

    hemflit hemflit Sep 24, 2015 12:32 PM in response to AlexGo
    Level 1 (0 points)
    Sep 24, 2015 12:32 PM in response to AlexGo

    I've just had the same thing happen when finally upgrading an old machine.

     

    That I was getting the prompt every few seconds was a symptom of Postgres restarting every few seconds, and dying before I got to allow or deny its accepting incoming connection. A quick look at /usr/local/var/postgres/server.log confirmed that. Changing firewall settings might remove the annoying dialog, but it wouldn't make Postgres work.

     

    Googling up the error message from the log file pointed at this StackOverflow question: http://stackoverflow.com/questions/25970132/pg-tblspc-missing-after-installation -of-os-x-yosemite

    Apparently this is the typical experience with Postgres when upgrading to Yosemite. The Yosemite installer thinks it's okay to destroy a handful of empty directories inside the Postgres installation.

     

    The solution from that question fixed my problem. (Recreate the directories.)

     

    After that, I got to once, for real, decide to block or allow those connections, and everything's been working fine.

  • by macTATAAbox,

    macTATAAbox macTATAAbox Jan 21, 2016 6:14 AM in response to hemflit
    Level 1 (4 points)
    iWork
    Jan 21, 2016 6:14 AM in response to hemflit

    @hemflit

    "The solution from that question fixed my problem. (Recreate the directories.)"

     

    THANK YOU! This solved it for me.

    It was clearly not the firewall, as I already had it set to permit postgres to make connections.

    Now the annoying repeated alerts have stopped.

  • by kayosweaver,

    kayosweaver kayosweaver Apr 15, 2016 11:21 AM in response to hemflit
    Level 1 (4 points)
    Apr 15, 2016 11:21 AM in response to hemflit

    I wonder if there are some instructions that are a bit more user friendly? I tried the terminal commands in the link above but didn't get any results. I just restored from a Time Machine backup and these constant pop ups are driving me crazy.