initial commit

This commit is contained in:
Andreas Wrede
2026-06-28 15:09:28 -04:00
parent bd865831d6
commit cc25dee7e2
27 changed files with 738 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
[Match]
Name=wlxc83a35a4ee55
[Link]
RequiredForOnline=no
[Network]
Address=10.42.0.1/24
ConfigureWithoutCarrier=yes
+1
View File
@@ -0,0 +1 @@
net.ipv4.ip_forward=1
+1
View File
@@ -0,0 +1 @@
DAEMON_CONF="/etc/hostapd/hostapd.conf"
+23
View File
@@ -0,0 +1,23 @@
interface=wlxc83a35a4ee55
driver=nl80211
ssid=VanLink
country_code=CA
ieee80211d=1
ieee80211h=0
hw_mode=a
channel=149
wmm_enabled=1
ieee80211n=1
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]
ieee80211ac=1
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=155
vht_capab=[RXLDPC][SHORT-GI-80][SU-BEAMFORMEE]
ieee80211ax=1
he_oper_chwidth=1
he_oper_centr_freq_seg0_idx=155
auth_algs=1
wpa=2
wpa_passphrase=1foot11foot11
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
+11
View File
@@ -0,0 +1,11 @@
#!/usr/sbin/nft -f
# van-router NAT — masquerade LAN out whatever the WAN of the moment is
# (anything that is NOT the AP interface: ethernet/Starlink, wifi, future 4G)
table ip van_router_nat
delete table ip van_router_nat
table ip van_router_nat {
chain postrouting {
type nat hook postrouting priority srcnat; policy accept;
ip saddr 10.42.0.0/24 oifname != "wlxc83a35a4ee55" masquerade
}
}
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Set wireless regulatory domain
After=network-pre.target
Before=NetworkManager.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/iw reg set CA
[Install]
WantedBy=multi-user.target
+1
View File
@@ -0,0 +1 @@
options rtw89_core disable_ps_mode=Y
+9
View File
@@ -0,0 +1,9 @@
interface=wlxc83a35a4ee55
bind-dynamic
except-interface=lo
domain-needed
bogus-priv
dhcp-authoritative
dhcp-range=10.42.0.10,10.42.0.254,255.255.255.0,12h
dhcp-option=option:router,10.42.0.1
dhcp-option=option:dns-server,10.42.0.1
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=dnsmasq DHCP+DNS for van-ap AP
After=hostapd.service
Wants=hostapd.service
[Service]
ExecStartPre=/usr/sbin/dnsmasq --test --conf-file=/etc/van-ap/dnsmasq.conf
ExecStart=/usr/sbin/dnsmasq --keep-in-foreground --conf-file=/etc/van-ap/dnsmasq.conf
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target
+2
View File
@@ -0,0 +1,2 @@
[keyfile]
unmanaged-devices=interface-name:wlxc83a35a4ee55