From 338ab2bc777f7da2c8b5d4305cc8c34aefdf9f04 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 8 Sep 2019 12:15:37 +0200 Subject: [PATCH 1/2] Add ufw commands to the prerequesites page Added the commands to allow the mentioned ports in ufw to the prerequesites page. --- docs/main/prerequesites.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/main/prerequesites.md b/docs/main/prerequesites.md index 9c14620..4c31b1f 100644 --- a/docs/main/prerequesites.md +++ b/docs/main/prerequesites.md @@ -77,4 +77,17 @@ firewall-cmd --permanent --zone=ftl --add-interface=lo firewall-cmd --permanent --zone=ftl --add-port=4711/tcp 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. + +```bash +ufw allow 80/tcp +ufw allow 53/tcp +ufw allow 53/udp +ufw allow 67/tcp +ufw allow 67/udp +ufw allow 546:547/udp +``` {!abbreviations.md!} From 81ab1c73049e541efc02017abe44e7374e195c7f Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 9 Sep 2019 18:18:38 +0200 Subject: [PATCH 2/2] 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!}