[root@localhost ~]# ftp localhost Trying ::1... ftp: connect to address ::1拒绝连接 Trying 127.0.0.1... Connected to localhost (127.0.0.1). 220 (vsFTPd 2.2.2) Name (localhost:root): ftp 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (127,0,0,1,177,184). 150 Here comes the directory listing. drwxr-xr-x 2 0 0 4096 Mar 22 2017 pub 226 Directory send OK. ftp>
-A INPUT -p tcp -m state --state NEW -m tcp --dport 30000:30999 -j ACCEPT -A INPUT -p udp -m state --state NEW -m udp --dport 6069 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 6069 -j ACCEPT
12.4 重启服务
1 2
# service iptables restart # service vsftpd restart
# cp -a vsftpd.pem /etc/vsftpd/ # ll /etc/vsftpd/vsftpd.pem
证书配置解析:
1 2 3 4 5 6 7
Country Name (2 letter code) [XX]:CN 国家名称(2个字母代码)[XX]:CN State or Province Name (full name) []:CHINA 国家或省名(全称)[]:中国 Locality Name (eg, city) [Default City]:CHINA 地名(如城市)[默认城市]:中国 Organization Name (eg, company) [Default Company Ltd]:ORG 组织名称(如公司)[默认公司有限公司]:ORG Organizational Unit Name (eg, section) []:ORG 组织单元名称(例如,节)[]:ORG Common Name (eg, your name or your server's hostname) []:NAME 常用名称(例如,您的名称或服务器的主机名)[]:Name Email Address []:EMAIL@163.com 电子邮件地址[]:EMAIL@163.com