From 770aaffdde78029177cc63203782abd024eb8049 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Mar 2025 10:34:51 +0100 Subject: [PATCH] Added code blocks for easier reading --- readme.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/readme.md b/readme.md index 5b23d2b..7af6272 100644 --- a/readme.md +++ b/readme.md @@ -10,24 +10,36 @@ the default allows ssh access (22/tcp) to the host only. ## Installation - Install iptables --- zypper install iptables iptables-nft-backend +``` +zypper install iptables iptables-nft-backend +``` - Clone this GIT repo : --- git clone https://git.xo.nl/marcel/iptables +``` +git clone https://git.xo.nl/marcel/iptables +``` - Copy the init files to /usr/libexec --- cp libexec/*.init /usr/libexec --- chown root:root /usr/ip?tables.init --- chmod ug+x /usr/ip?tables.init +``` +cp libexec/*.init /usr/libexec +chown root:root /usr/ip?tables.init +chmod ug+x /usr/ip?tables.init +``` - Copy the systemd files to /etc/systemd/system --- cp systemd/* /etc/systemd/system --- systemd daemon-reload +``` +cp systemd/* /etc/systemd/system +systemd daemon-reload +``` - Copy the default configuration to /etc/sysconfig --- cp config/* /etc/sysconfig +``` +cp config/* /etc/sysconfig +``` - Enable iptables on next boot --- systemctl enable iptables ip6tables +``` +systemctl enable iptables ip6tables +``` Reboot your host