From dd82b8afc5f88e23c1130c3a9b8fdd31a0681a8b Mon Sep 17 00:00:00 2001 From: samson Date: Tue, 11 Dec 2018 05:13:58 +0800 Subject: [PATCH] Add method for change interface name. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 87432ec..14c0bcb 100644 --- a/README.md +++ b/README.md @@ -129,6 +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 $ sudo bash docs/examples/configurations/etc.iptables.rules.v4.sh # iptables-save > /etc/iptables/rules.v4 # ip6tables-save > /etc/iptables/rules.v6