Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #230706

Re: sharing a network connection from debian to non-debian

From john doe <johndoe65534@mail.com>
Newsgroups linux.debian.user
Subject Re: sharing a network connection from debian to non-debian
Date 2021-01-16 07:30 +0100
Message-ID <BxNfX-7cM-1@gated-at.bofh.it> (permalink)
References <BxM0x-6wS-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 1/16/2021 6:02 AM, Dan Hitt wrote:
> In 2016, i had a computer with mint on it (which is a form of ubuntu), and
> it was connected to an internet modem.  There was a super simple gui on it
> that i could use to share that connection with some older hardware that
> were not directly connected to the internet modem.  (They were not
> connected to the internet modem because for whatever reason, directly
> connecting them made them very unstable and prone to crash.)  But,
> nevertheless, the old hardware could use the mint box with no configuration
> on my part, and get out to the internet through it.
>

If you could share your internet connection to multiple devices, the
internet modem you are refering to is probably a router with integrated
modem.

Okay, I'm nitpicking here but this might be useful for the below.

> Now, as it happens, i'm planning on upgrading that mint box to debian.
>

I would suggest reinstalling Debian from scratch.

> In preparation for that, i'm trying to share the internet with them using
> another box, which has debian on it, and which is connected to the internet
> modem.  The debian box has some address like 192.168.*.* on the internet
> modem network, and an address like 10.*.*.* connected to the old hardware,
> and the two networks have no direct connection, they just both hook up to
> my debian machine (one on the motherboard's ethernet, and one on a
> usb/ethernet device).
>
> For the old hardware, i can specify the address, a gateway, and a host for
> dns (all done by ip).  I would choose the ip of the debian box for both the
> gateway and the dns, and i'd take the ip address of the old hardware to
> just be something unused (no need to run dhcpd on the debian box, i think).
>

You can certainly use static addressing Dnsmasq has the advantage of
conbining a DHCP and DNS server.
So I would say using Dnsmasq instead of Dhcpd and Bind will be way
easyier if you want to go with dinamic addressing

> So i just need to know what to do on the debian box so that it can field
> requests to get ips from host names on the internet, and forward packets to
> the internet modem.  Hopefully, it will be some simple tool like
> nm-connection-editor, but maybe it has to be a series of commands.  If it
> is a series of commands, what are they?
>

It looks like you are using a desktop environment, you might be  heading
for trouble trying to mix GUI tools and serving internet connection to
clients.

What you need on that Debian box is to route the packages from your
internal network to your external network (1, might be what you want).


Unless you want to learn and play with it, I would suggest you, if you
can afford,  to buy a ''router' with no built-in modem that you would
plug behind your ISP modem.


1)  https://fedoramagazine.org/internet-connection-sharing-networkmanager/

--
John Doe

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

sharing a network connection from debian to non-debian Dan Hitt <dan.hitt@gmail.com> - 2021-01-16 06:10 +0100
  Re: sharing a network connection from debian to non-debian john doe <johndoe65534@mail.com> - 2021-01-16 07:30 +0100
    Re: sharing a network connection from debian to non-debian Doug McGarrett <dmcgarrett@optonline.net> - 2021-01-16 07:50 +0100
  Re: sharing a network connection from debian to non-debian Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-16 09:00 +0100
    Re: sharing a network connection from debian to non-debian Dan Hitt <dan.hitt@gmail.com> - 2021-01-16 19:30 +0100
      Re: sharing a network connection from debian to non-debian rhkramer@gmail.com - 2021-01-16 20:50 +0100
      Re: sharing a network connection from debian to non-debian Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-17 08:30 +0100
        Re: sharing a network connection from debian to non-debian john doe <johndoe65534@mail.com> - 2021-01-17 10:30 +0100
        Re: sharing a network connection from debian to non-debian Celejar <celejar@gmail.com> - 2021-01-17 16:00 +0100
      Re: sharing a network connection from debian to non-debian David Christensen <dpchrist@holgerdanske.com> - 2021-01-18 08:50 +0100
        Re: sharing a network connection from debian to non-debian Dan Hitt <dan.hitt@gmail.com> - 2021-01-19 01:50 +0100
          Re: sharing a network connection from debian to non-debian john doe <johndoe65534@mail.com> - 2021-01-19 07:10 +0100
          Re: sharing a network connection from debian to non-debian David Christensen <dpchrist@holgerdanske.com> - 2021-01-19 20:50 +0100
      Re: sharing a network connection from debian to non-debian Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-24 18:20 +0100
        Re: sharing a network connection from debian to non-debian Dan Hitt <dan.hitt@gmail.com> - 2021-01-24 23:10 +0100
          Re: sharing a network connection from debian to non-debian Dan Hitt <dan.hitt@gmail.com> - 2021-01-25 04:00 +0100
            Re: sharing a network connection from debian to non-debian Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-25 07:20 +0100
              Re: sharing a network connection from debian to non-debian Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-25 07:20 +0100
          Re: sharing a network connection from debian to non-debian Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-25 07:10 +0100
            Re: sharing a network connection from debian to non-debian Joe <joe@jretrading.com> - 2021-01-25 10:40 +0100
              Re: sharing a network connection from debian to non-debian Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-25 20:10 +0100
            Re: sharing a network connection from debian to non-debian Dan Hitt <dan.hitt@gmail.com> - 2021-01-26 03:50 +0100
  Re: sharing a network connection from debian to non-debian David Christensen <dpchrist@holgerdanske.com> - 2021-01-16 11:10 +0100
    Re: sharing a network connection from debian to non-debian rhkramer@gmail.com - 2021-01-16 15:30 +0100
  Re: sharing a network connection from debian to non-debian Michael Howard <mike@dewberryfields.co.uk> - 2021-01-16 16:00 +0100
  Re: sharing a network connection from debian to non-debian elvis <elvis@dogonfire.com> - 2021-01-19 09:20 +0100

csiph-web