summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraapostoliuk <108394744+aapostoliuk@users.noreply.github.com>2025-08-26 18:35:49 +0300
committerGitHub <noreply@github.com>2025-08-26 16:35:49 +0100
commit4081daff9c6ee1917fd5a351882d7c1d9cc14e9a (patch)
tree3227808f098065a72c899b781c7733064e8b9cea
parentdff952a88be472d0f317873a7b5ea852c6e5f29f (diff)
downloadvyos-documentation-4081daff9c6ee1917fd5a351882d7c1d9cc14e9a.tar.gz
vyos-documentation-4081daff9c6ee1917fd5a351882d7c1d9cc14e9a.zip
Added firewall recommendations to the mDNS topic (#1669)
Added firewall recommendations to the mDNS topic.
-rw-r--r--docs/configuration/service/mdns.rst25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/configuration/service/mdns.rst b/docs/configuration/service/mdns.rst
index f4ccc1cd..b4ca1fd1 100644
--- a/docs/configuration/service/mdns.rst
+++ b/docs/configuration/service/mdns.rst
@@ -53,6 +53,31 @@ Configuration
Defaults to: 4096
+Firewall recommendations
+========================
+
+Unlike typical routed traffic, mDNS packets relayed between interfaces do not
+traverse the FORWARD hook chain in the firewall. Instead, they are processed
+through the following hooks:
+
+ - **INPUT**: For packets received by the local system
+ - **OUTPUT**: For packets sent from the local system
+
+To control or allow mDNS packet forwarding via the relay, you must define
+appropriate rules in the INPUT and OUTPUT directions. Rules in the FORWARD
+direction will have no effect on mDNS relay traffic.
+
+.. code-block:: none
+
+ set firewall ipv4 input filter rule 10 action 'accept'
+ set firewall ipv4 input filter rule 10 destination address '224.0.0.251'
+ set firewall ipv4 input filter rule 10 destination port '5353'
+ set firewall ipv4 input filter rule 10 protocol 'udp'
+ set firewall ipv4 output filter rule 10 action 'accept'
+ set firewall ipv4 output filter rule 10 destination address '224.0.0.251'
+ set firewall ipv4 output filter rule 10 destination port '5353'
+ set firewall ipv4 output filter rule 10 protocol 'udp'
+
Example
=======