mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-31 02:51:31 +01:00
Automatically enable and start iptables on ArchLinux.
This commit is contained in:
parent
6e2b5cb439
commit
9b261809eb
@ -301,6 +301,11 @@ else
|
|||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm
|
pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm
|
||||||
|
if [[ "$OS" = 'arch' ]]; then
|
||||||
|
touch /etc/iptables/iptables.rules # iptables won't start if this file does not exist
|
||||||
|
systemctl enable iptables
|
||||||
|
systemctl start iptables
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# Find out if the machine uses nogroup or nobody for the permissionless group
|
# Find out if the machine uses nogroup or nobody for the permissionless group
|
||||||
if grep -qs "^nogroup:" /etc/group; then
|
if grep -qs "^nogroup:" /etc/group; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user