Код: Выделить всё
#uname -a
FreeBSD z.z.ru 8.3-STABLE FreeBSD 8.3-STABLE
#proftpd -v
ProFTPD Version 1.3.4a
#cat /usr/local/etc/proftpd.conf
ServerName "Our FTP server"
ServerType standalone
DefaultServer on
ScoreboardFile /var/run/proftpd/proftpd.scoreboard
ServerIdent on "You are welcome :)"
Port 21
PassivePorts 60000 65000
Umask 022
MaxInstances 30
CommandBufferSize 512
User nobody
Group nogroup
AllowOverwrite on
AllowStoreRestart on
DefaultRoot ~
ListOptions "-la"
DefaultRoot ~
SyslogLevel notice
TransferLog /var/log/ftp/tranfer.log
SystemLog /var/log/ftp/error.log
ExtendedLog /var/log/ftp/read.log read
ExtendedLog /var/log/ftp/write.log write
UseEncoding UTF-8 UTF-8
Код: Выделить всё
#sysctl net.inet.ip.portrange.first
10000
до
Код: Выделить всё
#net.inet.ip.portrange.last
65535
Код: Выделить всё
PassivePorts 60000 65000
P.S. Конфиг IPFW не привожу - там всё разрешено, да и соединения проходят, только на ненужный порт, например
Код: Выделить всё
#netstat -an | grep 21
tcp4 0 78 x.x.x.x.21 y.y.y.y.57537 ESTABLISHED
tcp4 0 0 x.x.x.x.21 *.* LISTEN