VPN技术 · 2023年11月10日

CentOS全系列 PPTPD VPN安装脚本简化版

CentOS全系列 PPTPD VPN一键安装脚本

CentOS 7因为自带防火墙的问题,本脚本会自动停用默认防火墙,并安装iptables。

本脚本安装VPN的时候会自动添加 epel的yum源。

本脚本安装VPN的时候会自动卸载已安装的ppp和pptpd,所以重装不需要卸载。

安装步骤

  1. wget –no-check-certificate https://softs.fun/Bash/vpn/Centos_pptpd_vpn.sh && chmod +x Centos_pptpd_vpn.sh && bash Centos_pptpd_vpn.sh

运行脚本后,会提示你选择是安装VPN服务还是添加VPN账号

选择1,安装VPN服务(pptpd)

选择2,添加VPN账号

安装完后,随时可以运行脚本bash Centos_pptpd_vpn.sh选择2,添加VPN账号。

查看VPN账户/密码:

  1. cat /etc/ppp/chap-secrets

修改VPN账户/密码:

  1. vi /etc/ppp/chap-secrets
OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.