当前位置:网站首页>Open vsftpd port under iptables firewall
Open vsftpd port under iptables firewall
2022-07-03 17:04:00 【Brother Xing plays with the clouds】
In the open vsftpd port Later, I found that I can log in with the client tool , But I can't browse files and create new files . At this time, I looked ftp The agreement , Find out ftp There are active mode and passive mode . Open at the service end 21 The port allows the client to enter , There is no exit port , Open the port on the server , Finally, add ftp The corresponding module , The whole operation is a little complicated , Write it down today to deepen your impression in the future .
1. install vsftpd Software
yum install vsftpd -y
2. Open anonymous access and passive mode port
vim /etc/vsftpd/vsftpd.conf
anonymous_enable=YES -- Enable anonymous user access
anon_upload_enable=YES -- Anonymous user names can upload files
anon_mkdir_write_enable=YES -- Anonymous users can create files anon_other_write_enable=YES -- Anonymous users can rename files
pasv_enable=YES -- Turn on passive mode pasv_min_port=30000 -- Passive mode minimum port pasv_max_port=31000 -- Passive mode maximum port
3. load ftp modular
vim /etc/modprobe.d/vsftpd.conf
alias ip_conntrack ip_conntrack_ftp ip_nat_ftp -- load ftp modular
vim /etc/rc.local
/sbin/modprobe ip_conntract -- Boot load module /sbin/modprobe ip_conntrack_ftp /sbin/modprobe ip_nat_ftp
4. Port filtering
vim /etc/sysconfig/iptables
-A INPUT -p tcp -m multiport --dport 20,21 -m state --state NEW -j ACCEPT -- Turn on 20,21 port -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT -- Turn on 21 Active port -A INPUT -p tcp --dport 30000:31000 -j ACCEPT -- Open the passive port
5. Login test
边栏推荐
- Life is still confused? Maybe these subscription numbers have the answers you need!
- 远程办公之如何推进跨部门项目协作 | 社区征文
- Difference between JSON and bson
- CC2530 common registers for timer 1
- 29:第三章:开发通行证服务:12:开发【获得用户账户信息,接口】;(使用VO类包装查到的数据,以符合接口对返回数据的要求)(在多处都会用到的逻辑,在Controller中可以把其抽成一个共用方法)
- How to delete a specific line from a text file using the SED command?
- Redis:关于列表List类型数据的操作命令
- Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard
- [mathematical logic] equivalent calculus and reasoning calculus of propositional logic (propositional logic | equivalent calculus | principal conjunctive (disjunctive) paradigm | reasoning calculus)**
- Apache服务挂起Asynchronous AcceptEx failed.
猜你喜欢
Leetcode: lucky number in matrix
大变局!全国房价,跌破万元大关
Shentong express expects an annual loss of nearly 1billion
The way of wisdom (unity of knowledge and action)
MySQL Basics
智慧之道(知行合一)
ANOVA example
网络安全web渗透技术
Arduino esp32: overall framework of lvgl project (I)
Thread pool: the most common and error prone component of business code
随机推荐
[combinatorial mathematics] counting model, common combinatorial numbers and combinatorial identities**
The word backspace key cannot delete the selected text, so you can only press Delete
[combinatorics] recursive equation (example 1 of recursive equation | list recursive equation)
免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据
Depth first search of graph
Overview of satellite navigation system
基于主机的入侵系统IDS
C language string practice
How to judge the region of an IP through C?
[mathematical logic] equivalent calculus and reasoning calculus of propositional logic (propositional logic | equivalent calculus | principal conjunctive (disjunctive) paradigm | reasoning calculus)**
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
What is the difference between 14Cr1MoR container plate and 14Cr1MoR (H)? Chemical composition and performance analysis of 14Cr1MoR
How to allow remote connection to MySQL server on Linux system?
智慧之道(知行合一)
One brush 142 monotone stack next larger element II (m)
The most complete postman interface test tutorial in the whole network, API interface test
匯編實例解析--實模式下屏幕顯示
New library online | cnopendata China bird watching record data
Meituan side: why does thread crash not cause JVM crash
NLP four paradigms: paradigm 1: fully supervised learning in the era of non neural networks (Feature Engineering); Paradigm 2: fully supervised learning based on neural network (Architecture Engineeri