|
| 1 | +# avahi service definitions # |
| 2 | + |
| 3 | +## avahi defaults ## |
| 4 | +The avahi package includes 2 service definitions "out-of-the-box": |
| 5 | +- ssh.service |
| 6 | +- sftp-ssh.service |
| 7 | + |
| 8 | +## our additional definitions ## |
| 9 | +So far, we've added avahi ".service" (definition) files for the following services: |
| 10 | +- domain.service: _domain._udp PORT 53 Domain Name Service server |
| 11 | +- epmd-tcp.service: _epmd._tcp PORT 4369 Erlang Port Mapper daemon |
| 12 | +- epmd-udp.service: _epmd._udp PORT 4369 Erlang Port Mapper daemon |
| 13 | +- kpasswd5-tcp.service: _kpasswd5._tcp PORT 464 Kerberos Password daemon |
| 14 | +- kpasswd5-udp.service: _kpasswd5._udp PORT 464 Kerberos Password daemon |
| 15 | +- ldap-tcp.service: _ldap._tcp PORT 389 LDAP server |
| 16 | +- ldap-udp.service: _ldap._udp PORT 389 LDAP server |
| 17 | +- memcached-tcp.service: _memcached._tcp PORT 11211 memcache daemon |
| 18 | +- memcached-udp.service: _memcached._udp PORT 11211 memcache daemon |
| 19 | +- ntp.service _ntp._udp PORT 123 Network Time Protocol server |
| 20 | +- samba.service _smb._tcp PORT 139 Server Message Block daemon |
| 21 | +- sunrpc-tcp.service _sunrpc._tcp PORT 111 SUN RPC Port Mapper daemon |
| 22 | +- sunrpc-udp.service _sunrpc._udp PORT 111 SUN RPC Port Mapper daemon |
| 23 | + |
| 24 | +## INSTALLATION ## |
| 25 | +Obviously, installation procedure will differ by the distribution of Linux/UNIX running on your |
| 26 | +box. We will try to provide details for as many distributions as possible, however, some of this |
| 27 | +may rely on a volunteer effort. |
| 28 | + |
| 29 | +### FreeBSD 10.3 ### |
| 30 | +With the **avahi** package installed from the **FreeBSD Ports Collection**, it's a straightforward |
| 31 | +process _(I'd assume the **pkg** is the same)_; it's as simple as copying the *.service files |
| 32 | +to their new home: |
| 33 | + |
| 34 | + /usr/local/etc/avahi/services/ |
| 35 | + |
| 36 | +Ensure that the **avahi_daemon** service is enabled: |
| 37 | + |
| 38 | + # sysrc avahi_daemon_enable="YES" |
| 39 | + |
| 40 | +And restart it _(unfortunately, it does not have a **restart** command, so we can use **stop** and **start** to acheive the same result)_: |
| 41 | + |
| 42 | + # service avahi-daemon stop |
| 43 | + # sleep 5 |
| 44 | + # service avahi-daemon start |
| 45 | + |
| 46 | +The presence of the newly-advertised services can be verified with **avahi-browse**: |
| 47 | + |
| 48 | + # avahi-browse --all --verbose |
| 49 | + |
0 commit comments