Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT
RSBAC source code, can be unstable sometimes
No events planned
Due to the short lived nature of network connections and their related network objects, a scheme of Network Templates has been developed in RSBAC.
Network templates describe a set of connection endpoints, which shall be controlled together. Administration is done on the templates instead of the individual network endpoints. Each endpoint inherits the access control settings of the first template it matches. Templates are checked from lowest to highest index number.
In other words: If you plan to access control network connections to or from a network area, you first define a matching template and set the desired attribute values of the network area on the template.
More precisely, the template attribute values are only default values - you can still set individual network object attribute values, if you want or have to.
Only address family INET (IPv4, all fields used) is matched with addresses, all other families are matched by family and socket type only.
Warning: Address based access control for incoming connections is always vulnerable to address spoofing. Before trusting an external address, you should ensure by appropriate firewall settings that an address is really correct. For technical reasons, the template description field 'Network Device' can only be used for local address matches - for remote addresses it must be empty or the template will never match.
Each template definition contains the following fields, some of which are only used for some address families. Most description fields can be set to special value 'ANY', which matches any value.
Templates are defined with the rsbac_nettemp_def_menu or the net_temp commandline tool, their attributes are set in the rsbac_nettemp_menu or through the attr_set_net command line tool. As usual, the net_temp utility can also be used for template backups.
A rsbac_nettemp_def_menu example for the binding to all local addresses with port 80 could look like this:
For convenience, some example templates are created on the initial boot of the RSBAC kernel. They give a base idea of how you could organize your own set of templates. All attributes are set to default values to avoid access control problems.
Table of Contents: RSBAC Handbook
Back: Administration Examples