登录注册

18250178511

centos7创建vpn服务器

作者:admin      时间:2017-02-04 11:33:11

1.systemctl stop firewalld 

2.yum install -y ppp iptables pptpd iptables-services

3.vi /etc/pptpd.conf
localip 192.168.80.1
remoteip 192.168.80.11-33
4.vi /etc/sysctl.conf

    net.ipv4.ip_forward = 1

    .sysctl -p

5.vi /etc/ppp/options.pptpd
谷歌DNS
ms-dns 8.8.8.8
ms-dns 8.8.4.4
6.vi /etc/ppp/chap-secrets
添加账号
cyj pptpd 112 *
7.iptables -t nat -A POSTROUTING -s 192.168.80.0/24 -o eth1 -j SNAT --to-source 182.92.219.236
8.iptables -A FORWARD -p tcp --syn -s 192.168.80.0/24 -j TCPMSS --set-mss 1356
9.systemctl enable iptables
10.service iptables save
11.service iptables start
12.service pptpd restart
13.# chkconfig pptpd on
# chkconfig iptables on
*清除转发规则
iptables -F
iptables -X -t nat
iptables -Z -t nat

发表评论

评论列表

匿名

omnicef pill <a href="https://buypreva.pro/">prevacid 15mg cost</a> protonix 40mg usa

2023-03-28 08:18:07

匿名

order generic ditropan 5mg <a href="https://buyprogp.life/">prograf without prescription</a> trileptal for sale online

2023-03-27 21:17:32

匿名

purchase imuran online cheap <a href="https://getazathpi.store/">cost imuran</a> order naprosyn pill

2023-03-26 10:46:31

匿名

buy vibra-tabs sale <a href="https://buydclpl.com/">doxycycline uk</a> zovirax 800mg oral

2023-03-25 02:04:59

匿名

order avodart without prescription <a href="https://buycephaonline.sbs/">order cephalexin 125mg online</a> order xenical 60mg

2023-03-24 11:21:19