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


Groups > linux.debian.user > #231042

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

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: sharing a network connection from debian to non-debian
Date 2021-01-24 18:20 +0100
Message-ID <BARdn-5q2-9@gated-at.bofh.it> (permalink)
References <BxM0x-6wS-9@gated-at.bofh.it> <BxOF3-85R-3@gated-at.bofh.it> <BxYuJ-5MB-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sb, 16 ian 21, 10:28:43, Dan Hitt wrote:
> 
> Regarding Andrei's suggestion of using nm-connection-editor, and using
> "Shared to other computers", i saw that last night, and tried using it.  It
> looked similar to the gui that i had on my old mint (ubuntu) machine.
> 
> I made sure that the 'Ethernet' tab had the mac addr of the right device
> --- it's a usb/ethernet cable, and has a long name, so it would be hard to
> confuse it with enp2s0 (the connection to the 'internet-modem').
> 
> In the 'IPv4 Settings' tab, the method i have selected is 'Shared to other
> computers'.  There's a text area below, marked 'Address (optional)'.
> 
> In that optional area i put the ip address of my debian machine, with '24'
> for the netmask.  The ip address for my debian machine, that i want to use
> for this LAN, is consistent with what 'ip addr show' displays.  It's kind
> of unclear what to write for a gateway --- should i put in the address of
> my debian box, or the address of the internet modem (router)?  Anyhow, i
> tried them both, and neither one worked.
> 
> I also tried just deleting the 'Address (optional)' section, since it says
> it is optional.  But this also had no effect.
> 
> I also added an extra ip address to the usb/ethernet link on my debian
> machine, using
>        sudo ip addr add 10.X.Y.Z/24  dev enx**********
> and this becomes instantly visible to the other system.   So i think the
> other system is properly accessing my debian system.
> 
> So, thanks for any clarification anybody has to offer on the proper usage
> of nm-connection-editor.

Eventually I got around to actually test this.

First thing I noticed is that some of the necessary components are 
Recommends of network-manager (dnsmasq-base and iptables, confirmed by 
the package description). Unless installation of Recommends is 
explicitly disabled these should already be installed.

Next I added a new connection of type "Ethernet" and left everything at 
default, except for setting the "Method" to "Shared to other computers" 
in the "IPv4 Settings" tab. For good measure I restarted the entire 
system, though I believe simply enabling the connection would have been 
enough.

With these the system at the other end of the cable received a DHCP 
address in the 10.42.0.0/24 network and was able to ping both the "lan" 
as well as the "wan" interface of the "gateway". According to my reading 
the network can be changed by setting an address as desired.

Unfortunately that is as far as I got. Since there are no recent reports 
of problems with this I strongly suspect the issue is some 
incompatibility between nft and the "special" 3.18 kernel running on the 
"gateway" system.

IPv4 forwarding was enabled correctly and I also tried a workaround for 
an old bug (fixed already in stretch), i.e. setting IPv6 to "Ignore" 
(and restarting).

In case someone is interested to dig deeper I'm attaching the output of 
'nft list ruleset' (with the MAC address of the USB adapter redacted).

Based on your symptoms I strongly suspect either one or both of 
dnsmasq-base and iptables were missing from your system.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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