Allowed ips ZH

From MLDonkey
Jump to: navigation, search

Contents

描述

这个选项是允许控制mldonkey的客户端ip列表.(也就是, 允许那些能连入接口指定的端口). 默认允许i是本机ip (127.0.0.1).

allowed_ips is a non-scalar option that accepts a list of values. For a detailed explanation on how to set options with multiple values, see EnteringMultipleValues.

Beside individual IP addresses, it is also possible to specify NetworkRanges. However, think twice before doing so, as it's a severe security risk.

If you prefer accessing your core through an authenticated, encrypted, and optionally compressed channel, set up SshTunnel.

默认值

allowed_ips默认值为127.0.0.1.

归属

这个选项在downloads.ini文件

例子

> 设置允许ip allowed_ips 为"127.0.0.1 192.168.15.255"

设置allowed_ips为["127.0.0.1"; "192.168.15.255"] (downloads.ini文件里要求的格式),将允许从localhost和192.168.15.0/24连接到接口指定的端口

CIDR 表示法

CIDR (Classless InterDomain Routing) 无类型域间选路 从2.8.0版开始支持其他的格式

5264: allowed_ips:支持CIDR address/mask格式和IP范围格式(pango)
* 老的格式被转换为CIDR格式:
  - 192.168.000.255 -> 192.168.000.000/24
  - 192.168.255.255 -> 192.168.000.000/16
  - 192.255.255.255 -> 192.000.000.000/8
  - 255.255.255.255 -> 000.000.000.000/0
* 新允许的格式,参考网站: http://www.subnet-calculator.com/cidr.php
  - CIDR: 192.168.0.106/30 (192.168.0.104 - 192.168.0.107)
  - IP ranges: like 192.168.1.123 - 192.168.1.133

老版本的格式将被自动转换,但是太老的格式就不能被识别了,需要从新设置一下allowed_ips

参考

MultiUser, SshTunnel, http_password, http_login, bind_addr, password



LanguagesEnglish  • Русский  • 中文

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox