diff --git a/Dockerfile b/Dockerfile index 18f8b2f4..97acbed3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.11-bookworm ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && \ +RUN apt-get update && sudo apt install \ git \ build-essential \ software-properties-common \ diff --git a/node_cli/core/nftables.py b/node_cli/core/nftables.py index 65d2ba4c..b295162e 100644 --- a/node_cli/core/nftables.py +++ b/node_cli/core/nftables.py @@ -55,7 +55,7 @@ def get_chains(self) -> list[str]: return [] def flush(self) -> None: - self.run_cmd('flush ruleset') + self.nft.cmd('flush ruleset') def chain_exists(self, chain_name: str) -> bool: return chain_name in self.get_chains()