Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yvdjee/8e1b8583e7144d38f087761dd0c1e710 to your computer and use it in GitHub Desktop.
Save yvdjee/8e1b8583e7144d38f087761dd0c1e710 to your computer and use it in GitHub Desktop.
Centos SoftEther
#!/bin/bash
sudo yum update -y
sudo yum install tmux gcc wget htop epel-release fail2ban -y
wget -O vpnserver.tar.gz http://jp.softether-download.com/files/softether/v4.22-9634-beta-2016.11.27-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz
tar -zxvf vpnserver.tar.gz
cd vpnserver/
# printf '1\n1\n1\n' | ./.install.sh
make i_read_and_agree_the_license_agreement
sudo ./vpnserver start
sudo systemctl stop firewalld
sudo systemctl enable fail2ban
sudo sh -c 'echo "[DEFAULT]
# Ban hosts for one hour:
bantime = 3600
# Override /etc/fail2ban/jail.d/00-firewalld.conf:
banaction = iptables-multiport
[sshd]
enabled = true" > /etc/fail2ban/jail.local'
sudo systemctl restart fail2ban
sudo fail2ban-client status
# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment