Because of the firewall issue built into CentOS
7, this script will automatically disable the default firewall and install iptables.
When installing the VPN, this script will automatically add the epel yum repository.
When installing the VPN, this script will automatically uninstall any installed ppp and pptpd, so there is no need to uninstall them before reinstalling.
Installation Steps
-
wget —no–check–certificate https://softs.fun/Bash/vpn/Centos_pptpd_vpn.sh &&
chmod +x Centos_pptpd_vpn.sh && bash
Centos_pptpd_vpn.sh
After running the script, you will be prompted to choose whether to install the VPN service or add a VPN account.
Choose 1 to install the VPN service (pptpd)
Choose 2 to add a VPN account
After installation, you can run the script at any time bash Centos_pptpd_vpn.sh and choose 2 to add a VPN account.
View VPN account/password:
- cat /etc/ppp/chap–secrets
Modify VPN account/password:
- vi /etc/ppp/chap–secrets