2.1中安装tftp遇到无法上传ldlinux.c32的问题?
-
这是一个很奇怪的问题。
我的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却无法上传。 -
可能找到答案了,是FastCGI不允许上传可执行文件,ldlinux.c32算可执行文件
但是另一个问题又冒出来,为啥我能上传menu.c32呢?
也许FastCGI对可执行文件的判断不是依照后缀名来判定的,那依照的是什么呢?黑白名单吗?不管了,反正找到一个变通的办法,ssh登录到pfsense,通过scp上传文件,顺带还搞定了FastCGI对上传文件大小的限制。
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 LoginPrivacy Policy · Cookie Policy