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"; # Bond = "bond0";
# PrimarySlave = true; # PrimarySlave = true;
DHCP = "ipv4"; DHCP = "yes";
IPv6AcceptRA = true; IPv6AcceptRA = true;
IPMasquerade = "yes";
IPv4Forwarding = "yes";
}; };
linkConfig = { linkConfig = {
RequiredForOnline = "routable"; RequiredForOnline = "routable";
@ -49,6 +52,24 @@
Name = "eno2"; 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" = { # "20-wlan0" = {
# networkConfig = { # networkConfig = {
# # Bond = "bond0"; # # Bond = "bond0";
@ -87,8 +108,8 @@
Enabled = true; Enabled = true;
}; };
General = { General = {
# EnableNetworkConfiguration = false; EnableNetworkConfiguration = false;
EnableNetworkConfiguration = true; # EnableNetworkConfiguration = true;
}; };
Settings = { Settings = {
AutoConnect = true; AutoConnect = true;

View file

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