added silent to curl, fixed a forgotten bracket on enable iptables.
This commit is contained in:
parent
5b2bcab120
commit
b5e84a884b
14
install.sh
14
install.sh
@ -5,20 +5,20 @@ zypper -y install iptables iptables-nft-backend
|
|||||||
|
|
||||||
echo "Setting up the init files..."
|
echo "Setting up the init files..."
|
||||||
mkdir -p /usr/libexec/iptables
|
mkdir -p /usr/libexec/iptables
|
||||||
curl -O --output-dir /usr/libexec/iptables https://git.xo.nl/marcel/iptables/raw/master/libexec/iptables.init
|
curl -sO --output-dir /usr/libexec/iptables https://git.xo.nl/marcel/iptables/raw/master/libexec/iptables.init
|
||||||
curl -O --output-dir /usr/libexec/iptables https://git.xo.nl/marcel/iptables/raw/master/libexec/ip6tables.init
|
curl -sO --output-dir /usr/libexec/iptables https://git.xo.nl/marcel/iptables/raw/master/libexec/ip6tables.init
|
||||||
chown root:root /usr/libexec/iptables/*
|
chown root:root /usr/libexec/iptables/*
|
||||||
chmod ug+x /usr/libexec/iptables/*
|
chmod ug+x /usr/libexec/iptables/*
|
||||||
|
|
||||||
echo "Setting up the systemd files..."
|
echo "Setting up the systemd files..."
|
||||||
curl -O --output-dir /etc/systemd/system https://git.xo.nl/marcel/iptables/raw/master/systemd/iptables.service
|
curl -sO --output-dir /etc/systemd/system https://git.xo.nl/marcel/iptables/raw/master/systemd/iptables.service
|
||||||
curl -O --output-dir /etc/systemd/system https://git.xo.nl/marcel/iptables/raw/master/systemd/ip6tables.service
|
curl -sO --output-dir /etc/systemd/system https://git.xo.nl/marcel/iptables/raw/master/systemd/ip6tables.service
|
||||||
|
|
||||||
echo "Setting up the default firewall configuration..."
|
echo "Setting up the default firewall configuration..."
|
||||||
curl -O --output-dir /etc/sysconfig https://git.xo.nl/marcel/iptables/raw/config/iptables
|
curl -sO --output-dir /etc/sysconfig https://git.xo.nl/marcel/iptables/raw/config/iptables
|
||||||
curl -O --output-dir /etc/sysconfig https://git.xo.nl/marcel/iptables/raw/config/ip6tables
|
curl -sO --output-dir /etc/sysconfig https://git.xo.nl/marcel/iptables/raw/config/ip6tables
|
||||||
|
|
||||||
echo "Enabling iptables on next boot
|
echo "Enabling iptables on next boot"
|
||||||
systemctl daemon-relad
|
systemctl daemon-relad
|
||||||
systemctl enable iptables ip6tables
|
systemctl enable iptables ip6tables
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user