Name

ftp_passive

Synopsis

Squid normally uses FTP’s so-called passive mode for file transfers. This means that the FTP server creates a TCP socket for data transfer and waits for the client to connect. Passive mode works much better through most Internet firewalls. The alternative is to have the FTP client (Squid in this case) create a TCP socket and wait for a connection from the server. Most likely, you’ll never have problems with FTP passive mode. However, you can force nonpassive operation by turning off this directive.

Syntax

ftp_passive on|off

Default

ftp_passive on

Example

ftp_passive off

Related

ftp_user, ftp_list_width, ftp_sanitycheck

Get Squid: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.