当前位置: 首页 > Linux

CentOS下搭建PPTP服务器

时间:2023-04-06 01:37:39 Linux

installrpm-Uvhhttp://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpmyum-yinstallpptpdconfigure/etc/ppp/options.pptpdms-dns8.8.8.8ms-dns8.8.4.4/etc/pptpd.conflocalip172.16.0.1remoteip172.16.0.2-254/etc/ppp/chap-secretsVPN用户名pptpdVPN密码*/etc/sysctl.confnet.ipv4.ip_forward1#net.ipv4.tcp_syncookies1(注释掉这行代码)接下来执行sysctl-p命令使配置生效grepbridgefirewallconfigurationiptables-tnat-APOSTROUTING-s172.16.0.0/24-oeth0-jMASQUERADE最后保存规则serviceiptables保存,然后重启防火墙serviceiptablesrestart