Friday, January 28, 2011

Windows 7/Vista 设置自己的VPN代理服务器

第一步:在开始菜单里的网络上点右键点属性,点击管理网络链接
  1. Open Network Connections by typing net in the Start and select View network connections or ncps.cpl. You may also Open the Network Connections from Open Network and Sharing Center>Change adapter settings.


第二步:然后在菜单栏(如果没有看到菜单栏,请按下键盘上的Alt按键,即可显示菜单栏)点击文件,点新建传入连接(VPN代理服务器的关键就在这里了!)
2. Press Alt and click File, and then click New Incoming Connection.



第三步:选择允许使用VPN连接到本机的用户,如果用户还未创建,请点击添加用户,选择用户连接的方式,我这里出现的只有一项通过Internet,如果你的显示多项,请选择正确的方式,或者一一尝试,接着设置网络参数,如果对方连接后可以使用本地网络的DHCP服务器,那么可以忽略本操作,如果本地网络没有DHCP服务器,必须就必须设置一下,请点击Internet 协议版本 4(TCP/IP),点属性按钮,选择指定IP地址,比如我的IP是192.168.1开头的,那么这里设置一个没有被使用的IP段即可,比如从192.168.1.200到192.168.1.210。设置后请按确定,然后点击允许访问,到此,Windows Vista架设VPN服务器(VPN代理服务器)的方法就结束了,如果没有猜错,此文章应该也能用于Windows 7。
最后需要备注:如果你的电脑开启了防火墙,必须开启1723端口方可让外部用户连接进来!我这里只讲解Windows Vista自带防火墙的设置,其它的防火墙请自行联系官方
开始菜单,点控制面板,点Windows 防火墙,点更改设置,点例外选项卡,点添加端口,名称可自行设置,我这里输入的是VPN Server,端口号输入1723然后点确定,即可完成设置
3. In Who may connect to this computer, add or select the users you will allow them to access your computer.

4.  In How will people connect screen, check Through the Internet if this is only conenction.


5. Select type of network software and click Allow access.


6. Finish the incoming VPN setup and it is ready to access.

设置Win7响应ping命令-Enable Windows 7 Ping Response in Firewall

1) Go to Windows Firewall in Control panel
Enable Windows 7 Ping in Firewall
You can see, Windows Firewall status is On. Click on Advanced settings in left side as mentioned above.
2) Select Inbound Rule, Right clink on it and select New Rule…
Enable Windows 7 Ping in Firewall
3) Select Custom (Custom Rule) at last and press Next.
4) Leave All programs and go to Next.
Enable Windows 7 Ping in Firewall
5) Click on Protocol type and select ICMP4 as shown below. ICMP4 is the protocol used in ping command when your network is communicating with IPv4.
Enable Windows 7 Ping
6) Since we are going to apply this rule for any IP, means responds to any IP addresses coming with echo request, select ‘Any IP addresses’ in next screen. You can add specific IP addresses also, if you want your windows 7 computer to respond to them only for ICMP echo request (ping )
Enable Windows 7 Ping
7) Allow the connection in next screen, press Next.
8.) Keep the all three check boxes checked in the next screen, to apply this rule any type of network you connected.
9) Give a name to this rule. This name will be showing under Inbound Rules in Windows Firewall. In future you can delete the rule by this name.
Enable Windows 7 Ping in Firewall
Click Finish.