mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-27 07:34:50 +02:00
Update how_to_persistent_nft_rules_with_debian_10.mkd
This commit is contained in:
parent
4047430b4b
commit
0453f8c0f7
@ -34,16 +34,16 @@ $ sudo systemctl start netfilter-persistent
|
|||||||
|
|
||||||
### Get nftables ruleset
|
### Get nftables ruleset
|
||||||
```
|
```
|
||||||
~$ wget https://raw.githubusercontent.com/hardenedlinux/harbian-audit/master/docs/configurations/nftables.conf
|
~$ wget https://raw.githubusercontent.com/hardenedlinux/harbian-audit/master/docs/configurations/etc.nftables.conf
|
||||||
~$ sudo mv nftables.conf /etc/nftables.conf
|
~$ sudo mv etc.nftables.conf /etc/nftables.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: Please replace ens33 to interface name of your device
|
Note: Please replace ens33 to interface name of your device
|
||||||
|
|
||||||
### Get plugin of netfilter-persistent
|
### Get plugin of netfilter-persistent
|
||||||
```
|
```
|
||||||
~$ wget https://raw.githubusercontent.com/hardenedlinux/harbian-audit/master/docs/configurations/nftables-plugin.sh
|
~$ wget https://raw.githubusercontent.com/hardenedlinux/harbian-audit/master/docs/configurations/usr.share.netfilter-persistent.plugins.d.15-nft
|
||||||
~$ sudo mv nftables-plugin.sh /usr/share/netfilter-persistent/plugins.d/15-nft
|
~$ sudo mv usr.share.netfilter-persistent.plugins.d.15-nft /usr/share/netfilter-persistent/plugins.d/15-nft
|
||||||
~$ sudo chmod 755 /usr/share/netfilter-persistent/plugins.d/15-nft
|
~$ sudo chmod 755 /usr/share/netfilter-persistent/plugins.d/15-nft
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user