feat: Use wireless device as software AP for Tytonidae

This commit is contained in:
ulic-youthlic 2026-01-22 15:36:05 +08:00
parent a7894c6f6a
commit cec21244b3
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 26 additions and 5 deletions

View file

@ -39,8 +39,11 @@
# Bond = "bond0";
# PrimarySlave = true;
DHCP = "ipv4";
DHCP = "yes";
IPv6AcceptRA = true;
IPMasquerade = "yes";
IPv4Forwarding = "yes";
};
linkConfig = {
RequiredForOnline = "routable";
@ -49,6 +52,24 @@
Name = "eno2";
};
};
"20-wlan0" = {
matchConfig = {
Name = "wlan0";
};
address = ["192.168.110.1/24"];
networkConfig = {
DHCPServer = "yes";
IPMasquerade = "yes";
IPv4Forwarding = "yes";
};
dhcpServerConfig = {
PoolOffset = 100;
PoolSize = 20;
EmitDNS = "yes";
DNS = "8.8.8.8";
};
};
# "20-wlan0" = {
# networkConfig = {
# # Bond = "bond0";
@ -87,8 +108,8 @@
Enabled = true;
};
General = {
# EnableNetworkConfiguration = false;
EnableNetworkConfiguration = true;
EnableNetworkConfiguration = false;
# EnableNetworkConfiguration = true;
};
Settings = {
AutoConnect = true;

View file

@ -4,8 +4,8 @@ include {
}
global {
lan_interface: auto
wan_interface: auto
lan_interface: wlan0,eno2
wan_interface: eno2
log_level: trace
allow_insecure: false