diff options
Diffstat (limited to 'hosts/vidhar/network/ruleset.nft')
-rw-r--r-- | hosts/vidhar/network/ruleset.nft | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/hosts/vidhar/network/ruleset.nft b/hosts/vidhar/network/ruleset.nft index 10fd4c51..7897fb3d 100644 --- a/hosts/vidhar/network/ruleset.nft +++ b/hosts/vidhar/network/ruleset.nft | |||
@@ -60,6 +60,7 @@ table inet filter { | |||
60 | counter fw-lo {} | 60 | counter fw-lo {} |
61 | counter fw-lan {} | 61 | counter fw-lan {} |
62 | counter fw-gpon {} | 62 | counter fw-gpon {} |
63 | counter fw-kimai {} | ||
63 | 64 | ||
64 | counter fw-cups {} | 65 | counter fw-cups {} |
65 | 66 | ||
@@ -92,6 +93,10 @@ table inet filter { | |||
92 | counter tftp-rx {} | 93 | counter tftp-rx {} |
93 | counter pgbackrest-rx {} | 94 | counter pgbackrest-rx {} |
94 | counter immich-rx {} | 95 | counter immich-rx {} |
96 | counter paperless-rx {} | ||
97 | counter hledger-rx {} | ||
98 | counter audiobookshelf-rx {} | ||
99 | counter kimai-rx {} | ||
95 | 100 | ||
96 | counter established-rx {} | 101 | counter established-rx {} |
97 | 102 | ||
@@ -121,6 +126,10 @@ table inet filter { | |||
121 | counter tftp-tx {} | 126 | counter tftp-tx {} |
122 | counter pgbackrest-tx {} | 127 | counter pgbackrest-tx {} |
123 | counter immich-tx {} | 128 | counter immich-tx {} |
129 | counter paperless-tx {} | ||
130 | counter hledger-tx {} | ||
131 | counter audiobookshelf-tx {} | ||
132 | counter kimai-tx {} | ||
124 | 133 | ||
125 | counter tx {} | 134 | counter tx {} |
126 | 135 | ||
@@ -144,8 +153,13 @@ table inet filter { | |||
144 | 153 | ||
145 | oifname { lan, gpon, bifrost } meta l4proto $icmp_protos jump forward_icmp_accept | 154 | oifname { lan, gpon, bifrost } meta l4proto $icmp_protos jump forward_icmp_accept |
146 | iifname lan oifname { gpon, bifrost } counter name fw-lan accept | 155 | iifname lan oifname { gpon, bifrost } counter name fw-lan accept |
156 | iifname ve-kimai oifname gpon counter name fw-kimai accept | ||
147 | 157 | ||
148 | iifname gpon oifname lan ct state { established, related } counter name fw-gpon accept | 158 | iifname gpon oifname lan ct state { established, related } counter name fw-gpon accept |
159 | iifname gpon oifname ve-kimai ct state { established, related } counter name fw-kimai accept | ||
160 | |||
161 | iifname bifrost oifname ve-kimai tcp dport 80 ip6 saddr $bifrost_surtr ip6 daddr 2a03:4000:52:ada:6::2 counter name kimai-rx accept | ||
162 | iifname ve-kimai oifname bifrost tcp sport 80 ip6 saddr 2a03:4000:52:ada:6::2 ip6 daddr $bifrost_surtr counter name kimai-tx accept | ||
149 | 163 | ||
150 | 164 | ||
151 | limit name lim_reject log level debug prefix "drop forward: " counter name reject-ratelimit-fw drop | 165 | limit name lim_reject log level debug prefix "drop forward: " counter name reject-ratelimit-fw drop |
@@ -197,6 +211,9 @@ table inet filter { | |||
197 | tcp dport 8432 counter name pgbackrest-rx accept | 211 | tcp dport 8432 counter name pgbackrest-rx accept |
198 | 212 | ||
199 | iifname bifrost tcp dport 2283 ip6 saddr $bifrost_surtr counter name immich-rx accept | 213 | iifname bifrost tcp dport 2283 ip6 saddr $bifrost_surtr counter name immich-rx accept |
214 | iifname bifrost tcp dport 28981 ip6 saddr $bifrost_surtr counter name paperless-rx accept | ||
215 | iifname bifrost tcp dport 5000 ip6 saddr $bifrost_surtr counter name hledger-rx accept | ||
216 | iifname bifrost tcp dport 28982 ip6 saddr $bifrost_surtr counter name audiobookshelf-rx accept | ||
200 | 217 | ||
201 | ct state { established, related } counter name established-rx accept | 218 | ct state { established, related } counter name established-rx accept |
202 | 219 | ||
@@ -246,6 +263,9 @@ table inet filter { | |||
246 | tcp sport 8432 counter name pgbackrest-tx accept | 263 | tcp sport 8432 counter name pgbackrest-tx accept |
247 | 264 | ||
248 | iifname bifrost tcp sport 2283 ip6 daddr $bifrost_surtr counter name immich-tx accept | 265 | iifname bifrost tcp sport 2283 ip6 daddr $bifrost_surtr counter name immich-tx accept |
266 | iifname bifrost tcp sport 28981 ip6 daddr $bifrost_surtr counter name paperless-tx accept | ||
267 | iifname bifrost tcp sport 5000 ip6 daddr $bifrost_surtr counter name hledger-tx accept | ||
268 | iifname bifrost tcp sport 28982 ip6 daddr $bifrost_surtr counter name audiobookshelf-tx accept | ||
249 | 269 | ||
250 | 270 | ||
251 | counter name tx | 271 | counter name tx |
@@ -254,7 +274,7 @@ table inet filter { | |||
254 | 274 | ||
255 | table inet nat { | 275 | table inet nat { |
256 | counter gpon-nat {} | 276 | counter gpon-nat {} |
257 | # counter container-nat {} | 277 | counter kimai-nat {} |
258 | 278 | ||
259 | chain postrouting { | 279 | chain postrouting { |
260 | type nat hook postrouting priority srcnat | 280 | type nat hook postrouting priority srcnat |
@@ -262,7 +282,7 @@ table inet nat { | |||
262 | 282 | ||
263 | 283 | ||
264 | meta nfproto ipv4 oifname gpon counter name gpon-nat masquerade | 284 | meta nfproto ipv4 oifname gpon counter name gpon-nat masquerade |
265 | # iifname ve-* oifname gpon counter name container-nat masquerade | 285 | iifname ve-kimai oifname gpon counter name kimai-nat masquerade |
266 | } | 286 | } |
267 | } | 287 | } |
268 | 288 | ||