Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
4202
views
Setting up a fixed IP wifi hotspot (with no internet) with DHCP and DNS using dnsmasq
I'm having trouble setting up my computer (running Ubuntu 18.04) as a hotspot with a manually fixed IP. I want devices to be able to connect to it via WiFi, and for them to be able to access my website hosted on the computer on port 80. So I wanted to set the fixed IP of my computer as 192.168.10.1,...
I'm having trouble setting up my computer (running Ubuntu 18.04) as a hotspot with a manually fixed IP. I want devices to be able to connect to it via WiFi, and for them to be able to access my website hosted on the computer on port 80.
So I wanted to set the fixed IP of my computer as 192.168.10.1, so I set up the hotspot as such:
INTERFACE=wlan0 # My wifi card interface
CONNECTION_NAME=testhotspot
MY_IP="192.168.10.1"
sudo nmcli con add type wifi ifname $INTERFACE con-name $CONNECTION_NAME autoconnect yes ssid $CONNECTION_NAME
sudo nmcli con modify $CONNECTION_NAME 802-11-wireless.mode ap ipv4.method manual ipv4.addresses $MY_IP/24 ipv4.gateway $MY_IP
sudo nmcli con modify $CONNECTION_NAME wifi-sec.key-mgmt wpa-psk
sudo nmcli con modify $CONNECTION_NAME wifi-sec.psk "somepassword"
# do I need to set ipv4.dns?
I then set up dnsmasq (in /etc/dnsmasq
) as:
address=/#/127.0.0.1
interface=wlan0
except-interface=lo
listen-address=::1,127.0.0.1,192.168.10.1
# DHCP setup
dhcp-range=192.168.10.100,192.168.10.200,12h # lease out 192.168.10.100-200
dhcp-option=option:router,192.168.10.1
dhcp-option=option:dns-server,192.168.10.1
dhcp-option=option:netmask,255.255.255.0
dhcp-leasefile=/var/lib/misc/dnsmasq.leases
dhcp-authoritative
Startup dnsmasq and the hotspot:
sudo nmcli con up testhotspot
sudo systemctl restart dnsmasq.service
With this setup, I found that connecting to the wifi hotspot on another computer running Ubuntu (let's call this computer B), I could successfully ping 192.168.1.10 and access my website on 192.168.10.1:80.
However, I had issues trying to connect to it using an Android phone, with the connection continuously dropping. I had to change my Android wifi settings to "Static" instead of "DHCP", and specify the DNS to 192.168.10.1 for me to successfully ping 192.168.10.1. Thus, I guessed that I hadn't "announced" to clients properly about my DNS/DHCP server? I tried changing my hotspot settings as nmcli con modify testhotspot ipv4.dns 192.168.10.1
. However, this did not solve the issue on my Android device (It stopped dropping the wifi connection, but I still could not ping 192.168.10.1?).
I also noticed that on computer B, while connected to both the wifi of my hotspot server, and an internet-providing router, some public websites (such as this askubuntu site) could not be reached until I turned off the wifi connection to the hotspot server. What did I do wrong in the setup above?
kekpirat
(101 rep)
Sep 14, 2022, 02:12 AM
• Last activity: Jul 19, 2025, 01:03 AM
2
votes
1
answers
2375
views
slow download link with hostapd and ath9k_htc driver
**Brief Intro:** Raspberry Pi 3 acting as a WiFi AP hosting 2.4Ghz and 5Ghz Wifi AP's. The AP of concern is the 2.4Ghz network. The NIC is a TP-Link WN722N adapter using driver `ath9k_htc`. **Tests:** A speedtest done from the Raspberry Pi 3 results in: - Download: 21.69 Mbit/s - Upload: 18.32 Mbit/...
**Brief Intro:**
Raspberry Pi 3 acting as a WiFi AP hosting 2.4Ghz and 5Ghz Wifi AP's. The AP of concern is the 2.4Ghz network. The NIC is a TP-Link WN722N adapter using driver
ath9k_htc
.
**Tests:**
A speedtest done from the Raspberry Pi 3 results in:
- Download: 21.69 Mbit/s
- Upload: 18.32 Mbit/s
which is expected and correct.
Clients connecting to the 2.4Ghz hosted network doing a speedtest results in:
- Download: 1-11 Mbit/s (AVG: 2.5 Mbit/s)
- Upload: 14-18 Mbit/s
*note: Changing router channels does not have any effect on the download speed of hosted wifi network.*
A shared ethernet connection, hosted by the Raspberry Pi, to which clients connect do not experience this issue. These achieve expected download speeds.
**Question:**
Since all NIC's report correct download and upload speed except the hosted wifi network (2.4Ghz adapter) using the ath9k_htc
driver has slow download speed, is this an issue with the ath9k_htc driver?
**Some HW Info:**
*note: The hosted 5Ghz network does not have this download issue, speeds are correct and as expected*
NIC Info
sudo lshw -C net
*-usb:1
description: Wireless interface
product: USB2.0 WLAN
vendor: ATHEROS
physical id: 3
bus info: usb@1:1.3
logical name: wlan2
version: 1.08
serial: 12345
capabilities: usb-2.00 ethernet physical wireless
configuration: broadcast=yes driver=ath9k_htc driverversion=4.9.35-v7+ firmware=1.3 ip=192.168.2.254 link=yes maxpower=500mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11
and hostapd config
cat /etc/hostapd/hostapd-2g.conf
interface=wlan2
driver=nl80211
ssid=local-wifi
hw_mode=g
channel=11
ieee80211n=1
wmm_enabled=1
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=my_pass_here
rsn_pairwise=CCMP
logger_syslog=-1
CybeX
(316 rep)
Jul 6, 2017, 10:35 AM
• Last activity: Jun 22, 2025, 06:06 PM
3
votes
2
answers
5476
views
Port forwarding for VPN connection
I'm using a public Wi-Fi hotspot. Usually when I connect to these, I immediately connect to my college VPN. On this hotspot, only browsing works (no program other than a browser seems to be able to access the internet, this includes ping commands from the terminal). I'm guessing this is because of t...
I'm using a public Wi-Fi hotspot. Usually when I connect to these, I immediately connect to my college VPN. On this hotspot, only browsing works (no program other than a browser seems to be able to access the internet, this includes ping commands from the terminal). I'm guessing this is because of the firewall in use by the hotspot provider.
I'm given to understand that it should be possible to tunnel all of my traffic through an SSH tunnel, pointing to the correct port. I can set up a server on my home network to tunnel to, but it does not have a static IP. Is there a way around this, or possibly an easier way than SSH tunneling?
**Update:** I've since set up a Raspberry Pi with a static IP on my home network. Can I either tunnel all of my traffic over ssh, via the RPi, or even just tunnel the VPN connection (that I would normally use) were the ports it uses not blocked over ssh (I'm not too worried about latency).
Alex
(143 rep)
Feb 23, 2015, 10:27 PM
• Last activity: Jun 11, 2025, 05:01 AM
0
votes
1
answers
2947
views
How do I fix the low speed of Qualcomm Atheros AR9285 Wireless Network Adapter's ap0 in Debian?
Unlike Windows, I discovered that the speed of my Access Point is too slow about 50-70KB on Debian unlike Windows it is about 1.3MB which is the original full download speed of my connection. Here are the interfaces I have: > PHY Interface Driver Chipset > > phy0 ap0 ath9k Qualcomm Atheros AR9285 Wi...
Unlike Windows, I discovered that the speed of my Access Point is too slow about 50-70KB on Debian unlike Windows it is about 1.3MB which is the original full download speed of my connection.
Here are the interfaces I have:
> PHY Interface Driver Chipset
>
> phy0 ap0 ath9k Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
> phy0 wlan0 ath9k Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
> phy1 wlan1 rt2800usb Ralink Technology, Corp. RT2870/RT30
Unlike Windows, since I cannot use
Ralink Technology, Corp. RT2870/RT3070
as AP and STA in the same time, I used Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
yet It is slow.
How do I tweak the speed?
Mohammed Mehdi TBER
(23 rep)
Aug 23, 2021, 12:37 AM
• Last activity: May 18, 2025, 03:10 PM
0
votes
1
answers
2085
views
Location of Wifi SSID configs and how to make a hotspot in Ubuntu 14.04
What is the location of wifi ssid config in Ubuntu 14.04. Also, making a wifi connection as Hotspot does not work. I am unable to make a hotspot in Ubuntu 14.04 via UI. One of the reasons that I found was that mode is set to infrastructure in the hotspot config and I need to change it. I tried locat...
What is the location of wifi ssid config in Ubuntu 14.04. Also, making a wifi connection as Hotspot does not work.
I am unable to make a hotspot in Ubuntu 14.04 via UI. One of the reasons that I found was that mode is set to infrastructure in the hotspot config and I need to change it. I tried locating the file in /etc/network/interfaces from online search but that configuration is not something that I am looking for.
Prateek
(111 rep)
Oct 24, 2016, 08:09 AM
• Last activity: May 15, 2025, 02:09 PM
1
votes
1
answers
2791
views
Modifying existing SSID using nmcli
Hi so i know i can set up a wifi network using nmcli in this way. nmcli con add type wifi ifname uap0 mode ap con-name ssid nmcli con modify 802-11-wireless-security.psk But if i now want to modify the password and ssid of the created wifi network how do i do that? i do not find the correct command...
Hi so i know i can set up a wifi network using nmcli in this way.
nmcli con add type wifi ifname uap0 mode ap con-name ssid
nmcli con modify 802-11-wireless-security.psk
But if i now want to modify the password and ssid of the created wifi network how do i do that? i do not find the correct command in the documentation..
Can i just do this
sudo nmcli con down
sudo nmcli con modify 802-11-wireless-security.psk "$WIFI_PASSWORD"
sudo nmcli con modify ssid
sudo nmcli con up
busssard
(11 rep)
Feb 21, 2023, 04:00 PM
• Last activity: May 8, 2025, 03:08 AM
1
votes
1
answers
2589
views
Ubuntu 20.04 hotspot connection not resolving DNS for iPhone device
I have a wired connection on Ubuntu 20.04. I create a Hotspot connection. I believe NetworkManager automatically creates the following for my wireless interface: ``` inet 10.42.0.1 netmask 255.255.255.0 broadcast 10.42.0.255 ``` I want to connect to the Hotspot connection with my iPhone. This is wha...
I have a wired connection on Ubuntu 20.04. I create a Hotspot connection. I believe NetworkManager automatically creates the following for my wireless interface:
inet 10.42.0.1 netmask 255.255.255.0 broadcast 10.42.0.255
I want to connect to the Hotspot connection with my iPhone. This is what i set up on my iPhone manually:
IP Address: 192.168.0.11
Subnet Mask: 255.255.0.0
Router: 10.42.0.1
I assume that I have to set the IP of the wireless interface as the router, because the Hotspot connction will be acting as the router in a sense. Is this correct? Where I have Router: 10.42.0.1
I am able to connect to the Hotspot, however upon examination of the traffic in Wireshark, it seems that the DNS is not resolving. The DNS settings on my iPhone are pointed to Google resolvers 8.8.8.8
and 8.8.4.4
. I am seeing DNS queries to Google resolvers, however no response is coming back.
It also seems like when i created the Hotspot connection NetworkManager magically started dnsmasq
as the local-resolver on the wireless interface. This is what netstat -tupln
looks like:
tcp 0 0 10.42.0.1:53 0.0.0.0:* LISTEN 148021/dnsmasq
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 147835/systemd-reso
udp 0 0 10.42.0.1:53 0.0.0.0:* 148021/dnsmasq
udp 0 0 127.0.0.53:53 0.0.0.0:* 147835/systemd-reso
udp 0 0 0.0.0.0:67 0.0.0.0:* 148021/dnsmasq
I am not really sure what to do, I have tried disabling ufw
as well in case it was a firewall issue. Still no luck. I have also tried setting the ipv4.addresses
and ipv4.dns
manually in nmcli
instead of shared. Still nothing. Please let me know what I'm missing here. Been at this all day.
JohnSnow
(111 rep)
Mar 16, 2021, 05:43 PM
• Last activity: May 5, 2025, 09:01 AM
0
votes
0
answers
66
views
Show encryption used by WiFi stations connected to my hotspot
I'm hosting a hotspot from my PC, which has a wired internet connection and a wifi adapter. The OS is Fedora 40, using Network Manager and wpa_supplicant. I have 3 wifi devices which are able to connect to this hotspot and use the internet. I want to know what "mode" each device chose to connect usi...
I'm hosting a hotspot from my PC, which has a wired internet connection and a wifi adapter. The OS is Fedora 40, using Network Manager and wpa_supplicant. I have 3 wifi devices which are able to connect to this hotspot and use the internet. I want to know what "mode" each device chose to connect using (by which I mean cipher suites/encryption techniques = WPA/WPA2 & TKIP/AES/CCMP). How do I query this information? My router seems to know this information just fine and shows it up in its web pages, now I want to be able to pull up the same info on my Linux PC.
hostapd does not seem to be installed, so I'm wary of installing it to use hostapd_cli because it might disrupt whatever is currently running. wpa_cli refuses to run because it can't connect to the running instance [wpa_cli is now running after enabling its control socket](https://www.jfcarter.net/~jimc/documents/bugfix/34-wpa_cli.html) , but I can't tell how to ask it for this information.
Background: I'm trying to debug some wifi connection issues with an IoT device, which is happily connecting to a hotspot hosted by my PC but not to my network hosted from the router device. I suspect an encryption issue.
Milind R
(111 rep)
Feb 25, 2025, 02:48 PM
• Last activity: Mar 12, 2025, 05:32 PM
-2
votes
1
answers
222
views
How to fix QCA9377 WiFi issues in Kali Linux 2025.1 (wlan0 not detected, device not managed)?
How can I fix issues with the QCA9377 802.11ac rev31 network adapter in Kali Linux 2025.1 (kali-rolling), such as WiFi not connecting, `wlan0` or `wlan1` not showing up, or errors like "Device not managed" or "Device not ready"?
How can I fix issues with the QCA9377 802.11ac rev31 network adapter in Kali Linux 2025.1 (kali-rolling), such as WiFi not connecting,
wlan0
or wlan1
not showing up, or errors like "Device not managed" or "Device not ready"?
R.G
(1 rep)
Feb 20, 2025, 12:07 PM
• Last activity: Feb 21, 2025, 05:52 AM
0
votes
1
answers
233
views
UFW & Wi-Fi hotspot: allowing DHCP/DNS and making sure that these services are only accessible from the hotspot subnet
I am trying to set up UFW to allow DHCP and DNS for the clients connected to the Wi-Fi hotspot created using `nmcli`. I want the setup to be as restrictive as possible to avoid any DHCP clashes on the wired (`eth0`) -- i.e., "internet" -- interface etc. In a nutshell: * the hotspot clients on `wlan0...
I am trying to set up UFW to allow DHCP and DNS for the clients connected to the Wi-Fi hotspot created using
nmcli
. I want the setup to be as restrictive as possible to avoid any DHCP clashes on the wired (eth0
) -- i.e., "internet" -- interface etc. In a nutshell:
* the hotspot clients on wlan0
must be behind NAT and must be able to get the IP and DNS configuration from the respective hotspot DHCP,
* the hotspot clients on wlan0
must be able to access the internet provided by the wired interface (eth0
),
* other devices on the wired network (eth0
) must be ignorant of the fact that one of their "neighbours" acts as a gateway, provides DHCP/DNS, etc.
I have already set up NAT and forwarding via iptables
, and everything works fine _provided that the client devices use static IP configuration._ However, when configured to use DHCP, the client devices fail to obtain this information, and consequently fail to connect to the hotspot.
The subnet used by the hotspot is 10.42.0.0/24 with the gateway being 10.42.0.1 (the NetworkManager defaults). When I try to allow DHCP and DNS ports on wlan0
using
# DHCP
ufw allow in on wlan0 from 10.42.0.0/24 to 10.42.0.1 port 67 proto udp
ufw allow out on wlan0 from 10.42.0.1 to 10.42.0.0/24 port 68 proto udp
# DNS
ufw allow in on wlan0 from 10.42.0.0/24 to 10.42.0.1 port 53
ufw allow out on wlan0 from 10.42.0.1 to 10.42.0.0/24 port 53
my UFW configuration becomes (i.e., only these four extra rules exist):
$ ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
10.42.0.1 67/udp on wlan0 ALLOW IN 10.42.0.0/24
10.42.0.1 53 on wlan0 ALLOW IN 10.42.0.0/24
10.42.0.0/24 68/udp ALLOW OUT 10.42.0.1 on wlan0
10.42.0.0/24 53 ALLOW OUT 10.42.0.1 on wlan0
_But:_ even with these rules, hotspot clients fail to obtain IP/DNS configuration from DHCP. Needless to say that there are no such issues when I temporarily disable UFW...
In a comment by the user "telcoM" in [this post](https://unix.stackexchange.com/a/638482) , I found that it might be necessary to allow the bootps
and bootpc
protocols instead of ports 67 and 68, respectively. Nonetheless, I am unable to find the UFW syntax needed to do so -- all attempts made thus far (e.g., ufw allow in on wlan0 from 10.42.0.0/24 to 10.42.0.1 bootps
) resulted in UFW complaining (usually ERROR: Wrong number of arguments
).
What am I doing wrong?
Thanks.
nvx
(65 rep)
Jan 25, 2025, 07:30 AM
• Last activity: Jan 26, 2025, 12:28 PM
0
votes
1
answers
1282
views
Problems with USB to WiFi adapter TP-LINK TL-WN722N v2 and Hotspot creation
I use Linux Mint 20.1 and am trying to properly install USB WiFi device TP-LINK TL-WN722N v2 I first installed driver R8188eu following instructions from https://github.com/lwfinger/rtl8188eu Also this driver was recommended on following link http://en.techinfodepot.shoutwiki.com/wiki/TP-LINK_TL-WN7...
I use Linux Mint 20.1 and am trying to properly install USB WiFi device TP-LINK TL-WN722N v2
I first installed driver R8188eu following instructions from
https://github.com/lwfinger/rtl8188eu
Also this driver was recommended on following link
http://en.techinfodepot.shoutwiki.com/wiki/TP-LINK_TL-WN722N_v2
Then I followed first Answer from the topic
https://askubuntu.com/questions/1341804/tp-link-tl-wn722n-v2-driver-problem-ubuntu-20-04/1348355#1348355
and tried to instead install driver 8812au
Now when I type
sudo dkms status
I get
rtl8812au, 5.9.3.2, 5.4.0-77-generic, x86_64: installed
as it should be the case
but when I type
inxi -Fxxxz
I get regarding the mentioned device
Device-3: TP-Link TL-WN722N v2 type: USB driver: r8188eu bus ID: 1-8:8 chip ID: 2357:010c serial: IF: wlxd037454c08ee state: down mac: IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
So it's not the same USB driver as I get with dkms status
I have no idea how to change this, as I have uninstalled the first driver, than installed the new one but to no avail.
Operationally wise I can connect to existing wifi network, but I cannot use my wifi adapter to create a hotspot.
Any idea what should be done?
user479119
(1 rep)
Jun 26, 2021, 09:02 PM
• Last activity: Jan 14, 2025, 11:56 AM
3
votes
2
answers
4259
views
Is it possible to use multiple wifi dongles in Linux with one of them setup as a hotspot?
I was wondering if it were possible to have 2 or more **WiFi USB** dongles setup in Linux with each having a different **SSID** and different networks with one setup as the gateway to a **WiFi router**? I.e. [tag:Linux] with 3 **WiFi** `dongles`; `wlan0`, `wlan1`, and `wlan2`. * wlan0 -> WiFi router...
I was wondering if it were possible to have 2 or more **WiFi USB** dongles setup in Linux with each having a different **SSID** and different networks with one setup as the gateway to a **WiFi router**?
I.e. [tag:Linux] with 3 **WiFi**
dongles
; wlan0
, wlan1
, and wlan2
.
* wlan0 -> WiFi router
* wlan1 -> SSID="abc"
* wlan2 -> SSID="def"
where "**abc**" has a default route through wlan0
and "**def**" only has access to the w.x.y.z network
I've tried googling but with little success.
linuxgnuru
(297 rep)
Mar 18, 2018, 03:17 AM
• Last activity: Oct 28, 2024, 10:48 AM
0
votes
2
answers
122
views
Device name of a Linux system required for identifying it as an "allowed device" on a WiFi hotspot?
I want to add a Linux system to the white list of a WiFi mobile hotspot running on Android. Doing `hostnamectl` returns, amongst other information, a `Static hostname`, an `Icon name`, a `Machine ID`, and a `Boot ID`. Which of these is the right one? I got the MAC address of the `wlan0` interface by...
I want to add a Linux system to the white list of a WiFi mobile hotspot running on Android. Doing
hostnamectl
returns, amongst other information, a Static hostname
, an Icon name
, a Machine ID
, and a Boot ID
. Which of these is the right one?
I got the MAC address of the wlan0
interface by doing ip addr
in the terminal and added it, together with the Static hostname
, to the white list, but the connection fails. Signal strength is very good and the WPA2 password is correct.
PS.: On a Windows 10 machine, you get the corresponding name by doing hostname
in the command line or looking it up in Settings > System > About
under "Device name".
user658623
Oct 12, 2024, 04:17 PM
• Last activity: Oct 14, 2024, 07:37 PM
0
votes
1
answers
392
views
Tails - How to disable MAC address randomization?
I am trying out [Tails](https://tails.net/index.de.html) and disabled the [MAC address randomization](https://tails.net/doc/first_steps/welcome_screen/mac_spoofing/index.en.html#index5h1) feature during boot, but when doing `ip addr` in the terminal, the MAC address of `wlan0` (WiFi adapter) keeps c...
I am trying out [Tails](https://tails.net/index.de.html) and disabled the [MAC address randomization](https://tails.net/doc/first_steps/welcome_screen/mac_spoofing/index.en.html#index5h1) feature during boot, but when doing
ip addr
in the terminal, the MAC address of wlan0
(WiFi adapter) keeps changing regardless. This is extremely annoying and means e.g. that I cannot access WiFi hotspots employing a MAC filter.
Is there any way to disable this feature e.g. from a root terminal and force Tails to use a static MAC address?
user658623
Oct 12, 2024, 07:59 PM
• Last activity: Oct 14, 2024, 06:55 PM
0
votes
0
answers
71
views
How to get detailed diagnostics of WiFi connection problems from the terminal?
I've been trying for days to connect a live [Tails](https://tails.net/) system to a mobile WiFi hotspot on an Android 9.0 device without success. What I have done so far: 1. Set up a mobile WiFi hotspot in Android protected by a WPA2 password and MAC filtering 2. Boot Tails with the MAC address anon...
I've been trying for days to connect a live [Tails](https://tails.net/) system to a mobile WiFi hotspot on an Android 9.0 device without success. What I have done so far:
1. Set up a mobile WiFi hotspot in Android protected by a WPA2 password and MAC filtering
2. Boot Tails with the MAC address anonymization feature disabled
3. Read out the hostname and static MAC address of the Tails system by doing
cat /etc/hostname
and ip link
, respectively
4. Using the hostname and MAC address, add the Tails system to the hotspot's white list of allowed devices
5. Try to connect to the hotspot using its SSID and WPA2 password
Step 5 keeps failing with the error message
> Connection failed
>
> Activation of network connection failed
I quadruple-checked every single setting, checked and changed the WPA2 password, tried disabling MAC filtering, switched between 2.4 GHz and 5.0 GHz, switched between visible and hidden SSIDs etc., all without success. There are zero issues connecting other Linux systems to the exact same hotspot using exactly the same procedure, and I also have been connected to other public WiFi networks using this exact Tails system before.
FWIW, the network controller according to lspci -v | grep "Network controller"
is
Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)
What am I missing here? Is there a way to get some real-time, verbose terminal output with detailed error messages etc. from the WiFi adapter while it is trying to connect?
user658623
Oct 13, 2024, 03:54 PM
• Last activity: Oct 13, 2024, 04:40 PM
0
votes
0
answers
37
views
Wifi hotspot and bluetooth headset don't work together. Hotpost stops sharing internet
I am using Debian 12.7. If I turn on hotspot and connect my Bluetooth headset, hotspot stops sharing internet. On Windows it worked fine. Run: lspci -vnn | grep Network Show: 01:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)
I am using Debian 12.7. If I turn on hotspot and connect my Bluetooth headset, hotspot stops sharing internet. On Windows it worked fine.
Run: lspci -vnn | grep Network
Show: 01:00.0 Network controller : Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)
devblock
(101 rep)
Sep 17, 2024, 02:59 AM
• Last activity: Sep 17, 2024, 10:39 AM
2
votes
3
answers
7991
views
How to configure hostapd.conf for wps push button?
I have android6.0.1 I want to enable the wps when hotspot on. Can anyone give some ideas and give whatever changes i want to do in someother files.? Can anyone provide any application for wps server.? Thanks, VinothS,
I have android6.0.1
I want to enable the wps when hotspot on.
Can anyone give some ideas and give whatever changes i want to do in someother files.?
Can anyone provide any application for wps server.?
Thanks,
VinothS,
VINOTHKUMAR S
(53 rep)
Jun 23, 2017, 07:20 AM
• Last activity: Sep 12, 2024, 04:14 PM
1
votes
2
answers
161
views
How can I share LTE modem internet over Wifi?
I've got my LTE modem setup with NetworkManager/ModemManager and that's working fine. I've also got Wifi setup as an access point in NetworkManager with DHCP. But how can I share the LTE modem internet access over Wifi? I've enabled IP forwarding (`echo 1 > /proc/sys/net/ipv4/ip_forward`), what else...
I've got my LTE modem setup with NetworkManager/ModemManager and that's working fine. I've also got Wifi setup as an access point in NetworkManager with DHCP.
But how can I share the LTE modem internet access over Wifi? I've enabled IP forwarding (
echo 1 > /proc/sys/net/ipv4/ip_forward
), what else is there?
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12946 errors:0 dropped:0 overruns:0 frame:0
TX packets:12946 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1297231 (1.2 MiB) TX bytes:1297231 (1.2 MiB)
wlan0 Link encap:Ethernet HWaddr E8:4F:25:DD:BD:51
inet addr:10.42.0.1 Bcast:10.42.0.255 Mask:255.255.255.0
inet6 addr: fe80::ea4f:25ff:fedd:bd51/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:12101 (11.8 KiB)
wwan0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:100.72.254.176 P-t-P:100.72.254.176 Mask:255.255.255.224
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1808 errors:0 dropped:0 overruns:0 frame:0
TX packets:2176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:356293 (347.9 KiB) TX bytes:261384 (255.2 KiB)
# ip route
default via 100.72.254.177 dev wwan0 metric 700
10.42.0.0/24 dev wlan0 scope link src 10.42.0.1 metric 600
100.72.254.160/27 dev wwan0 scope link src 100.72.254.176 metric 700
The DHCP for the Wifi is done by NetworkManager starting dnsmasq with default parameters:
# ps -eF | grep dnsmasq
nobody 1104 606 0 1285 2444 0 09:05 ? 00:00:00 /usr/bin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-lease-max=50 --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlan0.leases --pid-file=/var/run/nm-dnsmasq-wlan0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d
ref https://unix.stackexchange.com/questions/384762/networkmanager-and-dnsmasq-dhcp-address-range) .
# cat /etc/NetworkManager/system-connections/ap.nmconnection
[connection]
id=ap
uuid=3205b229-8c4d-4766-8d63-bcd949d03321
type=wifi
autoconnect=false
interface-name=wlan0
[wifi]
band=bg
channel=1
mode=ap
ssid=MySSID
[wifi-security]
group=ccmp;
key-mgmt=wpa-psk
pairwise=ccmp;
proto=rsn;
psk=MyPSK
[ipv4]
method=shared
[ipv6]
addr-gen-mode=stable-privacy
method=ignore
[proxy]
A colleague suggested https://github.com/oblique/create_ap . I tried both the NAT and bridge options but they both failed.
NAT:
# create_ap -w 2 wlan0 wwan0 APTest 12345678
WARN: brmfmac driver doesn't work properly with virtual interfaces and
it can cause kernel panic. For this reason we disallow virtual
interfaces for your adapter.
For more info: https://github.com/oblique/create_ap/issues/203
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
Config dir: /tmp/create_ap.wlan0.conf.XX59Vdf8
PID: 537195
Network Manager found, set wlan0 as unmanaged device... [46988.754925] ieee80211 phy1: brcmf_set_pmk: failed to change PSK in firmware (len=0)
[46988.784848] ieee80211 phy1: brcmf_vif_set_mgmt_ie: vndr ie set error : -52
[46988.792027] ieee80211 phy1: brcmf_vif_set_mgmt_ie: vndr ie set error : -52
DONE
Sharing Internet using method: nat
iptables v1.8.7 (legacy): unknown option "--to-ports"
Try `iptables -h' or 'iptables --help' for more information.
Doing cleanup.. done
Bridge:
# create_ap -w 2 -m bridge wlan0 wwan0 APTest 12345678
WARN: brmfmac driver doesn't work properly with virtual interfaces and
it can cause kernel panic. For this reason we disallow virtual
interfaces for your adapter.
For more info: https://github.com/oblique/create_ap/issues/203
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
Config dir: /tmp/create_ap.wlan0.conf.XXgGPNON
PID: 540585
Network Manager found, set wlan0 as unmanaged device... DONE
Sharing Internet using method: bridge
Create a bridge interface... ip: RTNETLINK answers: Operation not supported
parsley72
(319 rep)
Jul 22, 2024, 04:18 AM
• Last activity: Jul 31, 2024, 11:02 PM
1
votes
0
answers
43
views
Trouble Setting Access Point 2.4GHz Orange Pi Zero 2
I'm setting up a WiFi Access Point using bridge mode. I successfully configured the bridge mode and it's working. Then, I managed to set up the WiFi Access Point for 5GHz as well. But why did I fail when setting it up for 2.4 GHz? Trouble: 1. Visible after restart, then after 1-2 minuter, WiFi AP no...
I'm setting up a WiFi Access Point using bridge mode. I successfully configured the bridge mode and it's working. Then, I managed to set up the WiFi Access Point for 5GHz as well. But why did I fail when setting it up for 2.4 GHz?
Trouble:
1. Visible after restart, then after 1-2 minuter, WiFi AP not visible
2. After restart, i cant access my orange pi with ssh or VNC, but can access with HDMI
This my configuration:
sudo nano /etc/hostapd.conf
Script:
#
# orangepi hostapd configuration example
#
# nl80211 mode
#
ssid=HIBOBGATEWAY
interface=wlan0
hw_mode=g
channel=6 # Set to a common 2.4GHz channel (1-13)
bridge=br0
driver=nl80211
logger_syslog=0
logger_syslog_level=0
wmm_enabled=1
wpa=2
preamble=1
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
wpa_passphrase=6666666666
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0
### IEEE 802.11n
ieee80211n=1
ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+]
country_code=ID
ieee80211d=1
### IEEE 802.11n
### IEEE 802.11a
#hw_mode=a
### IEEE 802.11a
### IEEE 802.11ac
#ieee80211ac=1
#vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3]
#vht_oper_chwidth=1
#vht_oper_centr_freq_seg0_idx=42
### IEEE 802.11ac
# controlling enabled
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
For bridge setting:
sudo nano /etc/network/interfaces
Script
source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet manual
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
#wireless power off
auto br0
iface br0 inet static
address 192.168.6.57
netmask 255.255.255.0
gateway 192.168.6.254
bridge_ports eth0 wlan0
bridge_fd 0
bridge_stp off
Copy code
Can you help me?
Linux Kernel: Linux 4.9.170-sun50iw9
Distro: UBUNTU Bionic
Hardware: Orange-Pi Zero 2
EMAIL KERJA
(11 rep)
Jul 5, 2024, 02:14 AM
-1
votes
1
answers
35
views
The phone reboots during a SYN flood test
I tried executing a SYN flood attack through my phone's internet hotspot, but the phone restarts after about 30 seconds. What might be causing this issue? p.s: I tried using hotspot from other devices
I tried executing a SYN flood attack through my phone's internet hotspot, but the phone restarts after about 30 seconds. What might be causing this issue?
p.s: I tried using hotspot from other devices
Ephraim
(1 rep)
Jun 13, 2024, 05:00 AM
• Last activity: Jun 13, 2024, 05:40 AM
Showing page 1 of 20 total questions