add firewall rule
This commit is contained in:
@@ -161,6 +161,18 @@
|
||||
iifname "wg_cloonar" ct state { established, related } counter accept
|
||||
iifname "wg_cloonar" drop
|
||||
|
||||
# Allow returning traffic from wrwks and drop everthing else
|
||||
iifname "wrwks" ct state { established, related } counter accept
|
||||
iifname "wrwks" drop
|
||||
|
||||
# Allow returning traffic from wg_epicenter and drop everthing else
|
||||
iifname "wg_epicenter" ct state { established, related } counter accept
|
||||
iifname "wg_epicenter" drop
|
||||
|
||||
# Allow returning traffic from wg_ghetto_at and drop everthing else
|
||||
iifname "wg_ghetto_at" ct state { established, related } counter accept
|
||||
iifname "wg_ghetto_at" drop
|
||||
|
||||
iifname "wan" ct state { established, related } accept comment "Allow established traffic"
|
||||
iifname "wan" icmp type { echo-request, destination-unreachable, time-exceeded } counter accept comment "Allow select ICMP"
|
||||
iifname "wan" counter drop comment "Drop all other unsolicited traffic from wan"
|
||||
|
||||
@@ -25,38 +25,4 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# security.acme.certs."${domain}" = {
|
||||
# domain = "${domain}";
|
||||
# };
|
||||
|
||||
# containers.omada = {
|
||||
# autoStart = true;
|
||||
# ephemeral = true;
|
||||
# macvlans = [ "vserver" ];
|
||||
# bindMounts = {
|
||||
# "/var/lib/gitea" = {
|
||||
# hostPath = "/var/lib/gitea/";
|
||||
# isReadOnly = false;
|
||||
# };
|
||||
# };
|
||||
# bindMounts = {
|
||||
# "/var/lib/acme/gitea/" = {
|
||||
# hostPath = "${config.security.acme.certs.${domain}.directory}";
|
||||
# isReadOnly = true;
|
||||
# };
|
||||
# };
|
||||
# config = { lib, config, pkgs, ... }: {
|
||||
# networking = {
|
||||
# hostName = "gitea";
|
||||
# interfaces.mv-vserver = {
|
||||
# useDHCP = true;
|
||||
# };
|
||||
# firewall = {
|
||||
# enable = true;
|
||||
# allowedTCPPorts = [ 22 80 443 ];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user