What firewall port does vsftp virtual user settings need to open?

Source: Internet
Author: User
What firewall port does vsftp virtual user settings need to open? -- Linux general technology-Linux technology and application information. For details, refer to the following section. [I = s] This post was last edited by szfhx

When I use vsftp as a virtual user, the user cannot log on to the firewall. If the firewall is disabled, the user can log on,
In addition to enabling ftp port 20, tcp 21, and tcp, what firewall ports do vsftp virtual user settings need to enable?
I can't open PORT 20 or PORT 21 in PORT mode. Is it necessary to open PORT db_load pam?



Appendix: My vsftp virtual user settings:
I. Install vsftp and db4
Sudo apt-get install vsftpd
Sudo apt-get install db4.6-util
II. Create a virtual user password Library File
Sudo mkdir/etc/vsftpd
The new user password file named logins.txt,
Sudo gedit/etc/vsftpd/logins.txt
The username of an odd behavior. The password of User1 is 123456, and that of User2 is 12345.
User1
123456
User2
12345
Admin
Admin

3. Generate the authentication File For vsftpd

Use the db_load command to generate the authentication file:

Db4.6 _ load-T-t hash-f/etc/vsftpd/logins.txt/etc/vsftpd/vsftpd_login.db
Set the vsftpd_login.db permission to read and write only to the root account, that is, 600
Chmod 600/etc/vsftpd/vsftpd_login.db
4. Create the PAM Configuration File required by the virtual user

Create vsftpd. vu in the/etc/pam. d directory as follows:
Sudo gedit/etc/pam. d/vsftpd. vu

Auth required/lib/security/pam_userdb.so db =/etc/vsftpd/vsftpd_login
Account required/lib/security/pam_userdb.so db =/etc/vsftpd/vsftpd_login
# This tells PAM to use a new database to verify the user. Copy this PAM file to the PAM Directory, which is usually/etc/pam. d.
5. Create the system users and home directories required by virtual users
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.