How to install pptpd on Ubuntu 20.04.3 LTS

1.安装 ubuntu

nano /etc/apt/sources.list

apt update

apt install vim openssh-server net-tools open-vm-tools

vi /etc/ssh/sshd_config

systemctl restart sshd

systemctl staubuntu命令tus sshd

apt instlinux必学的60个命令all pptpd

vi /etc/pptpd.conf

localip 192.168.1.2

remoteip 192.168.1.234linux删除文件命令-238,192.168.1.245


                                            How to install pptpd on Ubuntu 20.04.3 LTS

vi /etc/ppp/chap-secrets


                                            How to install pptpd on Ubuntu 20.04.3 LTS

vi /etc/ppp/pptpd-options

ms-dns 220.96ubuntu换源.104.17

ms-dns 223.5.5.5


                                            How to install pptpd on Ubuntu 20.04.3 LTS

sysubuntu系统temctl enable plinux操作系统基础知识ptpd

systemclinuxtl start pptpd

systemctubuntu是什么操作系统l status pptpd


                                            How to install pptpd on Ubuntu 20.04.3 LTS

vi /etc/sysctl.conf

net.ipv4.ip_forward=1


                                            How to install pptpd on Ubuntu 20.04.3 LTS

sysctl -p


                                            How to install pptpd on Ubuntu 20.04.3 LTS

nano /etc/netplan/01-netcfg.yaml

neubuntutplan apply

nano /etc/ppp/ip-up.local

echo "tilinux是什么操作系统me:`date -d today +%F_%T`,clientIlinuxP:$6,username:$PEERNAME,assign系统运维工作内容IP:$5" >> /var/log/pptpd.log

或:

echo "ubuntu换源---------------Login---------------------------------------">> /var/log/pptpd.log

echo "time: `dubuntu怎么读ate -d today +%F_%T`" >> /pptpdvar/log/pptpd.log

echo "clientIP: $6" >>系统运维工程师 /var/log/pptpd.log

echo "username: $PEERNAME"系统运维工作内容 >> /var/log/pptpd.log

echo "device: $1" >> /var/log/pptubuntu换源pd.log

echo "vpnIP: $4" >> /var/log/plinuxptpd.log

echo "assignIP: $5" >> /var/lopptpdg/pptpd.log

echo "-----------------------------------------------------------">> /var/log/pptpd.log


                                            How to install pptpd on Ubuntu 20.04.3 LTS

cubuntu20.04安装教程hmod +x /etc/ppp/ip-up.local

nano /etc/ppp/ilinux操作系统基础知识p-down.locaubuntul

echo "time:`date -d today +%F_%T`,clientIP:$6,username:$PEElinuxRNAME,assignIP:$5" >> /var/log/pptpd.log

或:

echo "---------------Logout--------------------------------------">> /var/log/pptpd.log

echo "timelinux常用命令: `date -d today +%F_%T`" >> /var/log/pptpd.log

echo "clientIP: $6" >>ubuntu怎么读 /var/log/pptpd.log

echo "username: $PlinuxEERNAME" >> /vaubuntu怎么设置中文r/log/pptpd.log

echo "device: $1" >> /var/loglinux常用命令/pptpd.log

echlinuxo "vplinux系统安装nIP: $4" >> /var/log/pptpd.log

echo "assignIP: $5" >> /vaubuntu命令r/loubuntu系统g/pptpd.log

echo "--------------------------ubuntu系统---------------------------------">> /ubuntu安装教程varpptpd/log/pptpd.log


                                            How to install pptpd on Ubuntu 20.04.3 LTS

chmod +x /etc/ppp/ip-linux操作系统基础知识down.local