VPN的英文全称是“Virtual Private Network”,翻译过来就是“虚拟专用网络”。顾名思义,虚拟专用网络我们可以把它理解成是虚拟出来的企业内部专线。它可以通过特殊的加密的通讯协议在连接在Internet上的位于不同地方的两个或多个企业内部网之间建立一条专有的通讯线路,就好比是架设了一条专线一样,但是它并不需要真正的去铺设光缆之类的物理线路。这就好比去电信局申请专线,但是不用给铺设线路的费用,也不用购买路由器等硬件设备。VPN技术原是路由器具有的重要技术之一,目前在交换机,防火墙设备或Windows等软件里也都支持VPN功能,一句话,VPN的核心就是在利用公共网络建立虚拟私有网。
虚拟专用网(VPN)被定义为通过一个公用网络(通常是因特网)建立一个临时的、安全的连接,是一条穿过混乱的公用网络的安全、稳定的隧道。虚拟专用网是对企业内部网的扩展。虚拟专用网可以帮助远程用户、公司分支机构、商业伙伴及供应商同公司的内部网建立可信的安全连接,并保证数据的安全传输。虚拟专用网可用于不断增长的移动用户的全球因特网接入,以实现安全连接;可用于实现企业网站之间安全通信的虚拟专用线路,用于经济有效地连接到商业伙伴和用户的安全外联网虚拟专用网。
PPTP 全称为 Point to Point Tunneling Protocol -- 点到点隧道协议,是VPN协议中的一种。
一、CentOS 5.3 下 PPTP VPN 服务器安装
1、安装相关软件
32位版:
64位版:
2、配置文件编写
①、配置文件/etc/ppp/options.pptpd
输入以下内容:
②、配置文件/etc/ppp/chap-secrets
输入以下内容
注:这里的myusername和mypassword即为PPTP VPN的登录用户名和密码
③、配置文件/etc/pptpd.conf
输入以下内容:
注:为拨入VPN的用户动态分配192.168.9.11~192.168.9.30之间的IP
④、配置文件/etc/sysctl.conf
修改以下内容:
保存、退出后执行:
3、启动PPTP VPN 服务器端:
4、启动iptables:
二、Windows 下 PPTP VPN 客户端配置
步骤不详述了,直接看图一步步进行:
虚拟专用网(VPN)被定义为通过一个公用网络(通常是因特网)建立一个临时的、安全的连接,是一条穿过混乱的公用网络的安全、稳定的隧道。虚拟专用网是对企业内部网的扩展。虚拟专用网可以帮助远程用户、公司分支机构、商业伙伴及供应商同公司的内部网建立可信的安全连接,并保证数据的安全传输。虚拟专用网可用于不断增长的移动用户的全球因特网接入,以实现安全连接;可用于实现企业网站之间安全通信的虚拟专用线路,用于经济有效地连接到商业伙伴和用户的安全外联网虚拟专用网。
PPTP 全称为 Point to Point Tunneling Protocol -- 点到点隧道协议,是VPN协议中的一种。
一、CentOS 5.3 下 PPTP VPN 服务器安装
1、安装相关软件
32位版:
yum install -y ppp iptables
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.i386.rpm
rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.i386.rpm
rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm
64位版:
yum install -y ppp iptables
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm
rpm -ivh pptpd-1.3.4-2.rhel5.x86_64.rpm
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm
rpm -ivh pptpd-1.3.4-2.rhel5.x86_64.rpm
2、配置文件编写
①、配置文件/etc/ppp/options.pptpd
mv /etc/ppp/options.pptpd /etc/ppp/options.pptpd.bak
vi /etc/ppp/options.pptpd
vi /etc/ppp/options.pptpd
输入以下内容:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
idle 2592000
ms-dns 8.8.8.8
ms-dns 8.8.4.4
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
idle 2592000
ms-dns 8.8.8.8
ms-dns 8.8.4.4
②、配置文件/etc/ppp/chap-secrets
mv /etc/ppp/chap-secrets /etc/ppp/chap-secrets.bak
vi /etc/ppp/chap-secrets
vi /etc/ppp/chap-secrets
输入以下内容
# Secrets for authentication using CHAP
# client server secret IP addresses
myusername pptpd mypassword *
# client server secret IP addresses
myusername pptpd mypassword *
注:这里的myusername和mypassword即为PPTP VPN的登录用户名和密码
③、配置文件/etc/pptpd.conf
mv /etc/pptpd.conf /etc/pptpd.conf.bak
vi /etc/pptpd.conf
vi /etc/pptpd.conf
输入以下内容:
option /etc/ppp/options.pptpd
logwtmp
localip 192.168.9.1
remoteip 192.168.9.11-30
logwtmp
localip 192.168.9.1
remoteip 192.168.9.11-30
注:为拨入VPN的用户动态分配192.168.9.11~192.168.9.30之间的IP
④、配置文件/etc/sysctl.conf
vi /etc/sysctl.conf
修改以下内容:
net.ipv4.ip_forward = 1
保存、退出后执行:
/sbin/sysctl -p
3、启动PPTP VPN 服务器端:
/sbin/service pptpd start
4、启动iptables:
/sbin/service iptables start
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.9.0/24 -j MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.9.0/24 -j MASQUERADE
二、Windows 下 PPTP VPN 客户端配置
步骤不详述了,直接看图一步步进行:
mandi ken
2018-10-2 13:37
That second whilst you discover the Quizlet for the particular trainer that you have with the exact Assignment Writing Service records this is on the exam is what I consider heroin feels like.
jenny
2018-11-24 18:43
I want to do is set up a VPN server on my computer, so that at school, with my iPod touch I can use the VPN options on the ipod to connect to the internet connection my home uses. https://24hwritemyessays.com/
temple run
2019-1-30 16:37
The installation method you share is very nice and attractive. I know how to install.Temple run
Claraalbert
2019-3-25 19:22
The IP address or space name of the server to which you need to associate. In case you're interfacing with a work organize, your IT manager can give the best location. https://www.assignmentcamp.co.uk/
landyrose
2019-4-9 17:34
useful information on topics that plenty are interested on for this wonderful post. Admiring the time and effort. I feel it interesting; your post gave me a new perspective! I have read many other articles about the same topic, but your article convinced me https://www.allassignmenthelp.com
Stefan Carl
2019-4-12 15:14
Students who are registered in the best degree programs in colleges and universities internationally might not be capable of struggling with the pressure of various homework problems. So don't panic and get help from students assignment help in your economics homework on economics homework helpers USA.
andrewsymond
2019-5-8 18:00
If you are worried about Dissertation writing help, then SingaporeAssignmentHelp.com will help you in to write your assignment. Our expert writers who write students assignments have10-yearr experience. They will complete the assignment before timeout. And you will get the original assignment.
assignment help
2019-6-1 14:20
We provide assignment help online likes as manage the assignments in schools, colleges and universities. Allassignment help is number 1 assignment help services in USA.https://www.allassignmenthelp.com/
real stack
2019-7-25 15:09
You're so cool! I don't suppose to learn something like this before the impossible quiz
Ronak Agarwal
2019-9-18 14:15
Very well written article. It will be useful to everyone who utilizes it, as well as myself. Keep up the good work. If you want to interest in play games like racing games then Check out the complete list of the best offline racing games for android mobile.best offline racing games
Dennishollings
2020-1-9 20:52
Nice Article you have shared with us, I'm glad to read such kind of post, keep up the good work, Get instant Free Online Kundali Matching with us to know your compatibility with your partner.
Dantaylor
2020-2-25 22:33
Thanks for sharing this information with us. It's really a cool and helpful piece of info. You might be thinking- Is Omegle safe with such lenient policies?
Actuarial Science Writing Services
2020-2-28 16:19
It is important to seek help for all Online Actuarial Science Writing Services needs from experienced writers for your Actuarial Science Coursework Writing Services and Actuarial Science Paper Writing Services. .
martwal167
2020-4-21 15:54
I have received user favorite walmart near me
panistefanin
2020-6-28 19:38
Salutations! Je suis désolé, ce n'est pas le sujet! J'aime vraiment votre forum! Je vous remercie, je suis avec vous)what sat score is required for harvardwhat sat score is required for harvard
luko
2020-10-7 09:35
This is a great thing, I think everyone feels this information is very valuable, thank you 8 ball
panistefanin
2020-11-26 20:17
Hello! this complex question. Here it is necessary to think...cancel youTube tv
panistefanin
2021-2-9 20:39
۱۹۲.۱۶۸.۱.۱ adminThank you for your work on the blog! You're doing a good job!
pgslot-game
2021-2-23 11:54
# 1 most popular website https://pgslot-game.com
pgslot-game
2021-2-23 11:54
PGSLOT-GAMEทดลองเล่นสล็อต
分页: 5/10 1 2 3 4 5 6 7 8 9 10