Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userdoc:tt_avahi_mdns [2016/06/18 20:42] abelbeck [mDNS/DNS-SD Example] |
userdoc:tt_avahi_mdns [2016/06/18 21:18] abelbeck [mDNS/Bonjour Printer Discovery Example] |
||
---|---|---|---|
Line 47: | Line 47: | ||
After making changes to the '' | After making changes to the '' | ||
- | ==== mDNS/DNS-SD | + | ==== mDNS/Bonjour Printer Discovery |
!!Courtesy David Kerr!! | !!Courtesy David Kerr!! | ||
- | Described below is an example how to use the new avahi Bonjour/mDNS discovery service to make printers available onto a guest network. | + | The following |
- | For example, lets assume your main network is 192.168.xx.0/ | + | Lets assume your main network is '' |
- | Now assume you configure a guest VLAN that is network 192.168.yy.0/ | + | Now assume you configure a guest VLAN that is network |
- | With that environment | + | With that environment |
- | Enable " | + | Select |
+ | {{: | ||
- | Click on " | + | Locate the mDNS/ |
- | In the [server] section of avahi-daemon.conf add/edit this line... | + | {{: |
- | allow-interfaces=eth1, | + | |
+ | Change to " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | A default configuration has been installed, which you can now edit by clicking on " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | In the '' | ||
+ | |||
+ | | ||
+ | | ||
This enables avahi on both your main network and guest network. | This enables avahi on both your main network and guest network. | ||
- | In the [reflector] section of the conf file add these lines... | + | In the '' |
- | enable-reflector=yes | + | |
- | reflect-ipv=no | + | |
- | reflect-filters=_printer._tcp.local, | + | reflect-ipv=no |
- | This tells avahi to only reflect the printing | + | reflect-filters=_printer._tcp.local, |
+ | |||
+ | This tells avahi to only reflect the printing | ||
+ | |||
+ | Save this file and now go to the Network tab -> Firewall Configuration sub-tab and add the following as "Pass LAN-> | ||
+ | |||
+ | Action: Pass LAN->LAN | Protocol: TCP | Source: 192.168.yy.0/ | ||
+ | Action: Pass LAN->LAN | Protocol: TCP | Source: 192.168.yy.0/ | ||
- | Save this file and now go to the Firewall settings in the AstLinux Network tab and add the following as "Pass LAN-> | ||
- | Pass 192.168.yy.0/ | ||
- | Pass 192.168.yy.0/ | ||
The first rule corresponds to the printer protocols that we are publishing across the LANs and allows any device on the guest LAN to connect to our printer on our main network. | The first rule corresponds to the printer protocols that we are publishing across the LANs and allows any device on the guest LAN to connect to our printer on our main network. | ||
Line 82: | Line 100: | ||
Now any device that connects to your guest network is able to discover and print to your printer on your main network. | Now any device that connects to your guest network is able to discover and print to your printer on your main network. | ||
- | This technique can also be used to make other services you might want to share from your main network to a guest network, e.g. a Apple TV / AirPlay device... add _airplay._tcp.local, | + | This technique can also be used to make other services you might want to share from your main network to a guest network, e.g. a Apple TV / AirPlay device... add '' |