Wi-Fi hotspot
- KDE Desktop
- Shell
Configuration
- Access to system settings.
- Select the
Connections
---->+
---->Wi-Fi (shared)
---->Create
button in order.
- Refer to the following configuration and fill in the configuration you need to modify.
Enable Hotspot
Right-click on the hotspot configuration and select Connect
Enable Wi-Fi hotspot.
Configuration
-
Use
sudo nmtui
to enter the NetworkManager configuration interface. -
Select the
Edit a connection
---->Add
---->Wi-Fi
button. -
Refer to the following configuration and fill in the configuration you need to modify.
┌────────────────────────────┤ Edit Connection ├─────────────────────────────┐
│ ↑│
│ Profile name AP______________________________________ ▮│
│ Device ________________________________________ ▒│
│ ▒│
│ ╤ WI-FI <Hide> ▒│
│ │ SSID AP______________________________________ ▒│
│ │ Mode <Access Point> ▒│
│ │ Channel <Automatic> ▒│
│ │ ▒│
│ │ Security <WPA & WPA2 Personal> ▒│
│ │ Password ********________________________________ ▒│
│ │ [ ] Show password ▒│
│ │ ▒│
│ │ BSSID ________________________________________ ▒│
│ │ Cloned MAC address ________________________________________ ▒│
│ │ MTU __________ (default) ▒│
│ └ ▒│
│ ▒│
│ ═ IPv4 CONFIGURATION <Shared> <Show> ▒│
│ ↓│
└────────────────────────────────────────────────────────────────────────────┘
-
Save and exit.
-
Add a NAT rule to specify traffic egress
sudo iptables -t nat -A POSTROUTING -o end0 -j MASQUERADE
, whereend0
is the name of the egress NIC.
Enable hotspot
sudo nmcli connection up AP
Q&A
Can't turn on 5G hotspot
Try specifying the Channel
parameter as <A (5 GHz)> 36
.