LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2022, 02:45 PM   #1
Rava
Member
 
Registered: May 2010
Location: Southern Germany
Distribution: Slackware/Porteus
Posts: 70
Blog Entries: 1

Rep: Reputation: 18
WLAN Internet sharing via LAN


Is WLAN Internet sharing via LAN possible?

I try to get the following to work, I tried searching for a solution for that on the web, on Linux forums, and even posted a question about it on the Linux forum for my very Linux, all to no avail.

My systems:
i586 - System Slackware based Porteus 4.0 with Port 3.1 kernel (kernel version), any tried newer kernels crash at boot time, mono core Intel CPU U1400 @ 1.20GHz, overall limited capabilities:
Code:
free -m
              total        used        free      shared  buff/cache   available
Mem:           1253         733          94         205         424         187
Swap:          2997         221        2775
x86-64 - System Slackware based Porteus 5.0 with 5.4.30 kernel (that is the newest I managed to compile the Nvidia Driver for older hardware v340.108 for)

The i586 is able to connect to the WLAN, the x86-64, my main machine, sadly is not. I get with a bit of tweaking the WLAN chip working, but when both machines sit at the same place, the i586 sees approx 20 WLANs, while the x86-64 only sees 3 or max 4 - and obviously the one I need is excluded from the list of available WLANs.

Is it possible via LAN to share the i586 internet access with the x86-64 machine?

Best via LAN network config only without the need of installing a server, since the i586 machine is limited in all its capacities.

Do I need the LAN configuration an extra external router for it to work?

Or does a LAN cable by itself suffice (I do not have a crossed LAN cable in the needed length, I hope by configuring the LAN network it would be possible to still get the two machines to connect without router)
 
Old 08-26-2022, 02:55 PM   #2
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 581

Rep: Reputation: Disabled
Look up masquerading and sharing via iptables.
 
1 members found this post helpful.
Old 08-26-2022, 06:08 PM   #3
Rava
Member
 
Registered: May 2010
Location: Southern Germany
Distribution: Slackware/Porteus
Posts: 70

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Quote:
Originally Posted by yvesjv View Post
Look up masquerading and sharing via iptables.
I see… like these, then:

https://bobcares.com/blog/iptables-nat-masquerade/
https://howtoforge.com/internet-conn...ading-on-linux
https://stackoverflow.com/questions/...hat-do-they-do
https://askubuntu.com/questions/9394...ip-in-iptables

I presume it's no issue when both OS do not use the very same version of iptables.
 
Old 08-26-2022, 06:29 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
https://wiki.archlinux.org/title/Internet_sharing

No router necessary. I would assume the ethernet adapter in the x86_64 PC is a MDI-X device so a cross over cable is not necessary.

You will need to configure static IP address for their own private subnet for both ethernet adapters and assign the gateway address on 86_64 to the address of the i586 ethernet device.

The version of iptables does not matter.
 
1 members found this post helpful.
Old 08-26-2022, 06:36 PM   #5
Rava
Member
 
Registered: May 2010
Location: Southern Germany
Distribution: Slackware/Porteus
Posts: 70

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Quote:
Originally Posted by michaelk View Post
https://wiki.archlinux.org/title/Internet_sharing
No router necessary. I would assume the ethernet adapter in the x86_64 PC is a MDI-X device so a cross over cable is not necessary.
How do I figure out if it's a MDI-X device?
Is this listed during boot up e.g. in dmesg or /var/log/messages ?
 
Old 08-26-2022, 06:40 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
As root, execute the command:

ethtool interface | grep MDI

Where interface is the actual interface ID i.e eth0 or whatever.

Hopefully Porteus includes the ethtool utility.
 
1 members found this post helpful.
Old 08-26-2022, 06:55 PM   #7
Rava
Member
 
Registered: May 2010
Location: Southern Germany
Distribution: Slackware/Porteus
Posts: 70

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Quote:
Originally Posted by michaelk View Post
Hopefully Porteus includes the ethtool utility.
currently I am on the i586 one (for obvious reasons)

and the i586 does not have MDI - but has ethtool:
Code:
root@porteus:~# ethtool interface | grep MDI
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device

Last edited by Rava; 08-26-2022 at 06:56 PM.
 
Old 08-26-2022, 07:03 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
You did not follow my instructions

Where interface is the actual interface ID i.e eth0 or whatever.
 
1 members found this post helpful.
Old 08-26-2022, 07:29 PM   #9
Rava
Member
 
Registered: May 2010
Location: Southern Germany
Distribution: Slackware/Porteus
Posts: 70

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Quote:
Originally Posted by michaelk View Post
You did not follow my instructions

Where interface is the actual interface ID i.e eth0 or whatever.
sorry my bad.
that gives on the i586
Code:
root@porteus:~# ethtool eth0 | grep MDI
	MDI-X: Unknown
and on the x86-64
Code:
root@porteus:~# ethtool eth0 | grep MDI
root@porteus:~#
Hopefully that's not an issue with the x86-64 having no MDI-X.

And since it's 02:28 I hit the sack, one embarrassing mistake like literally using
ethtool interface | grep MDI
due to lack of sleep should already be one mistake too much.
 
Old 08-26-2022, 08:13 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
You should be alright since one PC as MDI capability.
 
1 members found this post helpful.
Old 08-27-2022, 01:42 AM   #11
Rava
Member
 
Registered: May 2010
Location: Southern Germany
Distribution: Slackware/Porteus
Posts: 70

Original Poster
Blog Entries: 1

Rep: Reputation: 18
Wink

Quote:
Originally Posted by michaelk View Post
You should be alright since one PC as MDI capability.
Indeed, even when I used a different approach. I also posted on the Porteus forum and there I got this tip:
Quote:
Could be it can easily be done via network-manager:
https://askubuntu.com/questions/3598...rough-ethernet
and that works like a charm, just follow the settings (first server [the one with the WLAN], then the client [the other one]) and all is fine. Just a few steps that have to manually be edited.
 
  


Reply

Tags
lan, network, wlan



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect a netbook via cable via PC via UMTS-stick to the internet JZL240I-U Linux - Software 9 06-03-2015 11:45 AM
Sharing internet through data cable from a mobile that is already sharing via wifi Anil Kagi Linux - Newbie 7 02-05-2015 11:15 PM
[SOLVED] raspbian: how to log in via ssh through wlan? (dont work; but ssh via LAN works) floppy_stuttgart Debian 8 03-24-2014 01:42 PM
Internet Radio Streaming via shoutcast via linux installed via an ftp server Good Cat Linux - Server 0 03-07-2011 05:35 AM
Can ssh into host on lan using WLAN address, but not through LAN address gurkakrieg Slackware 4 01-05-2010 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration