Package: src:uif
Version: 1.99.0-4.1
Severity: important
Tags: patch

The firewall script uif does not support VLAN interfaces as network interfaces.

The script bails out, because it does not like the "." in VLAN iface names.

Patch attached.


--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

>From d32bd9305be7217eadfffdb1c24c0f8dcdfa9e66 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabr...@das-netzwerkteam.de>
Date: Sat, 14 Oct 2023 23:54:28 +0200
Subject: [PATCH] uif.pl: Support VLAN interfaces, allow '.' in network
 interface names.

Signed-off-by: Mike Gabriel <mike.gabr...@das-netzwerkteam.de>
---
 uif.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uif.pl b/uif.pl
index 2cc72b2..d45c61e 100755
--- a/uif.pl
+++ b/uif.pl
@@ -530,7 +530,7 @@ sub validateData {
                $$Interfaces{$key} = resolveHashentries($$Interfaces{$key}, 
$Interfaces);
        }
        foreach $key (keys (%$Interfaces)) {
-               if (!($$Interfaces{$key} =~ /^[a-zA-Z0-9+ ]+(:\d+)?$/)) {
+               if (!($$Interfaces{$key} =~ /^[\.a-zA-Z0-9+ ]+(:\d+)?$/)) {
                        die "invalid character in interface definition: 
$$Interfaces{$key}\n";
                }
        }
-- 
2.39.2

Attachment: pgp3DfYWcPICu.pgp
Description: Digitale PGP-Signatur

Reply via email to