Services listening to network requests on macOS
I decided to toy around with Apache on macOS High Sierra and wanted to make sure it only listens to localhost connections. To check open ports, you can use netstat like this:
# netstat -anvp tcp | awk 'NR<3 || /LISTEN/' Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) rhiwat shiwat pid epid tcp6 0 0 *.49782 *.* LISTEN 131072 131072 323 0 tcp4 0 0 *.49782 *.* LISTEN 131072 131072 323 0 tcp4 0 0 127.0.0.1.80 *.* LISTEN 131072 131072 4952 0 tcp6 0 0 *.49153 *.* LISTEN 131072 131072 60 0 tcp4 0 0 *.49153 *.* LISTEN 131072 131072 60 0 tcp4 0 0 *.3050 *.* LISTEN 131072 131072 161 0
Ok, Apache is fine, but this got me curious. PID 60 is XBox360 controller driver and PID 323 is rapportd. Why either of those needs to listen for network connections is beyond me.
PID 161 is FirebirdSQL DBMS, so I disabled it as I don't really need it currently, by editing the file:
/Library/LaunchDaemons/org.firebird.gds.plist
and setting the keyname Disabled to true.
I'm still looking for a way to disable rapportd and XBox360 daemon.
Tweet to @mbabuskov Tweet Milan Babuškov, 2021-11-14