部署pritunl

部署pritunl

Install

Select a Linux distribution below and run the commands to install Pritunl. After installing no setup is necessary simply open the web interface at https://SERVER_IP/ in your web browser and login with the default username and password which is "pritunl".

配置MongoDB的安装源
sudo tee /etc/yum.repos.d/mongodb-org.repo << EOF
[mongodb-org]

name=MongoDB Repository

baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/8.0/x86_64/

gpgcheck=1

enabled=1

gpgkey=https://www.mongodb.org/static/pgp/server-8.0.asc

EOF

配置pritunl的安装源
sudo tee /etc/yum.repos.d/pritunl.repo << EOF
[pritunl]

name=Pritunl Repository

baseurl=https://repo.pritunl.com/stable/yum/almalinux/8/

gpgcheck=1

enabled=1

gpgkey=https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc

EOF

防火墙配置,测试环境关闭;正式环境按照端口开放,以免发生安全问题
sudo yum -y remove iptables-services

sudo systemctl stop firewalld.service

sudo systemctl disable firewalld.service

配置开机启动与服务启动
sudo dnf -y install epel-release

sudo dnf -y install pritunl mongodb-org pritunl-openvpn

sudo systemctl start mongod pritunl

sudo systemctl enable mongod pritunl

Comment

华计科技: 中华自主研发设计

华计科技为您提供咨询服务,IT技术支持和项目开发: (+86) 156 2654 0671

联系我们