VPN的英文全称是“Virtual Private Network”,翻译过来就是“虚拟专用网络”。顾名思义,虚拟专用网络我们可以把它理解成是虚拟出来的企业内部专线。它可以通过特殊的加密的通讯协议在连接在Internet上的位于不同地方的两个或多个企业内部网之间建立一条专有的通讯线路,就好比是架设了一条专线一样,但是它并不需要真正的去铺设光缆之类的物理线路。这就好比去电信局申请专线,但是不用给铺设线路的费用,也不用购买路由器等硬件设备。VPN技术原是路由器具有的重要技术之一,目前在交换机,防火墙设备或Windows等软件里也都支持VPN功能,一句话,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

  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


  2、配置文件编写
  ①、配置文件/etc/ppp/options.pptpd
mv /etc/ppp/options.pptpd /etc/ppp/options.pptpd.bak
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



  ②、配置文件/etc/ppp/chap-secrets
mv /etc/ppp/chap-secrets /etc/ppp/chap-secrets.bak
vi /etc/ppp/chap-secrets

  输入以下内容
# Secrets for authentication using CHAP
# 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

  输入以下内容:
option /etc/ppp/options.pptpd
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




  二、Windows 下 PPTP VPN 客户端配置
  步骤不详述了,直接看图一步步进行:

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片


Tags: , , ,



技术大类 » 其他Unix技术 | 评论(183) | 引用(0) | 阅读(132250)
charu Email Homepage
2021-7-27 17:20
charu Email Homepage
2021-8-10 13:50
charu Email Homepage
2021-8-10 14:16
charu Email Homepage
2021-8-11 12:35
charu Email Homepage
2021-8-11 14:38
charu Email Homepage
2021-8-11 15:13
epoxy Email
2022-1-31 13:50
epoxy Email
2022-1-31 14:52
luna Email
2022-2-16 19:30
Ij scan utility comes packed with interactive features to ease your scanning for an unmatched experience.It also offers you to incorporate with such third-party applications and software by exporting your scanned items to the required service.ij scan utility  | ij scan utility download  | ij canon scan utility
rode Email Homepage
2022-3-3 23:13
Many of the Fba sellers on the amazon platform struggles to make money due to hiring a wrong agency. In rder to make a profitable FBA Business, you need help of an amazing marketing co amazon ppc agency which can help to grow your brand sales to the next level. An expert agency will have lot of case studies where they have grown the other brands to million dollar sales making them the best among the Industry.While most of the agencies won’t have any casestudy or else will come up with fake screenshot where they show that they have reduced ACOS and improved the ROAS. To makesure, you are working with a real agency, a real ppc agency will have case studies with video proof from the brand owners where they tell that certain agency has helped them to achieve their results successful and are happy to work with them.You can always ask certain queries about the agency before you hiring them. First things are the real casestudies and the proofs, second thing is their contract agreement length and terms and conditions of it. Many of the big agencies will lock-in the brands more than 6 months which is not a wise advice and it is always advised to work with on-month or three-month contract agencies which will help to get better data about them within this time period.Also a best amazon ppc agency will clear explain their strategy and compared your product to those of the competitors and provide tips on how they are going to increase the sales, optimize the listing, budget required and all kind of necessary information which is required to succeed. Thus you can choose wisely an amazon agency which will help your brand to grow its sales.http://www.amazingmarketingco.com/amazon-ppc-agency
Rajabola Email Homepage
2022-3-22 19:04
I am very interested in the information you have provided. Please visit the my website http://23.254.164.126/
分页: 7/10 第一页 上页 2 3 4 5 6 7 8 9 10 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]