Create a personal FTP server with peanut shell + IIS

Source: Internet
Author: User
Tags ftp site

Many people use third-party software to build FTP and WEB servers, which means IIS is complicated and difficult to use. it may be said that IIS is not secure. This is because you do not pay attention to your security policy settings, and then others will delete the files in the FTP space. However, once you are familiar with it, there will be nothing left, I still like II!

Here I mainly talk about building FTP on the 2000 Personal Edition. This is a little different from the service version system settings, so you should pay special attention to the IIS settings. If you do not set it properly, it may lead to errors during user access, so that you cannot enter your FTP space.

If you use a personal machine to build FTP, you have to consider how to make it possible for online users to find you. If we have a fixed IP address on our own, it would be much easier to do so without dynamic domain name resolution software, however, most people are not fixed IP addresses, and you cannot tell others about your changed IP addresses every time you go online. This is a lot of trouble! So it is better to use software!

Therefore, here we will first introduce a free dynamic domain name resolution software peanut shell.

I think many people know it. If I do not know how to search for it on the Internet, many people now use the peanut shells to make the bots automatically go online. As long as the shells are on, the bots will find you, there is no need to worry about the loss of bots Caused by Space stop. Well, we won't talk about this here. We're just leaving the question. Set up FTP.

1. settings of the peanut shell client:
Peanut shell is a powerful function, the use of simple dynamic domain name resolution service software, no one can go to the peanut shell site after the next http://old.oray.net peanut shell client installed, it is started with the system by default, of course, you can also set up, after the peanut shell starts up, We will log on to the peanut shell website, go to this website http://old.oray.net/default.aspto apply for a peanut photo, then use your peanut shells later!
After logging on, you can see that one option is to apply for a free Domain Name! Click Apply for a domain name and go to the peanut website, where you can set a name that you like on your own, but make sure that others do not register. suppose we have successfully applied for the domain name 7747.vicp.net and activated it on the peanut shell website. It takes effect immediately after activation.
At this time, we can ping this domain name and find that it is the IP address of our own machine. Here we have completed the resolution of the Dynamic IP address and fixed domain name.

2. Set IIS for the 2000 Personal Edition Operating System
If IIS is not installed in our system, after IIS (Internet Information Service) is installed in "add or delete programs" in "Control Panel, start IIS in the control panel management tool. After starting IIS, You can see three items, default FTP site, default WEB site, and default SMTP virtual server.
FTP is enabled by default after it is enabled. By default, FTP has been created, but there is no directory in it. Therefore, right-click the "Default FTP site" node in IIS and select the "attribute" command.
Set the IP address and port in the FTP site. Then go to the security account. Here, we need to set permissions. Generally, we do not want to allow anonymous connections. If you are willing to allow anonymous access, you can choose. If you do not want to be anonymous, you will not choose.
Let's take a look at the following. Here we should pay attention to the difference between this interface and the server version operating systems (2000 server and 2003), that is, the FTP site operator here, in the service version system, you can add authorized users at will. The following process does not exist after it is easier to add users. However, it is not allowed in the Personal Edition system. Therefore, the following process is required.
So here, in "Management Tools" on the "control panel", in "Computer Management", open "local users and groups" and add a new group named FTP. Then add a new user to the "local user" (add it as needed). Assume that the user and password are both 7747, then open the user attributes and add the user to the group FTP. The user is added.
Next, open FTP in IIS to view the messages in properties. This is what is displayed when someone else accesses your FTP space, there are three input boxes: "Welcome", "exit", and "Maximum number of connections", which respectively indicate that the FTP server will suspend messages when others log on and exit. You can set them as needed. The maximum number of connections is the maximum number of hosts connecting to the local FTP at the same time.
Next, set the main directory. The default path here is "C: InetpubFtproot". Here we change it to the directory of an FTP shared file, find a disk in NTFS format as an FTP shared file. Because the NTFS format can control the user's permission to access files. False is in the "E: 7747" folder. Do not select write as the permission.
The directory security option is unavailable in the Personal Edition operating system and can only be used in the Server Edition. This is unnecessary, because we are now setting the Personal Edition. After these settings are complete, create a new virtual directory in the default FTP site. Pay special attention here.
One point is that your alias and directory name must be the same. Otherwise, when other users log on, they will have no permission to access some FTP space.
Then, the user's access to the FTP Space Directory is controlled. Here, you must be careful when setting the file. If you do not set the file properly, you may be given full control permissions, which may cause others to delete files in the FTP space.
Go to the "E: 7747" folder, open the 7747 file attribute, and select security options. Add User Groups and add the new group FTP. After adding the group FTP, 7747 of the users in the group will inherit the permissions of the group. Then, when you set its permissions, you only set read and list, and do not select anything else.

3. Port ing of Intranet users
If you are an intranet user, this process will be available. You cannot be found when you log on to FTP. It is unnecessary for users directly on the Internet. Map port 21 on the Internet to the local machine. You can do this by ing. However, port 21 is recommended, so that you do not have to add a port number after logon.

Iv. Test the FTP server
Open the browser, enter FTP: // 192.168.1.X in it, and enter the user and password we just created: 7747 to access the browser.
When accessing the internet, enter: ftp://7747.vicp.net opened and enter the user and password we just created: 7747 to see the FTP shared folder. Of course, this address can also be opened in the intranet.

A complete FTP server setup process is complete, and it is not difficult to see. In fact, I don't think it is necessary to download third-party software such as sevr-u to set up FTP. It is not more convenient to use the built-in system.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.