shinobu/router: Add printer vlan

This commit is contained in:
Simon Bruder 2024-09-22 12:54:37 +02:00
parent d678da8454
commit 0cbdc22d4e
Signed by: simon
GPG key ID: 347FF8699CDA0776
2 changed files with 8 additions and 0 deletions

View file

@ -76,6 +76,11 @@ rec {
subnet = mkSubnet "10.80.4.0/24" "2001:470:73b9:4::/64";
domain = "iot.shinonome-lab.de";
};
printer = {
id = 41;
subnet = mkSubnet "10.80.5.0/24" "2001:470:73b9:5::/64";
domain = "printer.shinonome-lab.de";
};
};
tc = {
interface = "enp1s0";

View file

@ -31,6 +31,9 @@ table inet filter {
iifname $VLAN_BRIDGES oifname "br-lan" ct state established,related counter accept
iifname $WAN_IFACES oifname "br-iot" ct state established,related counter accept
iifname "br-printer" oifname "br-lan" ip daddr $STATIC_HOST_fuuko_address4 tcp dport { 21, 30000-30009 } counter accept
iifname "br-printer" oifname "br-lan" ip6 daddr $STATIC_HOST_fuuko_address6 tcp dport { 21, 30000-30009 } counter accept
}
}