Added nftables rules
This commit is contained in:
parent
563f791258
commit
158d5eefbc
1 changed files with 12 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue