PDA

View Full Version : VPN or FTP server bằng WinXP ....


fpt
05-26-2007, 01:23 PM
Mấy bác cho hỏi có bác nào đã cấu hình FTP (/VPN) server trên WinXp chưa vậy?
Nếu làm được làm ơn chỉ giúp, vì em cần chép dữ liệu từ máy ở cty về nhà hoặc từ nhà chép lên máy cty. (cả 2 máy này đều xài XP)
Mong mấy bác chỉ dùm cách config hoặc chỉ cách nào đó cũng đc miễn sao là truyền data được là ok rùi ...
Thanks!

hanoi
05-26-2007, 04:09 PM
xem qua cách setup VPN server trên XP theo các bước sau nhé
The Windows XP Professional remote access server capabilities are very similar to those available in Windows 2000 Professional. A Windows XP computer can accept a single incoming connection on each interface that can accept a connection. For example, a Windows XP machine can accept incoming connections on each of the following interfaces:
Dial-up modem serial interface
Infrared interface
Parallel port interface
VPN interface
While it�s unlikely, a Windows XP Professional machine with the above configuration could conceivably accept up to four simultaneous RAS connections. However, the typical configuration consists of a single RAS client connection, either through a dial-up modem interface or a VPN interface.
Create an incoming connection with the New Connection Wizard
Like Windows 2000 Professional, Windows XP Professional includes a New Connection Wizard. I�ll show you how to use the New Connection Wizard to create the new VPN server interface. In this example, I�ll assume the Windows XP Professional machine is not a member of a Windows NT 4.0 or Windows 2000 domain. The machine has two network interface cards; one is directly connected to the Internet, and the other is connected to the internal LAN. In addition, the external interface of the machine is configured for Internet Connection Sharing (ICS). While ICS changes the IP address of the LAN interface of the ICS computer to 192.168.0.1 through 16, it's easy to change the IP address to one that fits the existing network environment. The IP address of the LAN interface of the ICS computer was changed to 10.0.0.1 through 24 to fix the preexisting network configuration.
How to create the VPN server interface, step-by-step
1. Click Start | Control Panel.
2. In the Control Panel, open the Network Connections applet.
3. In the Network Connections window (see Figure A), open the New Connection Wizard.
Figure A
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figa.gif
The Network Connections window
4. On the Welcome To The New Connection Wizard page, click Next.
5. On the Network Connection Type page (see Figure B), select the Set Up An Advanced Connection option.
Figure B
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figb.gif
On the Advanced Connection Options page (see Figure C), select the Accept Incoming Connections option and click Next.
Figure C
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figc.gif
Configuring XP to accept incoming connections
7. On the Devices For Incoming Connections page (see Figure D), you can select optional devices on which you want to accept incoming connections.
Figure D
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figd.gif
Note that you are not presented with any of the network interfaces on the computer.
8. On the Incoming Virtual Private Network (VPN) Connection page (see Figure E), select the Allow Virtual Private Connections option and click Next.
Figure E
http://www.asia.cnet.com/i/it/2002/na/vpnserver_fige.gif
9. On the User Permissions page (see Figure F), select the users that are allowed to make incoming VPN connections. Click Next.
Figure F
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figf.gif
Any user that isn�t selected won�t be able to initiate an incoming connection.
10. On the Networking Software page (see Figure G), click on the Internet Protocol (TCP/IP) entry and click the Properties button.
Figure G
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figg.gif
Configuring TCP/IP properties
11. In the Incoming TCP/IP Properties dialog box (see Figure H), place a check mark in the Allow Callers To Access My Local Area Network check box. This will allow VPN callers to connect to other computers on the LAN. If this check box isn�t selected, VPN callers will only be able to connect to resources on the Windows XP VPN server itself. Click OK to return to the Networking Software page and then click Next.
Figure H
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figh.gif
Granting LAN access to callers
12. On the Completing The New Connection Wizard page, click Finish to create the connection.
After the Incoming Connection is complete, right-click on the connection in the Network Connections window and select the Properties command (see Figure I).
Figure I
http://www.asia.cnet.com/i/it/2002/na/vpnserver_figi.gif
Accessing the properties of the VPN server link

hanoi
05-26-2007, 04:10 PM
Setting up the VPN client

Now that the Server end of the VPN is set up, you need to create a vpn connection on your laptop to use whenever you are using an insecure wireless network.
Firstly bring up the control panel by clicking on Start -> Control Panel. If the control panel is in Classic View as shown below, then click in Category View to see the simplified panel. http://wireless.gumph.org/content/6/4/012-howto-xp-pptp-vpn-server-01.png
From the Category View click on </I>Network and Internet Connections</I>
http://wireless.gumph.org/content/6/4/012-howto-xp-pptp-vpn-server-02.png
Now click on Network Connections from the or pick a control panel icon section
http://wireless.gumph.org/content/6/4/012-howto-xp-pptp-vpn-server-03.png
Select the Create a new connection from the menu on the left of the screen
http://wireless.gumph.org/content/6/4/012-howto-xp-pptp-vpn-server-04.png
You should now see the New Connection Wizard click next to start.
http://wireless.gumph.org/content/6/4/012-howto-xp-pptp-vpn-server-06.png
Select Connect to the workplace at my work and click next to continue.
http://wireless.gumph.org/content/6/4/013-howto-xp-pptp-vpn-client-07.png
Select Virtual Private Network as the connection type and click next to continue.
http://wireless.gumph.org/content/6/4/013-howto-xp-pptp-vpn-client-08.png
Give the new VPN connection a name and click next to continue.
http://wireless.gumph.org/content/6/4/013-howto-xp-pptp-vpn-client-09.png
If you already have a dialup or VPN connection setup on your laptop you will now be asked if you want to always dial one of these existing connections before you make the VPN connection. Because we are going to be using a wireless link to get internet connectivity select Do not dial the initial connection and click next to continue. If you don't already have a dialup or VPN connection setup then this screen will not appear, and you will go straight to the next screen.
http://wireless.gumph.org/content/6/4/013-howto-xp-pptp-vpn-client-10.png
Now enter either the hostname your ISP has given you, or the IP address they've given you and click next to continue. If you don't have a static IP address, then it may be easier to use Dynamic DNS (http://www.dyndns.com/services/dns/dyndns/) such as from dyndns.com to give you a static hostname for your dynamic address.
http://wireless.gumph.org/content/6/4/013-howto-xp-pptp-vpn-client-11.png
Now click finish and your new VPN connection will be ready to use.

fpt
05-27-2007, 12:46 PM
thanks Hanoi nhiu nhe, de minh la thu xem sao
Thanks Hanoi nhìu nhé, để mình làm thử xem sao


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lần sau nhớ gõ dấu nhé bạn !!

daodaohoas
05-28-2007, 09:43 AM
Câu hỏi hay và bài trả lời cũng tuyệt! Thanks a lot cả hai!

amd_me
05-29-2007, 10:07 PM
mình củng đang cần , thanks nhiều

Oriole
06-05-2007, 06:50 PM
một cách khác là sử dụng ftp server. Bạn có thể xây dựng một ftp server ở nhà, đăng ký một tên miền động (dyndns.org) chẳng hạn, sử dụng một chương trình update IP động (như dynamic update). Như vậy là bạn đã có một ftp server ở nhà để có thể sao chép dữ liệu thỏa mái rồi :D

evilbaby
06-23-2007, 12:23 PM
nếu sử dụng ở mạng WAN thì phải mở Port nào vậy các bạn ?

blaster
06-23-2007, 06:50 PM
You need to open UDP port no. 500 in case if you are using IPSec/IKE as the protocol.
Otherwise you need to open TCP port no. 1723 in case you are using PPTP. For L2TP, it is 1701.