Compare commits
6 Commits
c363d55be5
...
3f889c7119
Author | SHA1 | Date | |
---|---|---|---|
3f889c7119 | |||
7f17125039 | |||
4bb081ffcf | |||
6587813577 | |||
1d780de0f1 | |||
8cf602da91 |
12
THOUGHTS.txt
12
THOUGHTS.txt
@ -7010,5 +7010,13 @@ 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 watch each interface service for the ifname
|
then the firewall could
|
||||||
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,10 +69,6 @@ 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,8 +48,7 @@
|
|||||||
(..
|
(..
|
||||||
"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,6 +50,10 @@ 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