mirror of
https://github.com/pi-hole/docs.git
synced 2024-12-06 19:27:12 +01:00
docs/main/prerequisites: ufw: Split IPv4 / IPv6 rules
Following request of @dschaper
This commit is contained in:
@@ -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!}
|
||||
|
||||
Reference in New Issue
Block a user