Allowed ips

From MLDonkey
Revision as of 21:09, 9 April 2009 by Z (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Description

This option contains the list of IP addresses of the computers that are allowed to take control over the mldonkey client (i.e., to connect to the interface ports). By default, only localhost (127.0.0.1) is allowed.

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.

Default value

allowed_ips defaults to 127.0.0.1.

Scope

This option is stored in downloads.ini

Example

> set allowed_ips "127.0.0.1 192.168.15.255"

will set allowed_ips to ["127.0.0.1"; "192.168.15.255"] (in the format expected in downloads.ini), and will allow connections to the interface ports from localhost and 192.168.15.0/24

CIDR notation

Since version 2.8.0 now supports other syntax as well

5264: allowed_ips: Support CIDR address/mask format and IP ranges (pango)
* old syntax is converted to CIDR format:
  - 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
* new possible syntax, to calculate: http://www.subnet-calculator.com/cidr.php
  - CIDR, like 192.168.0.106/30 (192.168.0.104 - 192.168.0.107)
  - IP ranges, like 192.168.1.123 - 192.168.1.133

When upgrading old syntax is converted automatically, not when downgrading

older versions can not read the new syntax so you have to adjust allowed_ips again.

See also

MultiUser, SshTunnel, http_password, http_login, bind_addr, password



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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox