JANUS DEFINEIPGROUP: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
{{DISPLAYTITLE:JANUS DEFINEIPGROUP}}
{{DISPLAYTITLE:JANUS DEFINEIPGROUP}}
<span class="pageSubtitle"><section begin="desc" />DEFINEIPGROUP<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Create named group of ip addresses<section end="desc" /></span>


This command creates a named group which contains any number of IP addresses. The IPGROUP can then be used to control ''[[Janus Web Server]]'' or ''[[Janus Sockets]]'' access based on IP address.


This command creates a named group which contains any number of IP addresses. The IPGROUP can then be used to control ''[[Janus Web Server]]'' or ''[[Janus Sockets]]'' access based on IP address.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> JANUS DEFINEIPGROUP groupname ipaddress(es)
<p class="syntax"><section begin="syntax" /> JANUS DEFINEIPGROUP groupname ipaddress(es)
Line 11: Line 10:
</p>
</p>


Where each parameter is positional and required:


Where each parameter is positional and required:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>groupname</th>
<tr><th>groupname</th>
<td>A 1 - 30 character name of the group with which IP addresses are being associated for ALLOW and DISALLOW rules in JANUS WEB, JANUS CLSOCK, or JANUS SRVSOCK commands.</td></tr>
<td>A 1 - 30 character name of the group with which IP addresses are being associated for ALLOW and DISALLOW rules in JANUS WEB, JANUS CLSOCK, or JANUS SRVSOCK commands.</td></tr>
<tr><th>ipaddress(es)</th>
<tr><th>ipaddress(es)</th>
<td>A list of IP addresses or subnet masks in "dotted" format. IP addresses are formatted nnn.nnn.nnn.nnn. For example, 198.242.244.47 is a valid IP address. Subnet masks are formatted in one of two ways:


<ul>
<ul>
<li>With a slash separating the subnet identifier from the subnet mask, as in "198.242.244.0/255.255.255.0"</li>
<li>With a dash (“-”) separating the subnet identifier from the number of subnet mask bits, as in "198.242.244.0-24".</li>
</ul>


<li>With a slash
All formats may be used in any combination, separated by spaces or commas, on the same command.  
<li>With a dash ("-") separating the subnet identifier from the
 
</ul>
Note: Translation of a name to an IP address is not supported on this command.
<td>A list of IP addresses or subnet masks in "dotted" format. IP addresses are formatted nnn.nnn.nnn.nnn. For example, 198.242.244.47 is a valid IP address. Subnet masks are formatted in one of two ways: separating the subnet identifier from the subnet mask, as in "198.242.244.0/255.255.255.0" number of subnet mask bits, as in "198.242.244.0-24". All formats may be used in any combination, separated by spaces or commas, on the same command. :note Translation of a name to an IP address is not supported on this command. :enote.
</td></tr>
</td></tr></table>
</table>
 
The DEFINEIPGROUP command may be abbreviated DEFIPGROUP, DEFIPG, and DEFINEIPG.


The following example builds an IP group called PRIVILEGED made of all IP addresses in the 198.242.0.0 subdomain (using 16 mask bits), all addresses in the 169.231.11.0 subdomain (using 24 mask bits) and the single IP address 184.194.222.7.


The DEFINEIPGROUP command may be abbreviated DEFIPGROUP, DEFIPG, and DEFINEIPG. The following example builds an IP group called PRIVILEGED made of all IP addresses in the 198.242.0.0 subdomain (using 16 mask bits), all addresses in the 169.231.11.0 subdomain (using 24 mask bits) and the single IP address 184.194.222.7.
<p class="code"> JANUS DEFIPG PRIVILEGED 198.242.0.0-16 169.231.11.0-24 184.194.222.7
<p class="code"> JANUS DEFIPG PRIVILEGED 198.242.0.0-16 -
169.231.11.0-24 184.194.222.7
</p>
</p>


 
See [[List_of_Janus_commands|The list of Janus commands]]
[[Category:Janus commands|JANUS DEFINEIPGROUP]]
[[Category:Janus commands|JANUS DEFINEIPGROUP]]
[[Category:Sirius commands]]
[[Category:Sirius commands|JANUS DEFINEIPGROUP]]

Revision as of 19:56, 28 February 2011

<section begin="desc" />Create named group of ip addresses<section end="desc" />

This command creates a named group which contains any number of IP addresses. The IPGROUP can then be used to control Janus Web Server or Janus Sockets access based on IP address.

Syntax

<section begin="syntax" /> JANUS DEFINEIPGROUP groupname ipaddress(es) <section end="syntax" />

JANUS DEFINEIPGROUP command syntax

Where each parameter is positional and required:

groupname A 1 - 30 character name of the group with which IP addresses are being associated for ALLOW and DISALLOW rules in JANUS WEB, JANUS CLSOCK, or JANUS SRVSOCK commands.
ipaddress(es) A list of IP addresses or subnet masks in "dotted" format. IP addresses are formatted nnn.nnn.nnn.nnn. For example, 198.242.244.47 is a valid IP address. Subnet masks are formatted in one of two ways:
  • With a slash separating the subnet identifier from the subnet mask, as in "198.242.244.0/255.255.255.0"
  • With a dash (“-”) separating the subnet identifier from the number of subnet mask bits, as in "198.242.244.0-24".

All formats may be used in any combination, separated by spaces or commas, on the same command.

Note: Translation of a name to an IP address is not supported on this command.

The DEFINEIPGROUP command may be abbreviated DEFIPGROUP, DEFIPG, and DEFINEIPG.

The following example builds an IP group called PRIVILEGED made of all IP addresses in the 198.242.0.0 subdomain (using 16 mask bits), all addresses in the 169.231.11.0 subdomain (using 24 mask bits) and the single IP address 184.194.222.7.

JANUS DEFIPG PRIVILEGED 198.242.0.0-16 169.231.11.0-24 184.194.222.7

See The list of Janus commands