登录注册

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

发表评论

评论列表

匿名

order aldactone 100mg generic <a href="https://gpdifluca.com/">buy fluconazole without prescription</a> diflucan 100mg without prescription

2022-12-04 09:42:56

匿名

dutasteride for sale <a href="https://gncelebra.com/">buy celecoxib 200mg pill</a> ondansetron 8mg price

2022-12-03 02:05:37

匿名

buy losartan sale <a href="https://gnimitreks.com/">generic sumatriptan 50mg</a> imitrex 50mg pill

2022-11-30 21:30:13

匿名

colchicine price <a href="https://gnmethotrexat.com/">methotrexate 5mg pills</a> purchase methotrexate online cheap

2022-11-28 19:45:45

匿名

cialis online buy <a href="https://edtadalfi.com/">order cialis 10mg online cheap</a> toradol online buy

2022-11-26 12:42:33