Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-developer:mdns [2021/05/05 21:50] – [Firewall] stokito | docs:guide-developer:mdns [2024/10/17 00:59] (current) – [Config File] bartprokop | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ==== Alternatives ==== | ==== Alternatives ==== | ||
| - | + | See [[docs:guide-user: | |
| - | * mdnsd - provided by Apple' | + | |
| - | * [[https:// | + | |
| ==== Config File ==== | ==== Config File ==== | ||
| <code - / | <code - / | ||
| config umdns | config umdns | ||
| - | | + | option jail 1 # enables jail - see procd |
| - | list network lan | + | list network lan |
| - | list network dmz # Provides visibility into both networks, but does not act as a repeater | + | list network dmz # Provides visibility into both networks, but does not act as a repeater |
| </ | </ | ||
| + | |||
| Note that it may be unsafe to enable umdns on '' | Note that it may be unsafe to enable umdns on '' | ||
| + | |||
| + | Note that '' | ||
| ==== Install ==== | ==== Install ==== | ||
| Line 28: | Line 28: | ||
| ==== Firewall ==== | ==== Firewall ==== | ||
| - | UDP port 5353 should be opened in firewall: | + | If you need to advertise on WAN or other networks then UDP port 5353 should be opened in firewall: |
| <code - / | <code - / | ||
| config rule | config rule | ||
| Line 35: | Line 35: | ||
| option name ' | option name ' | ||
| option target ' | option target ' | ||
| - | | + | |
| option dest_port ' | option dest_port ' | ||
| - | | + | |
| </ | </ | ||
| To configure from GUI see " | To configure from GUI see " | ||
| Line 97: | Line 97: | ||
| The umdns scans all the services listed in ubus ('' | The umdns scans all the services listed in ubus ('' | ||
| < | < | ||
| - | # ubus call service list | jsonfilter -e '@[*].instances[*].data.mdns' | + | # ubus call service list | jsonfilter -e "$[*]['instances'][*]['data' |
| { " | { " | ||
| </ | </ | ||
| Line 134: | Line 134: | ||
| " | " | ||
| " | " | ||
| + | ] | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | Or you can advertise SFTP and SSH: | ||
| + | <code - / | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| ] | ] | ||
| } | } | ||
| Line 139: | Line 159: | ||
| </ | </ | ||
| See more examples in [[commit>? | See more examples in [[commit>? | ||
| + | |||
| + | The reload the umdns service with: '' | ||
| ==== Testing === | ==== Testing === | ||
| - | To see that service was advertised you may use '' | + | To see that service was advertised you may use '' |
| + | To see from a command line use '' | ||
| + | To find a specific service use: '' | ||
| + | |||