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

    FTP proxy client problem with ftp-proxy message size restriction.

    Scheduled Pinned Locked Moved Cache/Proxy
    4 Posts 2 Posters 685 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.
    • C
      correajl
      last edited by

      Hi! I'm using FTP proxy client here. It's working very well. Recently I received a claim that a server was not connecting. After some debug I noted that the problem was with a server that sent a big banner message. This packet doesn't pass through the ftp-proxy.

      Analysing the ./contrib/pf/ftp-proxy/ftp-proxy.c I can see a variable definition named MAX_LINE with the value = 500. The banner has 893 bytes. So, what can we do? The ftp-proxy from FTP Client Package could be compiled with a larger value? Or this has other implications?

      I've compiled the binary in another FreeBSD and put in PFSense. The server now connects. But this isn't a great solution.

      tks!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Tell the server admin to use multi-line banners and not a single huge line.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • C
          correajl
          last edited by

          Yes, already done! The mentioned one line banner has no sense  :o

          This topic was just to suggest the change of the value. If we consider that *ethernet (really used) has a 1500 bytes of frame size, 500 may be something small. If higher values doesn't represent any other problem, the users of the package wouldn't face this specific problem.

          Tks!
          :)

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            We pull that from FreeBSD. I don't see us maintaining a patch to change the value when there has only ever been one report of one server that is broken by it. You can submit a request to FreeBSD to have that increased if you want. If they do it, we'll get the change eventually when it makes its way into a branch we build from.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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