Compare commits
7 Commits
3f889c7119
...
c363d55be5
Author | SHA1 | Date | |
---|---|---|---|
c363d55be5 | |||
40d257ef1b | |||
ac6d5618a6 | |||
21f2cc6dad | |||
0bb075ba6b | |||
514a01098a | |||
f65cd0677e |
12
THOUGHTS.txt
12
THOUGHTS.txt
@ -7010,13 +7010,5 @@ which interface services are in which zones
|
|||||||
we'd have to ensure that the interface services did not end up as
|
we'd have to ensure that the interface services did not end up as
|
||||||
dependencies of the firewall
|
dependencies of the firewall
|
||||||
|
|
||||||
then the firewall could
|
then the firewall could watch each interface service for the ifname
|
||||||
|
output and add it to the right zone
|
||||||
- create the sets
|
|
||||||
- watch each interface service for the ifname output and add it to the right zone
|
|
||||||
|
|
||||||
Sun Feb 9 21:33:57 GMT 2025
|
|
||||||
|
|
||||||
nft update set @lan
|
|
||||||
|
|
||||||
echo 'flush set table-ip lan; add element table-ip lan { eth0,lo }' | nft -f -
|
|
||||||
|
@ -69,6 +69,10 @@ in rec {
|
|||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
rules = secrets.firewallRules;
|
rules = secrets.firewallRules;
|
||||||
|
zones = {
|
||||||
|
lan = [ config.services.int ];
|
||||||
|
wan = [ config.services.wan ] ;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
wireless.networks = {
|
wireless.networks = {
|
||||||
# EDIT: if you have more or fewer wireless radios, here is where
|
# EDIT: if you have more or fewer wireless radios, here is where
|
||||||
|
@ -48,7 +48,8 @@
|
|||||||
(..
|
(..
|
||||||
"flush set ip table-ip " zone "; \n"
|
"flush set ip table-ip " zone "; \n"
|
||||||
"flush set ip6 table-ip6 " zone "; \n"
|
"flush set ip6 table-ip6 " zone "; \n"
|
||||||
)))
|
)
|
||||||
|
|
||||||
|
|
||||||
(fn run []
|
(fn run []
|
||||||
(while true
|
(while true
|
||||||
|
@ -50,10 +50,6 @@ in {
|
|||||||
rules = mkOption { type = types.attrsOf types.attrs; };
|
rules = mkOption { type = types.attrsOf types.attrs; };
|
||||||
zones = mkOption {
|
zones = mkOption {
|
||||||
type = types.attrsOf (types.listOf liminix.lib.types.service);
|
type = types.attrsOf (types.listOf liminix.lib.types.service);
|
||||||
default = {
|
|
||||||
lan = [ config.services.int ];
|
|
||||||
wan = [ config.services.wan ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user