CentOS安装VPN xl2tpd

未分类

未完待续……

下面的内容都在同一行,实际没有回车:
nmcli
connection modify eth0
ipv4.addresses 10.20.222.145/16
ipv4.gateway 10.20.0.1
ipv4.dns 114.114.114.114
ipv4.dns-search helian.tech
ipv4.method manual
connection.autoconnect yes
connection.interface-name eth0

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

systemctl stop firewalld.service

yum -y install yum-utils
yum install mysql
yum install mysql-devel
yum install mariadb-server mariadb
systemctl start mariadb

shell> mysql -uroot -p<password实际要用的密码>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by ‘<password>’;
mysql> quit;

rpm -ivh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
yum-config-manager –enable rhel-7-server-optional-rpms
yum install zabbix-server-mysql
yum install zabbix-proxy-mysql
yum install zabbix-web-mysql
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
zcat /usr/share/doc/zabbix-proxy-mysql*/schema.sql.gz | mysql -uzabbix -p zabbix

conn L2TP-PSK-NAT
rightsubnet=0.0.0.0/0
dpddelay=10
dpdtimeout=20
dpdaction=clear
forceencaps=yes
also=L2TP-PSK-noNAT
conn L2TP-PSK-noNAT
authby=secret
pfs=no
auto=add
keyingtries=3
rekey=no
ikelifetime=8h
keylife=1h
type=transport
left=47.90.44.177
leftprotoport=17/1701
right=%any
rightprotoport=17/%any

 

未完待续……