ipsec static add filterlist name= deny list
REM add filter to IP filter list (allow Internet access)
netsh ipsec static add filter filterlist= allow List srcaddr=me dstaddr=any description=dns access protocol=udp mirrored=yes dstport= 53
REM add filter to IP filter list (no one else to access)
netsh ipsec static add filter filterlist= deny list Srcaddr=any dstaddr=me description= others to me any access protocol=udp Mirrored=yes
REM Add filter action
netsh ipsec static add filteraction name= ca
After logging on with an anonymous user, upload the file and ask another anonymous user to download the file. The result shows that the permission is insufficient.
Changed anon_umask = 022. And cannot be downloaded. So you can add anon_other_write_enable = yes. This row adds write permissions for anonymous users. Users
For more information about FTP servers, see the previous blog: http://yttitan.blog.51cto.com/70821/1178663.It should be emphasized that the file server we previously implemented with Samba can only be used within the lan. If users on the internet need to download or upload files, most of them have to use the FTP server.The FTP function in RHEL6 is provided by a software named vsftpd. In the Name, vs is short for very secure. Therefore, vsftpd features
FTP Server 192.168.62.2First step: vsftpd configuration file changes[[email protected]vsftpd]# Cat vsftpd.conf# Example Config file/etc/vsftpd/vsftpd.conf## The default compiled in Settings is fairly paranoid. This sample file# loosens things up a bit, to make the FTP daemon more usable.# vsftpd.conf.5 See the compiled in defaults.## READ This:this Example file is a exhaustive list of vsftpd options.# Please read the VSFTPD.CONF.5 manual page to get a full idea of vsftpd ' s# capabilities.## All
ObjectiveSet up an FTP server for students to upload jobs to use.Requirements1. Students can access the FTP server directly without having to log in;2. Can only upload files, can not create folders, rename, delete, etc.;3. Cannot download the file (anti-plagiarism);4. Cannot view files online.Configuration#创建upload目录mkdir/var/ftp/upload #改变属主chownftp/var/ftp/upload# Replace the original contents of the/etc/vsftpd/vsftpd.conf file with the following :l
This is verified under the CENTOS7 version system.In general, anonymous users of the upload and download, the user is used by the FTP user permissions, to upload files, you need to FTP users have W permissions to the file, to download, you need the FTP user has r permission to the file.Steps
Modify configuration file vsftpd.conf (configure as needed)# vim/etc
Implementation of anonymous upload/download;
Anonymous upload is actually relatively simple. First, we need to modify it.Vsftpd. Conf. The file is located in the/etc/directory, which may be/etc/vsftpd. conf or/etc/vsftpd. conf. Your system environment shall prevail;
First, we need to change vsftpd. conf to make sure there are the following lines;
Anonymous_enable
1. Configure the/etc//vsftpd/vsftpd.conf file as follows: Open the file, change the following options, if the file does not have this option, you need to manually write this option Write_enable=yes Anonymous_enable=yes Anon_other_write_enable=yes Anon_mkdir_write_enable=yes Anon_upload_enable=yes 2. The above configuration is only to complete the vsftp.conf ftp allow anonymous upload settings, but also for the corresponding FTP upload folder settings:
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.