mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
Add method for change interface name.
This commit is contained in:
parent
5eed5789f9
commit
dd82b8afc5
@ -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)
|
[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:
|
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
|
$ sudo bash docs/examples/configurations/etc.iptables.rules.v4.sh
|
||||||
# iptables-save > /etc/iptables/rules.v4
|
# iptables-save > /etc/iptables/rules.v4
|
||||||
# ip6tables-save > /etc/iptables/rules.v6
|
# ip6tables-save > /etc/iptables/rules.v6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user