Proftpd
Настраиваю данную программу. По локалке пускает, из вне (инета) не хочет. На клиенте говорит что доступ закрыт к ftp - тоесть я понимаю что если бы мешал какой нибудь файервол то он ругался бы по другому. Хотя он отключен
Система freebsd 6.2 вот конфиг proftpd.conf # # To have more informations about Proftpd configuration # look at : http://www.proftpd.org/ # # This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName "ProFTPD server" ServerType inetd #ServerType standalone DefaultServer on ScoreboardFile /var/run/proftpd.scoreboard # Port 21 is the standard FTP port. Port 21 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd). MaxInstances 30 # Set the user and group under which the server will run. User Admin Group wheel # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot / wheel DefaultRoot /home/client/ client # Normally, we want files to be overwriteable. AllowOverwrite on UseReverseDNS off IdentLookups off # Bar use of SITE CHMOD by default <Limit SITE_CHMOD> DenyAll </Limit> # A basic anonymous configuration, no upload directories. If you do not # want anonymous users, simply delete this entire <Anonymous> section. ######################################################################### # # # Uncomment lines with only one # to allow basic anonymous access # # # ######################################################################### <Anonymous /home/anonftp> User anonftp Group nogroup ### We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous anonftp ### Limit the maximum number of anonymous logins MaxClients 25 ### We want 'welcome.msg' displayed at login, and '.message' displayed ### in each newly chdired directory. DisplayLogin /etc/ftp_login.msg #5 DisplayConnect /etc/ftp_connect.msg ### Limit WRITE everywhere in the anonymous chroot # <Limit WRITE> # DenyAll # </Limit> </Anonymous> и еще вопрос. Почему то когда я захожу под Admin по локалке он пускает меня обсолютно в любой каталог. Заранее все очень благодарен... |
И еще такой. Чтоб зайти на него по локалке я набираю ftp://192.168.0.249
в логах у меня все отображается. Инет приходит к FreeBSD через модем и другую сетевуху(ip 192.168.1.3). Модем настроен как роутер. У него свой ип адрес. Например 85.95.181.135 Но ftp работает только по локалке. если я набираю через инет с другого компа ftp://85.95.181.135 ни чего не происходит... помогите пожайлуста... |
А я все решил сам. Нужно было на модеме прописать чтобы он 21 порт заворачивал на мой ip
|
Время: 19:50. |
Время: 19:50.
© OSzone.net 2001-