在busybox httpd上允许:: 1


1

我正在Linux上运行busybox 1.23.2(由我自己从源代码编译)。我试图阻止其他人访问我放置在服务器上的文件,所以我想配置服务器:

$ cat etc/httpd1.conf
A: 127.
D: *
$ sudo httpd -h www/ -c ../etc/httpd1.conf -fvv

..的是解决路径的busybox的怪异解释,但服务器可以访问127.*,如预期

但是,尝试通过它访问::1给我一个403禁止响应,因此我尝试以这种方式配置它:

$ cat etc/httpd2.conf
A: 127.
A: ::1
D: *

最终导致拒绝所有访问:

$ sudo httpd -h www/ -c ../etc/httpd2.conf -fvv
[::1]:43440: url:/
[::1]:43440: response:403
[::1]:43441: url:/
[::1]:43441: response:403
[::1]:43473: url:/
[::1]:43473: response:403
[::ffff:127.0.0.1]:37889: url:/
[::ffff:127.0.0.1]:37889: response:403

我已经尝试了扩展的符号,但是那没有用。

如何配置busybox以允许IPv6连接?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.