[launchd-dev] Specify network interface?

Per Olofsson per.olofsson at gu.se
Mon Oct 14 05:23:22 PDT 2013


13 okt 2013 kl. 21:31 skrev Todd Heberlein <todd_heberlein at mac.com>:

> I have a network service I launch via launchd.
> 
> Is it possible to configure the launchd plist to have it only respond to connection requests on a certain network interface? In particular, I want to only allow connection requests from localhost.


I would expect this to do the trick:

  <key>SockNodeName</key>
  <string>localhost</string>

-- 
Per Olofsson, IT-service, University of Gothenburg



More information about the launchd-dev mailing list