Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Internet Connection Sharing tutorial

Post Reply
User avatar
m_pav
Forum Guide
Forum Guide
Posts: 2740
Joined: Sun Aug 06, 2006 3:02 pm

Internet Connection Sharing tutorial

#1

Post by m_pav » Wed Feb 06, 2019 3:39 am

Having seen a post on the MX Linux Facebook group about ICS WIFI Hotspot where Nicholas Farmer responded with the most appropriate reply, I thought it good to create a screen-cast tutorial & walk-through on how to add ICS support to MX Linux and configure a 2nd network card (Ethernet or Wireless) to broadcast a signal that other machines can connect to.

The process of adding support is drop dead simple and can be done in less than a minute. only 2 packages are required + a couple extra commands.
1) sudo apt install dnsmasq
2) sudo systemctl disable dnsmasq
3) sudo update-rc.d dnsmasq remove
4) reboot

The video link is below
https://youtu.be/WeKcWTQc7mY
Last edited by m_pav on Fri Mar 15, 2019 2:59 am, edited 2 times in total.
Mike P

Regd Linux User #472293
(Mine)Lenovo T560, i7-6600U, 16GB, 2.0TB SSHD, MX17 64-bit
(Wifes) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, nVidia GF610, 6Gb, 500GB+320GB, MX17 + KDE
(Kids) Intel NUC, J1900, 4GB, 64GB SSD, MX17

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 24976
Joined: Wed Jul 19, 2006 6:13 am

Re: Internet Connection Sharing tutorial

#2

Post by Jerry3904 » Wed Feb 06, 2019 7:47 am

Thanks, Mike--glad you followed this up! Will test this later today.
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 9990
Joined: Wed Jul 12, 2006 1:42 am

Re: Internet Connection Sharing tutorial

#3

Post by Adrian » Thu Feb 07, 2019 9:28 am

HI Mike, thanks for the tutorial, I have a question, why do you need to remove the dnsmasq from starting scripts?

User avatar
m_pav
Forum Guide
Forum Guide
Posts: 2740
Joined: Sun Aug 06, 2006 3:02 pm

Re: Internet Connection Sharing tutorial

#4

Post by m_pav » Thu Feb 07, 2019 2:23 pm

My understanding maybe flawed, so take this with a grain of salt.
Dnsmasq is a service that enables NAT as is used in routers, and on a larger scale typically used by servers that have act as a firewall and control LAN networks. This service is not needed for daily operation of a desktop system, so there is no need to have it running continually, but it can be called by NM when a card is operating in the sharing mode used by ICS.

One of the things I wanted those more knowledgeable than I to look at is the 2nd command, which is typically used with systemd while we use sysvinit.

My tests show ICS uses the 10.42.0.0 /24 subnet, which is probably the default used by dnsmasq.
Mike P

Regd Linux User #472293
(Mine)Lenovo T560, i7-6600U, 16GB, 2.0TB SSHD, MX17 64-bit
(Wifes) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, nVidia GF610, 6Gb, 500GB+320GB, MX17 + KDE
(Kids) Intel NUC, J1900, 4GB, 64GB SSD, MX17

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 9990
Joined: Wed Jul 12, 2006 1:42 am

Re: Internet Connection Sharing tutorial

#5

Post by Adrian » Thu Feb 07, 2019 3:10 pm

I'm not worried about systemd command, it won't hurt with anything on a sysv booted system and it just does the same thing as the other command if you boot with systemd, was just wondering if these 2 commands are needed in the first place. How about "install dnsmasq package and reboot" that should be sufficient to get people going. If they want to remove it from starting automatically they could definitely do that, but it's not a needed step to make it work as far as I understand.

User avatar
m_pav
Forum Guide
Forum Guide
Posts: 2740
Joined: Sun Aug 06, 2006 3:02 pm

Re: Internet Connection Sharing tutorial

#6

Post by m_pav » Fri Feb 08, 2019 5:45 am

Right there with you on that one. I personally have no issue with it running either, but keeping things light and tight is always a worthy goal when distributing to the masses.
Mike P

Regd Linux User #472293
(Mine)Lenovo T560, i7-6600U, 16GB, 2.0TB SSHD, MX17 64-bit
(Wifes) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, nVidia GF610, 6Gb, 500GB+320GB, MX17 + KDE
(Kids) Intel NUC, J1900, 4GB, 64GB SSD, MX17

User avatar
JayM
Forum Guide
Forum Guide
Posts: 1381
Joined: Tue Jan 08, 2019 4:47 am

Re: Internet Connection Sharing tutorial

#7

Post by JayM » Sat Mar 16, 2019 12:04 am

m_pav wrote:
Thu Feb 07, 2019 2:23 pm
One of the things I wanted those more knowledgeable than I to look at is the 2nd command, which is typically used with systemd while we use sysvinit.
Probably just delete (or rename) /etc/init.d/dnsmasq and reboot.
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

User avatar
bitfikler
Forum Novice
Forum  Novice
Posts: 3
Joined: Tue Mar 06, 2018 8:04 pm

Re: Internet Connection Sharing tutorial

#8

Post by bitfikler » Wed May 29, 2019 6:42 am

Hi all!

I tried this great tutorial and followed all the steps as described. Thank you Mike!

And did it again and did it again. No cigar!

Started googlin' and found the following:

The wifi-card must be able to hav AP - mode! This I found out here:

https://wiki.archlinux.org/index.php/so ... cess_point
This is some one possible result:

$ iw list
Wiphy phy1
...
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point

Running iw -list on MX linux on my computer reveals this program is not installed.

So:
I opened MX package installer
Went to Stable repo
Searched for iw and found it somewhere near the bottom of filtered packages
Installed
Ran it

and got

$ iw list
Wiphy phy0
...
Supported interface modes:
* IBSS
* managed

Conclution:
To make your computer a hot spot first check with iw list to see if you have a wifi card witch support AP.

Post Reply

Return to “Community Submissions”