• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: launch agent and firewall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launch agent and firewall


  • Subject: Re: launch agent and firewall
  • From: Nick <email@hidden>
  • Date: Sun, 13 Sep 2015 20:29:12 +0300

Okay, so now the behavior is really strange.

I have a LaunchAgent, that acts as a web server, so it holds open a specific port and should accept incoming connections on that port. The agent is set to RunAtLoad=True, so it starts up whenever the OS X starts up.

When I reboot the machine, a firewall popup (like this: http://i.stack.imgur.com/5x54f.png) shows up. 

This is normal and expected.

So I select "Allow", the application works fine.

Then I reboot the system. And this pop up shows up again. This is weird, because in System Preferences => Security & Privacy => "Firewall" I can see my application, and it is set to "Allow incoming connections". But every time I restart my mac, I am getting this firewall popup window, which is annoying.

Is there any way to get rid of this "Allow incoming connections?" pop up, once the user selected "Allow" for a launch agent?

Here's the plist for the launch agent:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.my.WebServer</string>
<key>ProgramArguments</key>
<array>
        <string>/bin/sh</string>
        <string>-c</string>
        <string>exec "$HOME/Library/Application Support/com.my.WebServer/WebServer"</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>

Thank you 

2015-09-13 18:56 GMT+03:00 Nick <email@hidden>:
Hello
Does the process started using launchd (its plist is located at ~/Library/LaunchAgents/), that opens ports for listening, require explicit adding to the firewall exceptions?

When the user starts an application from terminal a window pops up, asking whether to allow this process to accept incoming connections - and if allowed, an entry is added to System Preferences => Firewall exceptions.

However when i start my process by calling
launchctl start ~/Library/LaunchAgents/com.my.launchagent.plist
the window doesn't pop up.

Thanks,

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >launch agent and firewall (From: Nick <email@hidden>)

  • Prev by Date: launch agent and firewall
  • Next by Date: Re: launch agent and firewall
  • Previous by thread: launch agent and firewall
  • Next by thread: Re: launch agent and firewall
  • Index(es):
    • Date
    • Thread