Modify Readme

This commit is contained in:
samson 2018-12-11 05:20:12 +08:00
parent dd82b8afc5
commit 8df7601664
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ Set the corresponding firewall rules according to the applications used. Hardene
[etc.iptables.rules.v4.sh](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/examples/configurations/etc.iptables.rules.v4.sh)
to do the following:
```
$ INTERFACENAME="your network interfacename"
$ sed "s/PUB_IFS=.*/PUB_IFS=\"$INTERFACENAME\"/g" docs/examples/configurations/etc.iptables.rules.v4.sh
$ INTERFACENAME="your network interfacename(Example eth0)"
$ sed -i "s/PUB_IFS=.*/PUB_IFS=\"$INTERFACENAME\"/g" docs/examples/configurations/etc.iptables.rules.v4.sh
$ sudo bash docs/examples/configurations/etc.iptables.rules.v4.sh
# iptables-save > /etc/iptables/rules.v4
# ip6tables-save > /etc/iptables/rules.v6