[PATCH] main: Add 'veth' to the default blacklist

Javier Bassi <[email protected]> Thu, 3 Apr 2025 15:53:01 -0300
Newsgroups dev.linux.lists.connman
Message-ID <[email protected]>
Connman conflicts with Docker, breaking networking, as explained
and fixed in 9eb1772d31b6f ("Don't add route for invalid dst
and gateway address combinations"). However, that fix was reverted
in d8a634f20de3 due to conflicts with WireGuard.

This approach is simpler and does not conflict with the WireGuard
daemon, as tested in https://github.com/moby/moby/issues/49653
---
 doc/connman.conf.5.in | 2 +-
 src/main.c            | 1 +
 src/main.conf         | 4 ++--
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/connman.conf.5.in b/doc/connman.conf.5.in
index 9d3dfb94..7ab0b28b 100644
--- a/doc/connman.conf.5.in
+++ b/doc/connman.conf.5.in
@@ -107,7 +107,7 @@ List of blacklisted network interfaces separated by ",".
 Found interfaces will be compared to the list and will
 not be handled by connman, if their first characters
 match any of the list entries. Default value is
-vmnet,vboxnet,virbr,ifb,ve-,vb-,ham.
+vmnet,vboxnet,virbr,ifb,ve-,vb-,ham,veth.
 .TP
 .BI AllowHostnameUpdates=true\ \fR|\fB\ false
 Allow connman to change the system hostname. This can
diff --git a/src/main.c b/src/main.c
index 31a9f90a..5d13fb7b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -91,6 +91,7 @@ static char *default_blacklist[] = {
 	"ve-",
 	"vb-",
 	"ham",
+	"veth",
 	NULL
 };
 
diff --git a/src/main.conf b/src/main.conf
index cbfef228..53de3cd2 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -66,8 +66,8 @@
 # Found interfaces will be compared to the list and will
 # not be handled by ConnMan, if their first characters
 # match any of the list entries. Default value is
-# vmnet,vboxnet,virbr,ifb,ve-,vb-,ham.
-# NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-,ham
+# vmnet,vboxnet,virbr,ifb,ve-,vb-,ham,veth.
+# NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-,ham,veth
 
 # Allow ConnMan to change the system hostname. This can
 # happen for example if we receive DHCP hostname option.
-- 
2.39.5