Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hwdsl2 committed Oct 16, 2024
1 parent d040e82 commit b083590
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vpnsetup_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,7 @@ apply_gcp_mtu_fix() {
enable_on_boot() {
bigecho "Enabling services on boot..."
systemctl --now mask firewalld 2>/dev/null
if [ "$os_type$os_ver" = "ol9" ]; then
systemctl enable nftables 2>/dev/null
elif [ "$use_nft" = 1 ]; then
if [ "$use_nft" = 1 ]; then
systemctl enable nftables 2>/dev/null
systemctl enable fail2ban 2>/dev/null
else
Expand Down Expand Up @@ -824,9 +822,7 @@ vpnsetup() {
install_vpn_pkgs_1
install_vpn_pkgs_2
install_vpn_pkgs_3
if [ "$os_type$os_ver" != "ol9" ]; then
install_fail2ban
fi
install_fail2ban
get_helper_scripts
get_libreswan
install_libreswan
Expand Down

0 comments on commit b083590

Please sign in to comment.