HFS: IP masks: Difference between revisions

From rejetto wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Computers in every network (e.g.,Internet, LAN,...) are identified by IP addresses (shortened to ''IP'').
Computers in every network (for example, the Internet or a LAN) are identified by IP addresses (normally shortened to just ''IP'').


For some input in HFS (e.g. banning).you need to specify one or more IP
For some input in HFS (e.g. banning), you need to specify one or more IPs.


This article describes the syntax you can use to specify such IPs.
The following describes the syntax you can use to specify such IPs.


== Single IP ==
== Single IP ==
Line 14: Line 14:


== IP ranges ==
== IP ranges ==
Ranges can be specified by putting a dash '''-''' between first and last IP
Ranges can be specified by putting a dash '''-''' between first and last IP:
<pre>192.168.0.20-192.168.0.50</pre>
<pre>192.168.0.20-192.168.0.50</pre>
192.168.0.20 and 192.168.0.50 are included.
192.168.0.20 and 192.168.0.50 are included.


== Wildcards ==
== Wildcards ==
You can use wildcards as well (? for single character, * for any number of characters)
You can also use wildcards (? for single character, * for any number of characters):
<pre>192.168.*.*
<pre>192.168.*.*
1?2.*.1.1</pre>
1?2.*.1.1</pre>


== Concatenation ==
== Concatenation ==
Using semicolon ''';''' you can specify more than one address
Using a semicolon ''';''' you can specify more than one address:
<pre>192.2.3.4;192.5.6.7</pre>
<pre>192.2.3.4;192.5.6.7</pre>


== Combinations ==
== Combinations ==
You can combine any of the above methods in the same IP mask
You can combine any of the above methods in the same IP mask:
<pre>\192.168.?.*;10.0.0.1-10.0.0.5</pre>
<pre>\192.168.?.*;10.0.0.1-10.0.0.5</pre>

Revision as of 17:05, 10 October 2006

Computers in every network (for example, the Internet or a LAN) are identified by IP addresses (normally shortened to just IP).

For some input in HFS (e.g. banning), you need to specify one or more IPs.

The following describes the syntax you can use to specify such IPs.

Single IP

Just type the IP you want:

192.168.0.20

All but one

To exclude an IP, put a backslash \ before it:

\192.168.0.20

IP ranges

Ranges can be specified by putting a dash - between first and last IP:

192.168.0.20-192.168.0.50

192.168.0.20 and 192.168.0.50 are included.

Wildcards

You can also use wildcards (? for single character, * for any number of characters):

192.168.*.*
1?2.*.1.1

Concatenation

Using a semicolon ; you can specify more than one address:

192.2.3.4;192.5.6.7

Combinations

You can combine any of the above methods in the same IP mask:

\192.168.?.*;10.0.0.1-10.0.0.5