From 9519c0125ef667f468592020ffa15d57c60ee63f Mon Sep 17 00:00:00 2001 From: WarWolf <35026476+WarWolflll@users.noreply.github.com> Date: Mon, 4 Sep 2023 00:22:23 +0800 Subject: [PATCH 1/3] Update prerequisites.md Add a new line after COMMIT to avoid "Bad argument" error. --- content/en/admin/prerequisites.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/en/admin/prerequisites.md b/content/en/admin/prerequisites.md index d245759910..07a81f6967 100644 --- a/content/en/admin/prerequisites.md +++ b/content/en/admin/prerequisites.md @@ -62,7 +62,7 @@ First, install iptables-persistent. During installation it will ask you if you w apt install -y iptables-persistent ``` -Edit `/etc/iptables/rules.v4` and put this inside: +Edit `/etc/iptables/rules.v4` and put this inside: (There must to be a new line after COMMIT, or it will get an error message ```Bad argument `COMMIT'``` at next step.) ```text *filter @@ -99,6 +99,7 @@ Edit `/etc/iptables/rules.v4` and put this inside: -A FORWARD -j REJECT COMMIT + ``` With iptables-persistent, that configuration will be loaded at boot time. But since we are not rebooting right now, we need to load it manually for the first time: @@ -140,6 +141,7 @@ If your server is also reachable over IPv6, edit `/etc/iptables/rules.v6` and ad -A FORWARD -j REJECT COMMIT + ``` Similar to the IPv4 rules, you can load it manually like this: ```bash From 8448754f17630ff6faf233ddfc86bd6e1841d6b9 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Fri, 21 Nov 2025 17:06:50 +0000 Subject: [PATCH 2/3] Update content/en/admin/prerequisites.md Co-authored-by: Michael Stanclift --- content/en/admin/prerequisites.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/admin/prerequisites.md b/content/en/admin/prerequisites.md index 07a81f6967..210fcd0ded 100644 --- a/content/en/admin/prerequisites.md +++ b/content/en/admin/prerequisites.md @@ -62,7 +62,7 @@ First, install iptables-persistent. During installation it will ask you if you w apt install -y iptables-persistent ``` -Edit `/etc/iptables/rules.v4` and put this inside: (There must to be a new line after COMMIT, or it will get an error message ```Bad argument `COMMIT'``` at next step.) +Edit `/etc/iptables/rules.v4` and put this inside: ```text *filter From b9017e4e64f42ac455d517ca3223a84da6b32361 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Fri, 21 Nov 2025 17:07:04 +0000 Subject: [PATCH 3/3] Update content/en/admin/prerequisites.md Co-authored-by: Michael Stanclift --- content/en/admin/prerequisites.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/admin/prerequisites.md b/content/en/admin/prerequisites.md index 210fcd0ded..71e8e48de6 100644 --- a/content/en/admin/prerequisites.md +++ b/content/en/admin/prerequisites.md @@ -102,6 +102,7 @@ COMMIT ``` +Please note there must to be a new line after COMMIT, or you will receive the error message `Bad argument COMMIT`. With iptables-persistent, that configuration will be loaded at boot time. But since we are not rebooting right now, we need to load it manually for the first time: ```bash