Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    2.1中安装tftp遇到无法上传ldlinux.c32的问题?

    Scheduled Pinned Locked Moved Chinese
    2 Posts 1 Posters 4.8k 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.
    • D
      deddey
      last edited by

      这是一个很奇怪的问题。
      我的pfsense是从2.0升级到2.1的,在2.0时安装有tftp、Unbound和OpenVPN Client Export Utility。
      原来在2.0中使用tftp配合pxelinux做网络启动一直没有问题
      今天打算升级pxelinux到6.02,但有一个文件ldlinux.c32无论如何不能上传,可是上传pxelinux,0这个文件却没有一点问题。
      后来想了一个办法将要上传的文件打包压缩后上传,然后再pfsense中解压,但是却提示:
      tar:failed to set default locale
      不明白这是什么情况,记得在2.0的时候用过tar,没有出现过这种情况的

      补充:刚才又试了一下新建一个名为ldlinux.c32的空白文件是可以上传的,但是下载的
      https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.02.zip
      中的ldlinux.c32却无法上传。

      1 Reply Last reply
      Reply Quote 0
      • D
        deddey
        last edited by

        可能找到答案了,是FastCGI不允许上传可执行文件,ldlinux.c32算可执行文件
        但是另一个问题又冒出来,为啥我能上传menu.c32呢?
        也许FastCGI对可执行文件的判断不是依照后缀名来判定的,那依照的是什么呢?黑白名单吗?

        不管了,反正找到一个变通的办法,ssh登录到pfsense,通过scp上传文件,顺带还搞定了FastCGI对上传文件大小的限制。

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy