Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Odd FTP behaviour

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gob
      last edited by

      Hi

      we are experiencing peculiar behaviour with FTP at one of our sites. They are running pfSense v2 stable with a fairly standard LAN, WAN & DMZ.
      They have a filezilla FTP server sitting in the DMZ with a NAT Port Forwarding rule from WAN to DMZ.

      Access to the FTP server works perfectly from the public internet.

      we have a split dns for the FTP host using the DNS Forwarder on pfSense to redirect LAN access to the FTP server straight to the DMZ.

      The following default rules are in place for LAN and DMZ:

      LAN INTERFACE:
      Proto: *
      Source: LAN net
      Port: *
      Destination: *
      Gateway: *

      DMZ INTERFACE:
      Proto: *
      Source: DMZ net
      Port: *
      Destination: !LAN net
      Gateway: *

      When users on the LAN try to upload to the FTP server in the DMZ they are able to connect OK but after 18 seconds the connection drops and the uploaded file is corrupt.
      As it works perfectly for traffic coming in on the WAN interface I think we can rule out any issues with the FTP server itself.

      Any suggestions?

      thanks
      Gordon

      If I fix one more thing than I break in a day, it's a good day!

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by

        i would not rule out the server so quickly. Filezilla server has a option to respond with this public IP to passive requests, as well as setting the port range. There is an option to not use external IP for internal communications. If this is checked, then it might be a flaw in filezilla server that reads only the DMZ subnet as internal.

        1 Reply Last reply Reply Quote 0
        • G
          Gob
          last edited by

          thanks for your response. I have just worked out what the problem is…

          I have just learned that the FTP server has two nics in it - one in the DMZ and the other on the LAN!
          So whilst I was routing traffic to the FTP server via the pfSense and DMZ interface, the Data stream I guess was coming back direct via the LAN nic.

          ::)

          If I fix one more thing than I break in a day, it's a good day!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.