Peppermint OS Community Forum

Support => Networking => Topic started by: Ulysses_ on June 07, 2019, 03:10:59 am

Title: SOLVED: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 07, 2019, 03:10:59 am
The "Shared to other computers" feature in Network Manager connections does not work. Could show details but is this the right place for such bug reporting if it is not peppermint's fault?
Title: Re: Where do I report a bug in the Network Manager?
Post by: zebedeeboss on June 07, 2019, 08:08:05 am
It's as good a place as any to start

The techy guys can then look at it and advise if it needs reporting elsewhere

Regards Zeb...
Title: Re: Where do I report a bug in the Network Manager?
Post by: PCNetSpec on June 07, 2019, 09:07:39 am
For Ubuntu (and its derivatives) here:
https://bugs.launchpad.net/ubuntu/+source/network-manager

It's usually best to google <packagename> launchpad .. or search for the packagename on launchpad itself.

That said, can you first explain what the issue you're having is here .. then we might be in a better position to say if it's a Peppermint specific issue, or whether it should be reported upstream.
Title: Re: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 08, 2019, 07:24:38 am
How to reproduce with VM's and a USB WIFI device:
Download Peppermint-10-20190514-amd64.iso.
Create 2 vmware VM's called "gateway" and "browser", both with ubuntu-64 as the o/s and the above iso image connected.
On both VM's set the Network Adapter to Custom, VMnet4.

Boot the gateway VM and wait until it shows the Network Manager icon.
Connect a USB WIFI device to the VM.
A list of WIFI networks appears in the Network Manager. Choose yours and log on to it.
In the Network Manager, Edit Connections and change Wired Connection 1 as follows:
IPv4 Settings set to Shared to other computers,
IPv6 Settings set to Shared to other computers.
Click on "Enable Networking" to disable networking, then again to enable it.
May need to unplug and plug the USB WIFI device (mine powers off when networking is disabled).
The USB WIFI automatically logs on to the WIFI network previously chosen.
Now the output of ifconfig is this:

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.42.0.1  netmask 255.255.255.0  broadcast 10.42.0.255
        inet6 fe80::3370:925a:10eb:284b  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:ee:90:b5  txqueuelen 1000  (Ethernet)
        RX packets 25  bytes 6463 (6.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 165  bytes 29170 (29.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 242  bytes 20654 (20.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 242  bytes 20654 (20.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx000000000001 [edited]: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.102  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::b1e8:c7a8:f2e:1fc5  prefixlen 64  scopeid 0x20<link>
        ether 00:00:00:00:00:01  txqueuelen 1000  (Ethernet)
        RX packets 84  bytes 7777 (7.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 131  bytes 19107 (19.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Now boot the browser VM and wait until it shows the Network Manager icon.
It fails to get an IP from the gateway by DHCP.
The output of ifconfig:

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::5a4e:8790:64bd:17ba  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:ad:d0:8e  txqueuelen 1000  (Ethernet)
        RX packets 11027  bytes 1566059 (1.5 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11540  bytes 1110980 (1.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 6683  bytes 564335 (564.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6683  bytes 564335 (564.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The above problem occurs with all previous versions of peppermint too, except one version where it works alright: Peppermint-8-20180203-i386.iso. In this version the IPv6 Settings in the gateway's VMnet4 nic are left set to their default value of "Automatic" - there is no "Shared to other computers" option for IPv6, only for IPv4.
Title: Re: Where do I report a bug in the Network Manager?
Post by: PCNetSpec on June 08, 2019, 07:38:22 am
Does it work the other way around .. ie. if 'ubuntu-64' is the gateway ?

And which version of Ubuntu ?
Title: Re: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 08, 2019, 07:55:12 am
The same live CD is used for both the gateway VM and the browser VM, both have "ubuntu-64" set as the guest when you create them.

I've seen the problem occur with no USB WIFI at all, just 2 regular nic's for the gateway. But to demonstrate that you'd need vmware's "Bridged networking" option for the one nic. Which is less secure than the USB WIFI option.
Title: Re: Where do I report a bug in the Network Manager?
Post by: PCNetSpec on June 08, 2019, 05:43:41 pm
If the problem is occurring where only Ubuntu is involved, then yeah report it upstream .. but don't be surprised if they push you towards VMWare because this is a bit of a weird fringe case.

Have you tried using say WiCD instead of network-manager ?
Title: Re: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 09, 2019, 03:23:14 am
There's nothing like "Shared to other computers" in wicd as far as I can see. Comparing the version where this feature of the network manager works with the current version where it does not work, there's dnsmasq running in the version that works but not in the current version. That acts as both a DNS forwarder and a DHCP server to give IP's to clients so no wonder the client gets no IP in the current version. Tried installing dnsmasq but it fails to start because port 53 is in use.
Title: Re: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 09, 2019, 09:27:34 am
Tried the current version of ubuntu but the way it is configured there is no "Shared to other computers" option shown.

EDIT: Ditto for lubuntu.
Title: Re: Where do I report a bug in the Network Manager?
Post by: PCNetSpec on June 09, 2019, 11:25:53 am
See if this helps with your dnsmasq port 53 problem
https://computingforgeeks.com/install-and-configure-dnsmasq-on-ubuntu-18-04-lts/
Title: Re: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 16, 2019, 05:48:43 am
Found what the problem is. Peppermint needs to have the dnsmasq package added but configured to only act as a DHCP server, which is done by adding the lines

port=0
dhcp-option=option:dns-server,10.42.0.1

to /etc/dnsmasq.conf.

Then "Shared with other computers" works. Other computers get IP's and 10.42.0.1 as the DNS server which is provided by systemd.resolved.
Title: Re: SOLVED: Where do I report a bug in the Network Manager?
Post by: PCNetSpec on June 16, 2019, 07:56:59 am
Always great when people post a discovered solution that could help others, so many thanks for the update Ulysses_, much appreciated :)
Title: Re: SOLVED: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 16, 2019, 08:37:19 am
Thanks. Let's not forget, the whole point of the "Share to other computers" feature is so users don't have to type anything. Will the fix be coming in future updates?
Title: Re: SOLVED: Where do I report a bug in the Network Manager?
Post by: PCNetSpec on June 16, 2019, 08:43:50 am
I'll look into whether it's feasible for us to fix.

Do you know if any of the *buntu 18.04's are pre-configured in this way ?
Title: Re: SOLVED: Where do I report a bug in the Network Manager?
Post by: Ulysses_ on June 16, 2019, 08:58:17 am
I don't know, sorry.
Title: Re: SOLVED: Where do I report a bug in the Network Manager?
Post by: PCNetSpec on June 16, 2019, 08:59:38 am
I'll see what I can dig up.