Allow nftabless db
This commit is contained in:
@@ -11,12 +11,6 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf ( enabledConfigs != {} ) {
|
config = lib.mkIf ( enabledConfigs != {} ) {
|
||||||
virtualisation.containers.containersConf.settings = {
|
|
||||||
containers = {
|
|
||||||
host_containers_internal = true;
|
|
||||||
additional_hosts = [ "host.internal:host-gateway" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
|
|||||||
@@ -9,6 +9,12 @@
|
|||||||
|
|
||||||
networking.nftables.enable = true;
|
networking.nftables.enable = true;
|
||||||
networking.nftables.ruleset = ''
|
networking.nftables.ruleset = ''
|
||||||
|
table inet filter {
|
||||||
|
chain input {
|
||||||
|
type filter hook input priority filter; policy accept;
|
||||||
|
tcp dport 5432 ip saddr { 10.0.0.0/8 } accept
|
||||||
|
}
|
||||||
|
}
|
||||||
table inet nat {
|
table inet nat {
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
type nat hook prerouting priority dstnat; policy accept;
|
type nat hook prerouting priority dstnat; policy accept;
|
||||||
|
|||||||
Reference in New Issue
Block a user