mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-22 16:53:56 +00:00
Added nftables rules
This commit is contained in:
parent
563f791258
commit
158d5eefbc
@ -94,13 +94,24 @@ apt install -y speedtest sysbench
|
||||
|
||||
### Benchmark network
|
||||
|
||||
Depending on iptables configuration, running the following commands may be required.
|
||||
> Heads-up: depending on iptables or nftables firewall configuration, running following commands may be required.
|
||||
|
||||
#### iptables
|
||||
|
||||
```shell
|
||||
iptables -A OUTPUT -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT
|
||||
ip6tables -A OUTPUT -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT
|
||||
```
|
||||
|
||||
#### nftables
|
||||
|
||||
> Heads-up: replace `firewall` if needed (see `nft list ruleset`).
|
||||
|
||||
```shell
|
||||
nft add rule ip firewall output tcp dport http-alt accept
|
||||
nft add rule ip6 firewall output tcp dport http-alt accept
|
||||
```
|
||||
|
||||
```console
|
||||
$ speedtest
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user