Difference between revisions of "HFS: IP masks"

From rejetto wiki
Jump to navigation Jump to search
 
m (Reverted edits by 74.42.127.23 (Talk); changed back to last version by Rejetto)
 
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Computers in every network (e.g.,Internet, LAN,...) are identified by IP addresses.
+
Computers in every network (for example, the Internet or a LAN) are identified by IP addresses (normally shortened to just ''IP'').
  
HFS is able to filter for some IPs at some places. The logic it uses is explained here.
+
For some input in HFS (e.g. banning), you need to specify one or more IPs.
  
==Including IPs==
+
The following describes the syntax you can use to specify such IPs.
Just type the IP you want:
+
 
 +
== Single IP ==
 +
Just type the IP you want to specify:
 
<pre>192.168.0.20</pre>
 
<pre>192.168.0.20</pre>
  
==Excluding IPs==
+
== All but one ==
to exlude an IP, put an '''\''' before it:
+
To exclude an IP, put a backslash '''\''' before it:
 
<pre>\192.168.0.20</pre>
 
<pre>\192.168.0.20</pre>
  
==IP ranges==
+
== IP ranges ==
IP ranges can be specified by puttin an '''-''' between first and last IP
+
Ranges can be specified by putting a dash '''-''' between the 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 inside the range.
+
192.168.0.20 and 192.168.0.50 are inclusive.
 +
 
 +
== Wildcards ==
 +
You can also use wildcards (? for single character, * for any number of characters):
 +
<pre>192.168.*.*
 +
1?2.*.1.1</pre>
  
==Combination of range and exclude==
+
== Concatenation ==
To exclude a range of IPs, type
+
Use a semicolon ''';''' to specify more than one address:
<pre>\192.168.0.20-192.168.0.50</pre>
+
<pre>192.2.3.4;192.5.6.7</pre>
  
==Multiple filters==
+
== Combinations ==
Mutiple filters in one filter string are seperated by ''';''' <br>
+
You can combine any of the above methods in the same IP mask:
It is also possible to combine ranges and single IPs.
+
<pre>\192.168.?.*;10.0.0.1-10.0.0.5</pre>
<pre>192.168.0.20;192.168.0.25;192.168.0.30-192.168.0.50</pre>
 

Latest revision as of 14:10, 21 December 2011

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 to specify:

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 the first and last IP:

192.168.0.20-192.168.0.50

192.168.0.20 and 192.168.0.50 are inclusive.

Wildcards

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

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

Concatenation

Use a semicolon ; to 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