There is one entry per line, and each line has the format:
access:network/netmask
Lines beginning with '#' are treated as comments and ignored. Empty lines are allowed and ignored. Invalid entries are silently ignored.
The field descriptions are:
- access
- a single character, either 'n' (=deny) or 'y' (=allow). The presence of this character is required. It is not case-sensitive.
- network
- a network number or IP address expressed as a dotted quad.
- netmask
- a subnet mask expressed as a single decimal value (representing the number of bits set in the mask). A mask of 32 would mean that the preceeding dotted quad represented an individual IP address.
When the file is absent, the access control is disabled altogether.
y:192.1.1.0/24
n:192.1.1.7/32
grants access to anyone on the 192.1.1.0 subnet with mask 255.255.255.0 but specifically
denies access to the machine whose IP address is 192.1.1.7.
n:192.1.1.0/24
n:192.1.2.0/24
y:0.0.0.0/0
closes access to a few networks and opens it to anything else.
Part of the code is (c) Riccardo Facchetti.
The code also includes contributions from Philipp Klaus <pklaus@access.ch>, Andrew Worsley <epaanwo@asac.ericsson.se>, and numerous others. All contributors are acknowledged in the CHANGELOG document, and in the comment headers of the source files they modified.
SMSLink has been released to the public under the GNU GPL.
Home page: <http://smslink.sourceforge.net/ >