Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.3.1 release info here

New users[/u
-- 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: 2695
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 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
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: 23742
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: 9513
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: 2695
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: 9513
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: 2695
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

Post Reply

Return to “Community Submissions”