URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID12
Нить номер: 5722
[ Назад ]

Исходное сообщение
"ftp passive off + squid"

Отправлено andrey , 11-Сен-08 09:49 
Доброго времени суток.
Имеем в squid.conf:
...
ftp_user anonymous@
ftp_passive off
ftp_sanitycheck off
...
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 20          # ftp
acl Safe_ports port 443         # https

acl CONNECT method CONNECT

http_access allow level2ip
http_access allow level1ip Safe_ports
http_access deny !Safe_ports
http_access deny CONNECT !Safe_ports
http_access deny all

Получаем при использовании:
Squid sent the following FTP command:
    NLST
and then received this reply
    Use PORT or PASV first.

Где я наломал дров?


Содержание

Сообщения в этом обсуждении
"ftp passive off + squid"
Отправлено andrey , 12-Сен-08 10:52 
Спасибо всем. Работает так:
acl FTP proto FTP
always_direst allow FTP