Home networking wifi mint 19.2/3

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
rchaslock
Level 1
Level 1
Posts: 9
Joined: Thu Jul 02, 2015 3:33 am

Home networking wifi mint 19.2/3

Post by rchaslock »

Can someone advise me; my skills are 15 years out-of-date.

My cat chewed the wifi dongle on my desktop; my laptop is fine running mint 19.3. The desktop is still on 19.2. Household internet is through a wifi hotspot.

I have connected them with an ethernet cable, and wish to access wifi on the laptop through the laptop.

Wifi networking is on 192.168.0.xxx. I have configured both machines on 10.0.0.xxx through the ethernet link.

Both machines can see the other through the Network, and I can ping the wifi hotspot IP from the desktop.

What more should I do?

Roger

rchaslock
Level 1
Level 1
Posts: 9
Joined: Thu Jul 02, 2015 3:33 am

Re: Home networking wifi mint 19.2/3

Post by rchaslock »

I can;t ping, eg grc.com, from the desktop.

JeremyB
Level 20
Level 20
Posts: 11593
Joined: Fri Feb 21, 2014 8:17 am

Re: Home networking wifi mint 19.2/3

Post by JeremyB »

Can you set IPv4 in network manager on the laptop to shared for the ethernet connection?

rchaslock
Level 1
Level 1
Posts: 9
Joined: Thu Jul 02, 2015 3:33 am

Re: Home networking wifi mint 19.2/3

Post by rchaslock »

I have just done that and restarted the NetworkManager. No joy on the desktop yet.

DisturbedDragon
Level 3
Level 3
Posts: 134
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Home networking wifi mint 19.2/3

Post by DisturbedDragon »

Normally this is reverse of what the connections are meant to do. Sharing internet from Ethernet to wireless is a built in function. You are talking about creating a wireless bridge. It is possible and I will direct you to an external link to set it up. The network device names and subnets will need to be changed to fit the actual device names on your laptop and the subnet you are using.

https://www.tidbitsfortechs.com/2014/08 ... ux-laptop/
AMD Ryzen 7 3700x
MSI x470 Gaming Pro
1TB Crucial P1 NVMe
1TB Samsung 960 Pro NVMe
32GB DDR4 3200
Nvidia RTX2080 OC
-------------------------------------
Linux Mint 19.3 Cinnamon
Kernel 5.3.0-53

rchaslock
Level 1
Level 1
Posts: 9
Joined: Thu Jul 02, 2015 3:33 am

Re: Home networking wifi mint 19.2/3

Post by rchaslock »

Thank you for the link. The advice seems rather archaic (dated some years ago) and incomplete.

I followed it as best I could, and lost my PC-Laptop connectivity. The link advice seems to take no account of the WiFi IP, nor of firewall rules.

My laptop wifi is 192.168.0.102, and I assumed that was the local network. I had configured both ends of the ethernet cable to 10.0.0.x to get PC-Laptop connectivity.My various attempts at Masquerade, derived from the link advice, all failed, as did any attempt to use the IP addresses recommended.

By the way, I now have an ethernet configuration entry for ifupdown (enp3s0) which I cannot delete. Any advice on how to remove it?

DisturbedDragon
Level 3
Level 3
Posts: 134
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Home networking wifi mint 19.2/3

Post by DisturbedDragon »

enp3s0 is your wired connection. You need to configure it, not delete it. Wireless should remain on DHCP or whatever connected address it had.

What is shown in the link enables the wired connection then sets a static address xxx.xxx.xxx.1 and forwarding. Lastly it sets the wireless to route traffic from the wireless to wired network (bridge mode) xxx.xxx.x.0/24

The wired connection can be whatever IP/subnet you want as long as it uses valid addressing. The two networks should not be the same though. If wireless connects to192.168.0.0/24 then wired should not also be 192.168.0.0/24. IPTABLES is taking care of the required route between the two subnets.
AMD Ryzen 7 3700x
MSI x470 Gaming Pro
1TB Crucial P1 NVMe
1TB Samsung 960 Pro NVMe
32GB DDR4 3200
Nvidia RTX2080 OC
-------------------------------------
Linux Mint 19.3 Cinnamon
Kernel 5.3.0-53

rchaslock
Level 1
Level 1
Posts: 9
Joined: Thu Jul 02, 2015 3:33 am

Re: Home networking wifi mint 19.2/3

Post by rchaslock »

Thank you for your advice. Please excuse my confusion.

First, the rogue entry:-

I have in Network Connections

Ethernet
enp3s0
ifupdown (enp3s0)
Wi-Fi
Auto Vodafone****

I can edit enp3s0, but not the second entry, and I can delete enp3s0, but not the second entry. I wish to remove the second entry, because it intrudes on the configuration.

Second, the IP addresses mentioned in "Configuring a Wireless Bridge":-

The PC is given IP 192.168.2.2
The Gateway is given IP 192.168.1.1
The (Laptop) eth0 is given IP 192.168.2.1
and the (Laptop) wlan0 is associated with 192.168.2.0/24

From this I understand the ethernet link is on network 192.168.2.xxx and the wlan is associated with this network. I do not see why the gateway is on a different network.

Finally, with this configuration, will I still be able to exchange files between the PC and the Laptop, and access the internet from both machines?

Regards

DisturbedDragon
Level 3
Level 3
Posts: 134
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Home networking wifi mint 19.2/3

Post by DisturbedDragon »

I was curious to see if there is simply a software limitation to this so I set up my laptop and desktop with USB Ethernet adapters to try it out. I manually set all interface IP's, subnets, gateways and routes needed to make traffic flow in both directions. It worked, sort of. I can ping the laptop wireless address 192.168.9.159 from the desktop USB Ethernet at 192.168.3.2 and vice versa. I can also browse files between the two computers. Issue comes when trying to go beyond the wireless adapter into the network and internet be it through complete URL or IP. Attempting to complete the route somehow breaks the adapter configuration and disables it completely. Adapter cannot be re-enabled until it is completely reset in Network Manager in through ifconfig.

I have done this before on my IPFIRE router/firewall many years ago (something at the time it was not designed to do) but it is more suited for the task. Does not appear to work on Mint though. Perhaps someone else can chime in though.

To get rid of any new connection profiles created in the terminal just select them in network manager and go to reset or use ifconfig to pull the connection down.
AMD Ryzen 7 3700x
MSI x470 Gaming Pro
1TB Crucial P1 NVMe
1TB Samsung 960 Pro NVMe
32GB DDR4 3200
Nvidia RTX2080 OC
-------------------------------------
Linux Mint 19.3 Cinnamon
Kernel 5.3.0-53

rchaslock
Level 1
Level 1
Posts: 9
Joined: Thu Jul 02, 2015 3:33 am

Re: Home networking wifi mint 19.2/3

Post by rchaslock »

Thank you for your experiment. I found I could ping external IP addresses at one point. I think what was happening was that the DNS servers could not be addresses, or their replies not getting through. If you have any insight on that, it would be most helpful.

Regards
Roger

rogerChaslock
Level 1
Level 1
Posts: 33
Joined: Mon Jan 23, 2017 12:29 pm

Re: Home networking wifi mint 19.2/3

Post by rogerChaslock »

SOLVED
I shall post the configuration tomorrow when I have worked out what I have done. Critical, I believe, is interchanging the order of eth and wlan entries in /etc/resolvconf/interface-order on the gateway machine.

rogerChaslock
Level 1
Level 1
Posts: 33
Joined: Mon Jan 23, 2017 12:29 pm

Re: Home networking wifi mint 19.2/3

Post by rogerChaslock »

SOLVED
I followed the guidance in https://askubuntu.com/questions/171914/ ... d-wireless, and reversed the order of eth/wifi in /etc/resolvconf/interface-order.

rogerChaslock
Level 1
Level 1
Posts: 33
Joined: Mon Jan 23, 2017 12:29 pm

Re: Home networking wifi mint 19.2/3

Post by rogerChaslock »

That is, reversed the order on the wifi machine!

Post Reply

Return to “Other networking topics”