mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 16:32:59 +02:00
ipsec: Filter better for GRE/VTI interfaces
This tried to delete the GREEN interface before Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -125,7 +125,7 @@ main() {
|
||||
|
||||
# Delete all other interfaces
|
||||
local intf
|
||||
for intf in /sys/class/net/gre* /sys/class/net/vti*; do
|
||||
for intf in /sys/class/net/gre[0-9]* /sys/class/net/vti[0-9]*; do
|
||||
intf="$(basename "${intf}")"
|
||||
|
||||
# Ignore a couple of interfaces that cannot be deleted
|
||||
|
||||
Reference in New Issue
Block a user