I got few Linux and FreeBSD machines behind NAT router. And I run vsftpd server on all of them. The problem is to access ftp servers from outside, localy works fine.
My ip is static and I set router to forward ports to vsftps servers, also added passive ports forwarding for each server. When I try to connect from outside, connection stucking on "LIST".
Vsftpd config:
If pasv_address= commented I see this in FileZilla log:
My ip is static and I set router to forward ports to vsftps servers, also added passive ports forwarding for each server. When I try to connect from outside, connection stucking on "LIST".
Code:
Status: Connecting to 93.XX.XXX.XXX:210...
Status: Connection established, waiting for welcome message...
Response: 220 VSFTP Debian Server
Command: USER snich
Response: 331 Please specify the password.
Command: PASS ********
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/home/snich"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (93,XX,XXX,XXX,4,104).
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
Vsftpd config:
Code:
# Standalone mode
listen=YES
listen_port=210
max_clients=200
max_per_ip=20
# Message info at login
ftpd_banner=VSFTP Debian Server
# Access rights
anonymous_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
# Security
anon_world_readable_only=YES
connect_from_port_20=NO
hide_ids=YES
#Passive settings
port_promiscuous=YES
pasv_addr_resolve=NO
pasv_address=93.XX.XXX.XXX
pasv_min_port=1100
pasv_max_port=1150
# Features
xferlog_enable=YES
ls_recurse_enable=NO
ascii_download_enable=NO
async_abor_enable=YES
# Performance
one_process_model=NO
idle_session_timeout=120
data_connection_timeout=300
accept_timeout=60
connect_timeout=60
anon_max_rate=500000
Code:
Server sent passive reply with unroutable address. Using server address instead