Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Location
    Portugal
    Posts
    13

    issue w/ pureftpd & apf firewall

    hi everyone.

    i am running pureftpd on my server, but looks like he and my firewall (apf) recently are alyways fighting with each other. when apf is running, i can't access any dir via ftp. the log reports:

    CWD /public_html/flash/
    250 OK. Current directory is /public_html/flash
    PWD
    257 "/public_html/flash" is your current location
    TYPE A
    200 TYPE is now ASCII
    PASV
    227 Entering Passive Mode (66,90,73,***,60,204)
    Data Socket Error: Connection timed out
    List Error

    the same would happen if i used proftpd, i already tested it.

    maybe this can help:

    Quote Originally Posted by /etc/apf/conf.apf
    # Common ingress (inbound) TCP ports
    IG_TCP_CPORTS="21,22,25,53,80,110,143,443,2082,2083,2086,2087,2095,2096,2089,30000_35000,8000,3306"

    # Common egress (outbound) TCP ports
    EG_TCP_CPORTS="21,25,80,443,43,2089"

    # Common egress (outbound) UDP ports
    EG_UDP_CPORTS="20,21,53"
    thanks in advance.
    regards,
    kahoz

  2. #2
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    19
    These settings worked for me with proftp and havung time out issues.
    I had the same problem and was caused by firewall and passiveftp ports needed to be opened.
    Passive FTP
    49151
    49152
    49153
    49154
    49155
    49156
    49157
    49158
    49159
    49160
    49161

    And here's the code you need to put into /etc/proftpd.conf to tell proftpd to use these open ports (I put it right after the Port line):

    code:--------------------------------------------------------------------------------
    ##### added to make passive transfer work
    # use part of the IANA registered ephemeral port range
    PassivePorts 49152 49161
    ####
    --------------------------------------------------------------------------------

    Once opened these errors went away with ws_ftp

  3. #3
    Join Date
    Mar 2004
    Location
    Portugal
    Posts
    13
    and ftpd and firewall lived happily ever after...

    thanks !
    regards,
    kahoz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •