FTP Server : How to behind routers?
Results 1 to 3 of 3

Thread: FTP Server : How to behind routers?

  1. #1
    Registered User
    Join Date
    Nov 2000
    Location
    Fountain Valley, CA
    Posts
    507

    FTP Server : How to behind routers?

    I've set up FTP servers many times, but I have never been able to figure out how to get a session going when both the server and the client are behind firewalls. Since when the server is in "active" mode, it tries to initiate the data connection on a randomly chosen high port, then client's router will reject the connection. likewise, if the client is "active", the server's router will reject the connection.

    Both result in being able to make the control connection, but hanging forever at the LIST command.

    Anyone know how to get around this? Could i just open up a range of high ports on my firewall so my server can accept active connections?

  2. #2
    Chat Operator Matridom's Avatar
    Join Date
    Jan 2002
    Location
    Ontario, Canada
    Posts
    3,778
    Use passive mode in your FTP client, should work. remember to forward both port 20 and 21

  3. #3
    Registered User
    Join Date
    Nov 2000
    Location
    Fountain Valley, CA
    Posts
    507
    I figured out how to make it work in my own situation. My FTP server software allows me to define the range of ports used by passive connections. I set that range and then opened it up in my router. works fine now.

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
  •