mirror of
https://github.com/pi-hole/docs.git
synced 2024-12-06 19:27:12 +01:00
Merge pull request #168 from Zocker1999NET/patch-1
Add ufw commands to the prerequesites page
This commit is contained in:
@@ -77,4 +77,22 @@ 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.
|
||||
|
||||
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