I've in the past successfully set sharing of wireless Internet connection through Ethernet on Ubuntu 16.04 as described here. Unfortunately due to disk failure I install Ubuntu 18.04 LTS and cannot find anything similar to what is described in mentioned post. All menus are now different and I don't know where to look.
Follows these steps:
Open
nm-connection-editor
from the terminalClick on the wired connection and select edit cog wheel below
Go to the ipv4 settings tab there in the Method select
Shared to Other Computers
Source:
https://www.crookm.com/journal/2018/sharing-wifi-connection-over-ethernet/
I recently needed to do this in a terminal environment.
The main reason being nm-connection-editor will not open on manjaro running on a pinephone.
After much looking and words with Jesus, I was given: https://fedoramagazine.org/internet-connection-sharing-networkmanager/
Which for my needs of sharing over "eth0" produced:
"nmcli connection add type ethernet ifname eth0 ipv4.method shared con-name local"
Since my desktop was already configuring for what I can only guess is some sort of ubuntu-ish default for this sort of thing, the wireless connection was shared and I immediately gained internet connectivity on my desktop.
IPv4 10.42.0.142 subnetmask 255.255.255.0 gateway 10.42.0.1
This information can of course be found on the device sharing the connection with: "ip address show" then look for the interface you are sharing, in my case it is "6: eth0". The gateway information was 2-3 lines below.