- RPI4 - https://amzn.to/3LR1lFh
- (OR) odroid xu4 - https://amzn.to/3P5GoIo
- Alfa AC1900 WiFi Adapter - 1900 Mbps 802.11ac Long-Range Dual Band USB - https://amzn.to/3LU43to
- (optional) USB Ethernet Adapter - https://amzn.to/3vPjyNC
- (optional) Generic network switch - https://amzn.to/37sInpq
The general goal is to use off-the-shelf components to create a home network access point.
- Access Point
- DHCP/DNS 192.168.5.xxx
- 802.11ac 5Ghz
- 802.11n 5Ghz
- [] pihole - https://github.com/pi-hole/pi-hole/#one-step-automated-install (wlan0 was selected since it is a static ip address for clients to connect to)
- Secondary ethernet adapter with DHCP
- DHCP reservations
- WireGuard
- Graphana System & Network Dashboards
sudo apt install hostapd dnsmasq git rfkill curl bmon tcptrack
sudo DEBIAN_FRONTEND=noninteractive apt install -y netfilter-persistent iptables-persistent
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
systemctl enable hostapd.service
systemctl enable dnsmasq.service
/etc/netplan/01-network-plan.yaml
network:
version: 2
renderer: networkd
ethernets:
eth1:
dhcp4: yes
dhcp6: no
wlan0:
dhcp4: no
dhcp6: no
addresses: [192.168.5.1/24]
netplan generate && netplan apply
sudo nano /etc/dhcpcd.conf
interface wlan0
static ip_address=192.168.5.1/24
nohook wpa_supplicant
sudo nano /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
sudo netfilter-persistent save
nano /etc/dnsmasq.conf
interface=wlan0 # Listening interface
dhcp-range=192.168.5.101,192.168.5.200,255.255.255.0,24h
# Pool of IP addresses served via DHCP
domain=wlan # Local wireless DNS domain
address=/gw.wlan/192.168.5.1
# Alias for this router
sudo rfkill unblock wlan
nano /etc/hostapd/hostapd.conf
ctrl_interface_group=0
interface=wlan0
ssid=TestNetwork
channel=44
wpa=2
wpa_passphrase=Test2000
#bridge=br0
wmm_enabled=1
wme_enabled=1
beacon_int=100
hw_mode=a
#ieee80211d=1
ieee80211n=1
ieee80211ac=1
country_code=US
ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+][RX-STBC123][GF][DSSS_CCK-40]
#ht_capab=[HT40+]
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
wpa_group_rekey=86400
### hostapd event logger configuration
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
List of connected devices
arp -a
See wifi card caps
iw list
Check general traffic on interfaces: bmon
Check traffic per client tcptrack -i wlan0
- Driver - https://github.com/aircrack-ng/rtl8812au
- https://davidtavarez.github.io/2018/re4son_kernel_raspberry_pi/
- https://forum.armbian.com/topic/144-problem-with-hostapd-alfa-awusc036ac/?do=findComment&comment=777
- https://wiki.odroid.com/odroid-xu4/odroid-xu4
- https://www.raspberrypi.com/documentation/computers/configuration.html
- https://blog.fraggod.net/2017/04/27/wifi-hostapd-configuration-for-80211ac-networks.html
- https://dev.to/joeneville_/dnsmasq-lightweight-name-resolution-for-your-lab-2gim
- https://vitux.com/how-to-configure-networking-with-netplan-on-ubuntu/#:~:text=Follow%20the%20steps%20below%20to%20configure%20static%20or,following%20command%3A%20%24%20cat%20%2Fetc%2Fnetplan%2F%2A.yaml%20More%20items...%20
- https://gist.github.com/ExtremeGTX/ea1d1c12dde8261b263ab2fead983dc8
- https://oastic.com/posts/how-to-monitor-an-ubuntu-server-with-grafana-prometheus/
- https://www.hardkernel.com/blog-2/how-to-control-odroid-xu4-cooling-fan/
- https://blog.zakkemble.net/routerpi-compute-module-4-router/
iw wlan0 set txpower fixed 4500