Running Dual Hotspots with Separate Client Interfaces
Closed this issue · 2 comments
Is your feature request related to a problem? Please describe.
This is more of an inquiry than a feature request. I'm trying to determine if it's possible to run two separate hotspots simultaneously, each using a different client and hotspot interface. Currently, I have the following setup:
wlan0
: client interface (connected to internet)wg0
: client interface (behind a VPN)wlan1
: potential AP interface to be used withwlan0
wlan2
: potential AP interface to be used withwg0
I'm unsure if the current implementation of linux-wifi-hotspot supports this kind of dual hotspot configuration.
Describe the solution you'd like
Ideally, I'd like to be able to:
- Create a hotspot using
wlan1
as the AP interface, with internet traffic routed throughwlan0
. - Simultaneously create a second hotspot using
wlan2
as the AP interface, with internet traffic routed throughwg0
(VPN).
This would allow me to have two separate hotspots, one with regular internet access and another with VPN-protected access.
Additional context
This setup would be particularly useful for scenarios where users need to provide both regular and VPN-protected Wi-Fi access simultaneously. It could be beneficial in environments like small offices or for advanced home network setups.
I understand this might be a complex feature to implement, and I'm mainly inquiring about its feasibility within the current project structure. Any insights on whether this is possible, or suggestions on how to approach this (even if it requires manual configuration outside of the tool) would be greatly appreciated.
Added %i
support to my create_ap
service for using different .conf
files and was actually able to run multiple hotspots without any issue.
Example for future reference:
-
mv /lib/systemd/system/create_ap.service /lib/systemd/system/create_ap@.service
-
Edit to add
%i
support:
[Unit]
Description=Create AP (%i)
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/create_ap --config /etc/create_ap/%i.conf
KillSignal=SIGINT
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
mkdir /etc/create_ap/
mv /etc/create_ap.conf /etc/create_ap/first.conf
systemctl enable create_ap@first
service create_ap@first start