Vsftpd: why the passive port range is not followed?
I configure vsftpd for passive mode
Code:
listen=YES Look output of ss during transfer Code:
tcp ESTAB 0 0 192.168.0.2:33150 192.168.0.2:21 users:(("ncftp",pid=14411,fd=4)) timer:(keepalive,119min,0) uid:1000 ino:236010 sk:400b cgroup:unreachable:1 <-> Why vsftpd use random ports? I have tried Code:
listen_ipv6=NO This is the complete configuration, actually Code:
anonymous_enable=YES |
In your example the client (ncftp) starts an active ftp connection and it uses random high source ports to initiate the connections. The random port numbers are at the client end and 20 and 21 at the server end.
But you can always 'set passive on' at the ncftp prompt to use a passive data connection. 'pasv_enable=YES' is the default for vsftpd, and it only allows passive, it does not enforce it. The client can initiate either passive or active data connection. |
Thanks, was client problem
|
All times are GMT -5. The time now is 07:48 PM. |