登录注册

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

发表评论

评论列表

匿名

purchase flexeril pill - <a href="https://rketorolac.com/">toradol 10mg pills</a> order inderal 10mg sale

2022-06-26 00:14:10

匿名

isotretinoin 10mg tablet - <a href="https://rtetracycline.com/">tetracycline 500mg cheap</a> tetracycline pills

2022-06-24 07:28:51

匿名

generic modafinil 200mg - <a href="https://rpmodafinil.com/">provigil 100mg price</a> buy rhinocort

2022-06-22 12:42:01

匿名

buy sildenafil 100mg online cheap - <a href="https://rsildenafilr.com/">viagra 100mg pills for sale</a> buy cialis 40mg sale

2022-06-21 01:01:51

匿名

cenforce usa - <a href="https://xdomperidone.com/">buy domperidone 10mg sale</a> motilium 10mg generic

2022-06-19 15:36:35