LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2022, 02:08 PM   #16
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484

Quote:
Originally Posted by linux-man View Post
Code:
echo '1' >> /proc/sys/net/ipv4/ip_forward
That probably should be
Code:
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
The possible values are 0 or 1 and you do not want to append to it.
 
Old 07-06-2022, 10:53 PM   #17
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
...wireless adapter needs at least a 5.2 kernel.
I don't know if this adapter is capable of being an access point but you can test it via the command
sudo iwconfig <adapter ID> mode master
Should I proceed in terminal as follows?
Code:
iwconfig wlan0 IEEE 802.11 ESSID:off/any mode master
 
Old 07-07-2022, 04:15 AM   #18
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I'm doing something similar and you really need to set up a few things. Get the man page for iwconfig in one terminal and build your command in another. It's best to get a doc from your distro website and follow that.
 
Old 07-07-2022, 06:20 AM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Yes, for the Android device to connect over wireless the adapter needs to be capable of being an access point.

Last edited by michaelk; 07-07-2022 at 09:26 AM.
 
Old 07-09-2022, 11:49 PM   #20
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
...for the Android device to connect over wireless the adapter needs to be capable of being an access point.
Results of test to find out if adapter is capable of being an access point using ID for inbuilt wireless adapter
Code:
sudo iwconfig <wlan0     IEEE 802.11  ESSID:off/any> mode master
bash: wlan0: No such file or directory
 
Old 07-10-2022, 12:20 AM   #21
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
...you really need to set up a few things. Get the man page for iwconfig in one terminal and build your command in another. It's best to get a doc from your distro website and follow that.
Are these examples from man iwconfig relevant?

Code:
Examples :
                   iwconfig eth0 essid any
                   iwconfig eth0 essid "My Network"
                   iwconfig eth0 essid -- "ANY"
Quote:
Originally Posted by business_kid View Post
It's best to get a doc from your distro website and follow that.
I examined their Documentation nothing there had anything to do with 'how to use your inbuilt pc wifi adapter and share your vpn'.

Last edited by linux-man; 07-10-2022 at 01:44 AM.
 
Old 07-10-2022, 03:34 PM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Something else to consider, Network Manager has a builtin hot spot mode and if the VPN is already connected when started I would assume route traffic from the wireless. And also assuming your wireless adapter works in AP mode.

Last edited by michaelk; 07-10-2022 at 03:36 PM.
 
Old 07-11-2022, 02:48 PM   #23
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If you're on Debian, they will have many documentents on setting up an Access Point. Try a web search like
Code:
configure wifi access point
 
Old 07-13-2022, 01:00 AM   #24
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Network Manager has a builtin hot spot mode and if the VPN is already connected when started I would assume route traffic from the wireless.
yes VPN is already connected on computer.


Quote:
Originally Posted by michaelk View Post
And also assuming your wireless adapter works in AP mode.
To check to see if my wireless adapter works in AP mode (access point mode) I used
Code:
iw list
wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=off   
          Retry short limit:7   RTS thr:off   Fragment thr:off
If the hotspot works on windows doesn't that mean the inbuilt adapter is already access point mode compliant on linux too (on the same computer)?

Last edited by linux-man; 07-20-2022 at 12:35 AM.
 
Old 07-20-2022, 12:27 AM   #25
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Looks like this wireless adapter needs at least a 5.2 kernel.
https://linux-hardware.org/?id=pci:1...3b-3750&page=1
Code:
Linux 5.14.0-9parrot1-amd64 x86_64
Is 5.14 kernel less than a 5.2 kernel?

The output above shows that the Linux kernel is 64-bit and its version is 5.14.0-9, where:

5 - Kernel Version.
14 - Major Revision.
0 - Minor Revision.
9 - Patch number.

Last edited by linux-man; 07-21-2022 at 10:53 PM.
 
Old 07-22-2022, 12:27 AM   #26
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
We are trying to establish:
- if my inbuilt wireless adapter is capable of being a access point
- if it is in access mode
- how to get it in access mode, and let all wireless devices go through the vpn on main computer (gateway hotspot)
- if we need manufacturer software drivers (worked fine out of the box under windows)
Quote:
Originally Posted by michaelk View Post
I don't know if this adapter is capable of being an access point but you can test it via the command
sudo iwconfig <adapter ID> mode master
Quote:
Originally Posted by michaelk View Post
The device ID in the old days would be wlan0 with consistent naming it is something like wlxxxxxx.

Post #14 We established that the inbuilt wireless adapter ID was:
Code:
wlan0  802.11  ESSID:off/any mode master
You confirmed that below:
Quote:
Originally Posted by michaelk View Post
Yes, that is it.
I tried these combinations to no avail:
Code:
sudo iwconfig wlan0     IEEE 802.11  ESSID:off/any mode master
iwconfig: unknown command "IEEE"
Code:
sudo iwconfig wlan0  802.11  ESSID:off/any mode master
iwconfig: unknown command "802.11"

$sudo iwconfig wlan0  ESSID:off/any mode master
iwconfig: unknown command "ESSID:off/any"
We also haven't established if my kernel is beyond 5.2 as my builtin wireless adapter requires 5.2 kernel and beyond to function as a hotspot on linux (worked fine under windows out of the box). Here is my kernel details:
Code:
Linux 5.14.0-9parrot1-amd64

Last edited by linux-man; 07-22-2022 at 09:47 PM.
 
Old 07-22-2022, 12:34 AM   #27
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
That probably should be
Code:
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
The possible values are 0 or 1 and you do not want to append to it.
The article says if you got zero enter this:
Code:
$cat /proc/sys/net/ipv4/ip_forward  
0
echo 1 > /proc/sys/net/ipv4/ip_forward
bash: /proc/sys/net/ipv4/ip_forward: Permission denied
Note I used single >

Last edited by linux-man; 07-22-2022 at 12:42 AM.
 
Old 07-22-2022, 01:15 AM   #28
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
If you're on Debian, they will have many documentents on setting up an Access Point. Try a web search like
Code:
configure wifi access point
Does this sound right to you? Anything missing?

To configure inbuilt wireless adapter we need to:
- enable inbuilt wireless adapter's access point function (mode)
- broadcast SSID so wireless device can pick it up
- select from 1-11 broadcast channels
- enable/disable WEP

Last edited by linux-man; 07-22-2022 at 01:20 AM.
 
  


Reply



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
LXer: Hot not-Spot-bot spot: The code behind Xiaomi's CyberDog? Ubuntu LXer Syndicated Linux News 0 12-04-2021 01:06 PM
Ubuntu 20LTS dual boot Laptop Dell Inspiron 5548 I can not turn on wifi and in wifi settings indicates no wifi device was found Shra94 Linux - Hardware 1 05-19-2020 04:22 PM
Want to share my wifi by creating a wifi hotspot ( While staying connected to wifi)? shadyXV Linux - Desktop 4 07-20-2015 05:37 PM
Linux mint 12 will not connect to wifi internet or android wifi tethers wilspeak Linux - General 4 06-06-2012 12:40 AM
Organize, Enjoy, and Share Your Photos with F-Spot jeremy LQ Articles Discussion 0 12-06-2007 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 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