'pasv_min_port' and 'pasv_max_port' directives of vsftpd not working to limit the port ranges

Solution Verified - Updated -

Issue

  • vsftpd 'pasv_min_port' and 'pasv_max_port' not working to limit the port range
  • Below port ranges are configured on vsftpd server, but the ftp connection uses a port not in the specified range.
/etc/vsftpd.conf:
pasv_min_port=10000
pasv_max_port=20000
  • netstat output shows the connection from 55776 port, which is not in the range.
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN
tcp        0      0 192.4.53.228:21             128.96.130.76:55776         ESTABLISHED

Environment

  • Red Hat Enterprise Linux 5/6
  • vsftpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content