• Publicity: Public Only All

iprange-procs.tcl

IP range procs - support different kind of IP ranges These class defined here is not related to the test-items, other than the fact that exams can be restricted. Since the IP-ranges are typically site specific, it is expected that sites define interesting IP ranges (such as e.g., WLAN, on-site, VPN, ...) in the iprange-init.tcl file.

This file defines the following Objects and Classes: ::xowf::IpRange[i], ::xowf::iprange::all[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i], ::xowf::IpRange[i]

Location:
packages/xowf/tcl/iprange-procs.tcl
Author:
Gustaf Neumann

Procedures in this file

Detailed information

Class ::xowf::IpRange (public)

 ::nx::Class ::xowf::IpRange[i]

Class representing a range of IPs to be used to enforce access control.

Testcases:
No testcase defined.

Object ::xowf::iprange::all (public)

 ::xowf::IpRange ::xowf::iprange::all[i]

Testcases:
No testcase defined.

xowf::IpRange method allow_access (public)

 <instance of xowf::IpRange[i]> allow_access ip

Check, if provided IP address is in the provided ranges of disallowed or allowed addresses. First, the explicitly disallowed addresses are checked, then the explicitly allowed ones. Addresses can be specified in the following formats:

  • IP address in CIDR format (e.g., 127.208.0.0/16)
  • IP address containing wildcard "*"
  • literal IP address

Parameters:
ip (required)
Returns:
boolean value expressing success

Testcases:
No testcase defined.
[ show source ]