From 81ab1c73049e541efc02017abe44e7374e195c7f Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 9 Sep 2019 18:18:38 +0200 Subject: [PATCH] docs/main/prerequisites: ufw: Split IPv4 / IPv6 rules Following request of @dschaper --- docs/main/prerequesites.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/main/prerequesites.md b/docs/main/prerequesites.md index 4c31b1f..ed3edd1 100644 --- a/docs/main/prerequesites.md +++ b/docs/main/prerequesites.md @@ -80,14 +80,19 @@ firewall-cmd --reload #### ufw -ufw stores all rules persistent, so you just need to execute the commands below. If only IPv4 blocking is used for the Pi-hole installation, the rule `546:547/udp` can be removed from the commands below. +ufw stores all rules persistent, so you just need to execute the commands below. +IPv4: ```bash ufw allow 80/tcp ufw allow 53/tcp ufw allow 53/udp ufw allow 67/tcp ufw allow 67/udp +``` + +IPv6 (include above IPv4 rules): +```bash ufw allow 546:547/udp ``` {!abbreviations.md!}