You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Linux PC (NUC) with one wired NIC (eth0) and one wireless NIC (wlan0).
I will add an addtional WiFi adapter (wlan1) so the built-in wireless NIC will be used to join an existing 5GHz WiFi network and the plug-in one will create another 2.4GHz WiFi network.
I can capture packets over wireless network for analysis
What will the Router do
Layer 2 switching: forward frames among NUC and connected devices (clients).
Layer 3 routing and IP management: serve NAT and DHCP services
Procedures
hostapd: Create an Access Point (WiFi)
Set IP addr for wlan0
Prevent wlan0 from getting another IP addr via the DHCP service running on wlan0
isc-dhcp-server: Provide DHCP service on wlan0
IP forward and redirect internet traffic
Hostapd: Layer 2 Wireless Switching
Install hostapd but I saw hostapd failed to start.
When "journalctl -xe", I found "hostapd.service: Failed to schedule restart job: Unit hostapd.service is masked"
sudo apt install hostapd
Let configure it first
sudo tee /etc/hostapd/hostapd.conf << EOF >/dev/null
# the interface used by the AP
interface=wlan1
# "g" means 802.11g
hw_mode=g
# turn on 802.11n support
ieee80211n=1
# the channel to use
channel=1
# QoS support, also required for full speed on 802.11n/ac/ax
wmm_enabled=1
# the name of the AP
ssid=myAP
# algorithm: {1:wpa, 2:wep, 3:both}
auth_algs=1
# WPA2 only
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
wpa_passphrase=myPassword
EOF