connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* connman HEAD regression
@ 2022-08-18 17:29 i.Dark_Templar
  2022-08-28 14:10 ` Daniel Wagner
  0 siblings, 1 reply; 18+ messages in thread
From: i.Dark_Templar @ 2022-08-18 17:29 UTC (permalink / raw)
  To: connman

Good day.

I've found a regression in connman commit:

https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=416bfaff988882c553c672e5bfc2d4f648d29e8a

When VPN client is used, connman adds additional default route, bricking 
all networking.

To reproduce, use openvpn client to connect to VPN, or hamachi to 
connect to a network, or some other VPN client. Tested with both openvpn 
client and hamachi.

30-60 seconds after connection, connman adds routes, and with them, one 
additional default route.

Here are routing tables before mentioned commit:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
0.0.0.0         0.0.0.0         255.255.255.255 UH    0      0        0 ham0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
25.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 ham0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 ham0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth0

$ ip route
0.0.0.0 dev ham0 scope link
default via 192.168.1.1 dev eth0
25.0.0.0/8 dev ham0 proto kernel scope link src 25.75.105.187
169.254.0.0/16 dev ham0 proto kernel scope link src 169.254.124.73
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.158
192.168.1.1 dev eth0 scope link

Here are routing tables after mentioned commit:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
0.0.0.0         0.0.0.0         255.255.255.255 UH    0      0        0 ham0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ham0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
25.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 ham0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 ham0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth0

$ ip route
0.0.0.0 dev ham0 scope link
default dev ham0 scope link
default via 192.168.1.1 dev eth0
25.0.0.0/8 dev ham0 proto kernel scope link src 25.75.105.187
169.254.0.0/16 dev ham0 proto kernel scope link src 169.254.55.155
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.158
192.168.1.1 dev eth0 scope link

Same happens with openvpn instead of hamachi. Didn't test it with wireguard.

Distribution: Gentoo Linux amd64

Build options (if relevant):
./configure --prefix=/usr --build=x86_64-pc-linux-gnu 
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --disable-dependency-tracking 
--disable-silent-rules --docdir=/usr/share/doc/connman-1.41-r1 
--htmldir=/usr/share/doc/connman-1.41-r1/html --with-sysroot=/ 
--libdir=/usr/lib64 --localstatedir=/var --runstatedir=/run 
--with-systemdunitdir=/lib/systemd/system 
--with-tmpfilesdir=/usr/lib/tmpfiles.d --enable-client 
--enable-datafiles --enable-loopback=builtin --disable-bluetooth 
--disable-debug --enable-ethernet=builtin --disable-test --disable-iwd 
--disable-l2tp --disable-nmcompat --disable-ofono --disable-openconnect 
--disable-openvpn --enable-polkit=builtin --disable-pptp --disable-tools 
--disable-vpnc --enable-wifi=builtin --disable-wireguard --disable-wispr 
--with-firewall=nftables --disable-iospm --disable-hh2serial-gps

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-12-18 19:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-18 17:29 connman HEAD regression i.Dark_Templar
2022-08-28 14:10 ` Daniel Wagner
2022-08-28 14:55   ` i.Dark_Templar
2022-08-28 15:42     ` Daniel Wagner
2022-08-28 17:33       ` Daniel Wagner
2022-08-28 17:40         ` Daniel Wagner
2022-08-28 17:50           ` Daniel Wagner
2022-08-28 18:00           ` Daniel Wagner
2022-08-28 18:08             ` Daniel Wagner
2022-08-28 18:19               ` i.Dark_Templar
2022-08-28 18:21                 ` Daniel Wagner
2022-08-28 18:08           ` i.Dark_Templar
2022-08-28 18:13             ` Daniel Wagner
2022-08-28 17:48         ` i.Dark_Templar
2022-08-28 18:03           ` Daniel Wagner
2022-08-28 18:08             ` i.Dark_Templar
2022-12-18 19:09               ` Daniel Wagner
2022-12-18 19:13                 ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).