Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish)
  • Search

Protftpd - problem z MLSD

Witajcie na polskim forum użytkowników Gentoo!
Opis instalacji i pracy z Gentoo. Pozostała dokumentacja Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Author
Message
najkon
n00b
n00b
Posts: 13
Joined: Sun Aug 14, 2016 9:15 pm

Protftpd - problem z MLSD

  • Quote

Post by najkon » Sat Jul 08, 2017 6:41 pm

Witam,

Wydaje się niby to takie proste, zainstalować serwer ftp wybierając Proftpd z podstawową konfiguracją.
Niestety wszystkie połączenia stają mi na próbie dogadania po MLSD a później po PASV

może ktoś pomóc go ugryźć, aby zaczął działać jak należy? :(

mój konfig
### /etc/proftpd/proftpd.conf

ServerName "ProFTPD Server"
ServerType standalone
DefaultServer on
MultilineRFC2228 on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp
UseIPv6 on
UseReverseDNS off

PassivePorts 57000 58000

# Listen on the standard FTP port 21.
Port 21

# New directories and files should not be group or 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.
MaxInstances 30

# The server will run under ftp/ftp.
User ftp
Group ftp

# Every FTP sessions is "jailed" into the user's home directory.
DefaultRoot ~ !ftp-special

# Generally files are overwritable.
AllowOverwrite on

# Disallow the use of the SITE CHMOD command.
<Limit SITE_CHMOD>
DenyAll
</Limit>

TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log

<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>

<IfModule mod_facts.c>
FactsAdvertise off
</IfModule>
wersja : ProFTPD Version 1.3.5e

załadowane moduły
/usr/sbin/proftpd -l
Compiled-in modules:
mod_core.c
mod_xfer.c
mod_rlimit.c
mod_auth_unix.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_delay.c
mod_facts.c
mod_dso.c
mod_auth_pam.c
mod_facl.c
mod_case.c
mod_sql.c
mod_sql_passwd.c
mod_sql_mysql.c
mod_sftp.c
mod_sftp_pam.c
mod_sftp_sql.c
mod_tls.c
mod_tls_shmcache.c
mod_wrap2.c
mod_wrap2_file.c
mod_wrap2_sql.c
mod_cap.c
mod_lang.c
emerge proftpd -pv
[ebuild R ] net-ftp/proftpd-1.3.5e::gentoo USE="acl caps case dso ipv6 mysql ncurses nls pam pcre sftp ssl tcpd -authfile -ban -clamav -copy -ctrls -deflate -diskuse -doc -dynmasq -exec -ident -ifsession -ifversion -kerberos -ldap (-libressl) -log_forensic -memcache -msg -postgres -qos -radius -ratio -readme -rewrite (-selinux) -shaper -sitemisc -snmp -softquota -sqlite {-test} -trace -unique_id -vroot -xinetd" LINGUAS="-bg_BG -en_US -fr_FR -it_IT -ja_JP -ko_KR -ru_RU -zh_CN -zh_TW" 0 KiB
reguły iptables
-A INPUT -p tcp -m multiport --dports 57000:58000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
Top
Jacekalex
Guru
Guru
User avatar
Posts: 554
Joined: Thu Sep 17, 2009 5:18 am

  • Quote

Post by Jacekalex » Mon Jul 10, 2017 10:50 pm

Próbowałeś zamiast tej reguły:

Code: Select all

-A INPUT -p tcp -m multiport --dports 57000:58000 -j ACCEPT 
użyć .nf_conntrack_helper

https://unix.stackexchange.com/question ... coming-ftp
Top
najkon
n00b
n00b
Posts: 13
Joined: Sun Aug 14, 2016 9:15 pm

  • Quote

Post by najkon » Tue Jul 11, 2017 4:29 pm

Jacekalex wrote:Próbowałeś zamiast tej reguły:

Code: Select all

-A INPUT -p tcp -m multiport --dports 57000:58000 -j ACCEPT 
użyć .nf_conntrack_helper

https://unix.stackexchange.com/question ... coming-ftp
Cenna uwaga, nie mniej to nie rozwiązuje problemu.
Dlaczego w domyślnej konfiguracji ten ciołek (proftpd) nie rozmawia po MLSD, PASV
Top
najkon
n00b
n00b
Posts: 13
Joined: Sun Aug 14, 2016 9:15 pm

  • Quote

Post by najkon » Mon Jul 17, 2017 9:41 am

Rozwiązanie problemu na anglojęzycznej części forum -> https://forums.gentoo.org/viewtopic-p-8 ... ml#8089132 :)
Top
NipPride
n00b
n00b
Posts: 2
Joined: Sat May 20, 2023 3:42 pm
Contact:
Contact NipPride
Website

  • Quote

Post by NipPride » Thu Aug 31, 2023 1:40 pm

To link do tego samego posta :) Czyli muszę użyć wyszukiwarki :lol:
Top
Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Polskie forum (Polish)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy