Results 1 to 4 of 4

Thread: More FTP questions (d'oh!)

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    84

    More FTP questions (d'oh!)

    So, inside my home network I can hit my FTP server no problem and transfer files, as expected. Grand.

    What I want to do is hit my server from anywhere on the web. The server is behind my home router. I forwarded both port 20 and 21 (UDP/TCP) to my server.

    However when I jump on my neighbor's AP, I can authenticate to my server, but once I try to copy or download files, I get a "425 Use PORT or PASV first" error.

    OK, my client is set for passive mode, so what else do I need to do?

    Here is the client log:

    220 Welcome to Joe's Ubuntu Server.
    AUTH SSL
    234 Proceed with negotiation.
    PBSZ 0
    200 PBSZ set to 0.
    USER JoeyJoeJoe
    331 Please specify the password.
    PASS (password not shown)
    230 Login successful.
    FEAT
    211-Features:
    AUTH SSL
    AUTH TLS
    EPRT
    EPSV
    MDTM
    PASV
    PBSZ
    PROT
    REST STREAM
    SIZE
    TVFS
    211 End
    PWD
    257 "/"
    TYPE A
    200 Switching to ASCII mode.
    PROT P
    200 PROT now Private.
    PASV
    227 Entering Passive Mode (192,168,1,111,117,197)
    LIST

    Thanks so much,
    JJJ

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    You say you have your home router, what is that ? is it a linux machine using iptables to act as as firewall/router for your network ? Or is it a hardware router like Linksys WRT54GL ?

    If it's a linux box acting as firewall/router you need to activate the ip_conntrack_ftp module, else it wont support your PASV ftp connection.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    84
    Whoops. Sorry about that.

    It's a WRT54GL running dd-wrt, actually.

  4. #4
    Junior Member
    Join Date
    Nov 2006
    Posts
    84

    Made some changes

    I have the following settings in my vsftpd.conf file

    pasv_promiscuous=YES
    pasv_min_port=15000
    pasv_max_port=45000
    pasv_address=joes_server.no-ip.biz
    pasv_addr_resolve=YES

    I am authenticating, no problem but still cannot get a folder list.

    The client says that, when I enter passive mode the IP address is fine but the ports are not in the pasv_min/max port range indicated above.

    Command: PASV
    Response: 227 Entering Passive Mode (148,117,30,249,143,32)
    Command: LIST
    Error: Transfer channel can't be opened. Reason: No connection could be made because the target machine actively refused it.
    Error: Could not retrieve directory listing
    Ports 143 and 32 are not, obviously, between 15000 and 45000 so is that why I'm getting the error?

    (Also, I only opened up that huge range temporarily for testing purposes.)

Similar Threads

  1. Multi-service; multi IP NIC; firewall: 3 questions
    By Dark Horse in forum Security
    Replies: 0
    Last Post: 07-08-2007, 07:39 PM
  2. i have 3 questions.... pls help me
    By ravifrequent in forum Redhat / Fedora
    Replies: 2
    Last Post: 09-17-2006, 03:07 PM
  3. iBook Questions
    By stryder144 in forum Linux Distros
    Replies: 7
    Last Post: 03-16-2005, 02:33 AM
  4. Three mixed-bag questions
    By gjansky in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 01-17-2004, 08:19 PM
  5. Questions The Books Don't Answer
    By dwainsworld in forum Linux - General Topics
    Replies: 33
    Last Post: 01-04-2004, 12:24 AM

Bookmarks

Posting Permissions

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