natlog-1.02.03/CLASSES 0000644 0001750 0001750 00000000426 12605013640 013144 0 ustar frank frank options
showseconds options
conntrackrecord
conntrack showseconds conntrackrecord
pcappacket
pcaprecord pcappacket
pcap pcappacket
pcapfilter pcap pcaprecord
devices showseconds pcapfilter
natfork conntrack devices
natlog-1.02.03/INSTALL 0000644 0001750 0001750 00000007503 12605013640 013160 0 ustar frank frank To install natlog by hand instead of using a binary distribution perform
the following steps:
0. natlog and its construction depends, in addition to the normally
standard available system software on specific software and versions
which is documented in the file `required'.
(If you compile the bobcat library yourself, note that natlog does
not use the SSL, Milter and Xpointer classes; they may --as far as
natlog is concerned-- be left out of the library by running
'./build light')
1. It is expected you use icmake for the package construction. For this a
top-level script (build) and support scripts in the ./icmake/
directory are available. By default, the 'build' script echoes the
commands it executes to the standard output stream. By specifying the
option -q (e.g., ./build -q ...) this is prevented, significantly
reducing the output generated by 'build'.
2. Inspect the values of the variables in the file INSTALL.im Modify these
when necessary.
3. Run
./build program [strip]
to compile natlog. The argument `strip' is optional and strips
symbolic information from the final executable.
4. If you installed Yodl then you can create the documentation:
./build man
builds the man-page.
5. Before installing the components of natlog, consider defining the
environment variable NATLOG, defining its value as the (preferably
absolute) filename of a file on which installed files and directories
are logged.
Defining the NATLOG environment variable as ~/.natlog usually
works well.
6. Run (probably as root)
./build install 'what' 'base'
to install. Here, 'what' specifies what you want to install.
Specify:
x, to install all components,
or specify a combination of:
b (binary program),
d (standard documentation),
m (man-pages)
E.g., use
./build install bm 'base'
if you only want to be able to run natlog, and want its man-page to
be installed below 'base'.
./build install's last argument 'base' is optional: the base directory
below which the requested files are installed. This base directory is
prepended to the paths #defined in the INSTALL.im file. If 'base' is
not specified, then INSTALL.im's #defined paths are used as-is.
When requesting non-existing elements (e.g., './build install x' was
requested, but the man-pages weren't constructed) then these
non-existing elements are silently ignored by the installation
process.
If the environment variable NATLOG was defined when issuing the
`./build install ...' command then a log of all installed files is
written to the file indicated by the NATLOG environment variable
(see also the next item).
Defining the NATLOG environment variable as ~/.natlog usually
works well.
7. Uninstalling previously installed components of natlog is easy
if the environment variable NATLOG was defined before issuing the
`./build install ...' command. In that case, run the command
./build uninstall logfile
where 'logfile' is the file that was written by ./build install.
Modified files and non-empty directories are not removed, but the
logfile itself is removed following the uninstallation.
8. Following the installation nothing in the directory tree which contains
this file (i.e., INSTALL) is required for the proper functioning of
natlog, so consider removing it. If you only want to remove
left-over files from the build-process, just run
./build distclean
natlog-1.02.03/INSTALL.im 0000644 0001750 0001750 00000003561 12632574056 013601 0 ustar frank frank // The name of the program and the support directories as installed by
// the 'build install' command. Normally there is no reason for changing
// this #define
#define PROGRAM "natlog"
// The CXX, CXXFLAGS, and LDFLAGS #defines are overruled by identically
// named environment variables:
// the compiler to use.
#define CXX "g++"
// the compiler options to use.
#define CXXFLAGS "--std=c++14 -Wall -O2 -pthread -fdiagnostics-color=never"
// flags passed to the linker
#define LDFLAGS ""
// The following /bin/cp option is used to keep, rather than follow
// symbolic references. If your installation doesn't support these flags,
// then change them into available ones.
// -P, --no-dereference
// never follow symbolic links in SOURCE
// --preserve[=ATTR_LIST]
// preserve the specified attributes (default:
// mode,ownership,timestamps), if possible additional
// attributes: context, links, all
// -d same as --no-dereference --preserve=links
#define CPOPTS "-d"
// COMPONENTS TO INSTALL
// =====================
// For an operational non-Debian installation, you probably must be
// `root'.
// If necessary, adapt DOC, HDR, LIB and MAN (below) to your situation.
// The provided locations are used by Debian Linux.
// With 'build install' you can dynamically specify a location to prepend
// to the locations configured here, and select which components you want
// to install
// ONLY USE ABSOLUTE DIRECTORY NAMES:
// the final program
#define BINARY "/usr/bin/"${PROGRAM}
// the directory where the standard documentation is stored
#define DOC "/usr/share/doc/"${PROGRAM}
// the directory whre the manual page is stored
#define MAN "/usr/share/man/man1"
natlog-1.02.03/LICENSE 0000644 0001750 0001750 00000104513 12632575261 013147 0 ustar frank frank GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
natlog-1.02.03/VERSION 0000644 0001750 0001750 00000000155 12632573356 013212 0 ustar frank frank #define AUTHOR "Frank B. Brokken (f.b.brokken@rug.nl)";
#define VERSION "1.02.03"
#define YEARS "2012-2015"
natlog-1.02.03/VERSION.h 0000644 0001750 0001750 00000000104 12605013640 013413 0 ustar frank frank #include "VERSION"
SUBST(_CurVers_)(VERSION)
SUBST(_CurYrs_)(YEARS)
natlog-1.02.03/build 0000755 0001750 0001750 00000007042 12632573561 013167 0 ustar frank frank #!/usr/bin/icmake -qt/tmp/bisonc++
#define LOGENV "NATLOG"
string
g_logPath = getenv(LOGENV)[1],
g_cwd = chdir(""); // initial working directory, ends in /
int g_echo = ON;
#include "icmconf"
#include "icmake/cuteoln"
#include "icmake/backtick"
#include "icmake/setopt"
#include "icmake/run"
#include "icmake/md"
#include "icmake/findall"
#include "icmake/logfile"
#include "icmake/logzip"
#include "icmake/uninstall"
#include "icmake/loginstall"
#include "icmake/special"
#include "icmake/pathfile"
#include "icmake/precompileheaders"
#include "icmake/clean"
#include "icmake/manpage"
#include "icmake/install"
#include "icmake/github"
void main(int argc, list argv)
{
string option;
string strip;
int idx;
for (idx = listlen(argv); idx--; )
{
if (argv[idx] == "-q")
{
g_echo = OFF;
argv -= (list)"-q";
}
else if (argv[idx] == "-P")
{
g_gch = 0;
argv -= (list)"-P";
}
}
echo(g_echo);
option = argv[1];
if (option == "clean")
clean(0);
if (option == "distclean")
clean(1);
if (option != "")
special();
if (option == "install")
install(argv[2], argv[3]);
if (option == "uninstall")
uninstall(argv[2]);
if (option == "github")
github();
if (option == "man")
manpage();
if (option == "library")
{
precompileHeaders();
system("icmbuild library");
exit(0);
}
if (argv[2] == "strip")
strip = "strip";
if (option == "program")
{
precompileHeaders();
system("icmbuild program " + strip);
exit(0);
}
if (option == "xref")
{
precompileHeaders();
system("icmbuild program " + strip);
run("oxref -fxs tmp/lib" LIBRARY ".a > " PROGRAM ".xref");
exit(0);
}
printf("Usage: build [-q -P] what\n"
"Where\n"
" [-q]: run quietly, do not show executed commands\n"
" [-P]: do not use precompiled headers\n"
"`what' is one of:\n"
" clean - clean up remnants of previous "
"compilations\n"
" distclean - clean + fully remove tmp/\n"
" library - build " PROGRAM "'s library\n"
" man - build the man-page (requires Yodl)\n"
" program [strip] - build " PROGRAM " (optionally strip the\n"
" executable)\n"
" xref [strip] - same a `program', also builds xref file\n"
" using oxref\n"
" install selection [base] - to install the software in the \n"
" locations defined in the INSTALL.im file,\n"
" optionally below base\n"
" selection can be\n"
" x, to install all components,\n"
" or a combination of:\n"
" b (binary program),\n"
" d (documentation),\n"
" m (man-page)\n"
" uninstall logfile - remove files and empty directories listed\n"
" in the file 'logfile'\n"
" github - prepare github's gh-pages update\n"
" (internal use only)\n"
"\n"
);
exit(1);
}
natlog-1.02.03/build-depends 0000644 0001750 0001750 00000000272 12605013640 014565 0 ustar frank frank Build-Depends:
g++ (>= 4.7.1),
icmake (>= 7.19.00),
libbobcat-dev (>= 3.01.00),
libpcap-dev,
yodl (>= 3.00.0)
natlog-1.02.03/changelog 0000644 0001750 0001750 00000013137 12632573457 014022 0 ustar frank frank natlog (1.02.03)
* Adapted natlog's build scripts to icmake >= 8.00.03
-- Frank B. Brokken Fri, 11 Dec 2015 17:17:43 +0100
natlog (1.02.02)
* Kevin Brodsky observed that the installation scripts used 'chdir' rather
than 'cd'. Fixed in this release.
* Kevin Brodsky also observed that the combined size of all precompiled
headers might exceed some disks capacities. The option -P was added to the
./build script to prevent the use of precompiled headers.
-- Frank B. Brokken Mon, 05 Oct 2015 21:06:54 +0200
natlog (1.02.01)
* Standardized the (de)installation procedures. See INSTALL for details.
-- Frank B. Brokken Sun, 04 Oct 2015 16:09:21 +0200
natlog (1.02.00)
* Conntrack(8) has two modes: when -p is specified conntrack shows
connections of protocol . When -p is not specified connections of
all protocols are shown. When multiple -p options are specified only the
last specified protocol is selected. Conntrack commands generated by
natlog before 1.02.00 erroneously specified multiple -p options. This was
fixed in version 1.02.00.
* The man-page shows `:syslogtag, isequal, "NATLOG:" stop' rather than
(the now deprecated) `:syslogtag, isequal, "NATLOG:" ~'.
* The previously discontinued option conntrack-path is no longer recognized.
* The --protocol option can also be specified as -P.
* Added the file 'required' to the source distribution summarizing the
required software for building natlog.
-- Frank B. Brokken Mon, 23 Feb 2015 11:05:53 +0100
natlog (1.01.0)
* Added configuration option `conntrack-command'. With the `conntrack'
command the icmp, udp and tcp layer four protocols are monitored. By
default natlog's `conntrack' command monitors the tcp protocol.
* Added configuration option `conntrack-restart, to specify how often
conntrack may be restarted if its process prematurely ends.
* The configuration option `conntrack-path' is discontinued, and
`conntrack-command' should be used instead. See the man-page for details.
* Added configuration option `protocol', to specify which layer four
protocols to monitor with the `conntrack' command.
* The default pid file path is set to `/run/natlog.pid'.
* Replaced FBB::Errno calls by FBB::Exception
-- Frank B. Brokken Mon, 10 Feb 2014 20:21:27 +0100
natlog (1.00.2)
* Added a missing #include to the showseconds.ih header, required
by g++ 8.4.2.
-- Frank B. Brokken Sun, 01 Dec 2013 18:15:46 +0100
natlog (1.00.1)
* Natlog's version bumped to 1.00.1, after 1 year of active use.
* Removed the class Signal from natlog's classes as it's available in
Bobcat.
* Explicitly including previously implicitly included bobcat/errno
* Cleanup of icmconf file
-- Frank B. Brokken Sat, 08 Jun 2013 10:57:34 +0200
natlog (0.91.3)
* Natlog returns 0 for options --help and --version
* Catching Errno exceptions is replaced by catching std::exception
exceptions
-- Frank B. Brokken Fri, 25 Jan 2013 08:58:07 +0100
natlog (0.91.2)
* Added build-depends file and INSTALL files.
-- Frank B. Brokken Wed, 07 Nov 2012 12:03:53 +0100
natlog (0.91.1)
* build script recognizes CXX, CXXFLAGS, LDFLAGS environment variables
-- Frank B. Brokken Sun, 15 Jul 2012 14:40:11 +0200
natlog (0.91.0)
* Normal end of program (e.g., the starting daemon or ending
natfork/childprocess) now returns 0, otherwise 1
* Checking whether conntrack runs is implemented by inspecting the access
rights for /proc/net/ip_conntrack
* Reorganized message handling: all messages generated by the daemon are
sent to the syslog daemon, unless --no-syslog was specified
* General code cleanup
-- Frank B. Brokken Thu, 21 Jun 2012 13:45:11 +0200
natlog (0.90.0)
* Updated sourceforge's `excluded' file.
* Added the --pid-file option defining the location of a file holding
the daemon's PID. By default the pid-file is /var/run/natlog.pid.
-- Frank B. Brokken Sat, 16 Jun 2012 12:03:01 +0200
natlog (0.80.0)
* Added auto-detection of devices without Ethernet packet headers
* Natlog's pcap mode now writes syslog messages
* Added option --stdout (-s) writing syslog-equivalent messages to the
standard ouput
* General code cleanup and reorganization
-- Frank B. Brokken Fri, 15 Jun 2012 17:01:08 +0200
natlog (0.30.0)
* Initial implementation of 'natlog in out', performing direct packet
capturing on the `in' and `out' devices.
-- Frank B. Brokken Thu, 14 Jun 2012 14:37:42 +0200
natlog (0.20.0)
* NATLOG writes incomplete connections to syslog when terminated by a
SIGTERM signal.
-- Frank B. Brokken Mon, 11 Jun 2012 16:42:40 +0200
natlog (0.10.0)
* NATLOG now hosted at sourceforge (http://natlog.sourceforge.net/).
* Added maintenance files to handle uploads to sourceforge
-- Frank B. Brokken Sat, 09 Jun 2012 16:39:34 +0200
natlog (0.03.0)
* Syslog message and man-page cleanup
-- Frank B. Brokken Thu, 07 Jun 2012 17:20:04 +0200
natlog (0.02.0)
* Processed elements are now removed from `record' in conntrack/run.cc
-- Frank B. Brokken Thu, 07 Jun 2012 14:10:19 +0200
natlog (0.01.0)
* Project Start.
-- Frank B. Brokken Tue, 05 Jun 2012 22:17:08 +0200
natlog-1.02.03/conntrack/ 0000755 0001750 0001750 00000000000 12632574172 014120 5 ustar frank frank natlog-1.02.03/conntrack/parentprocess.cc 0000644 0001750 0001750 00000007673 12605013640 017320 0 ustar frank frank #include "conntrack.ih"
// Example conntrack lines:
// [1338987414.52626 ] [NEW] tcp 6 120 SYN_SENT
// src=192.168.1.4 dst=129.125.14.80 sport=59783 dport=22 [UNREPLIED]
// src=129.125.14.80 dst=129.125.100.246 sport=22 dport=59783
// [1387190223.487711] [DESTROY] tcp 6
// src=192.168.17.21 dst=192.87.23.111 sport=50029 dport=443
// src=192.87.23.111 dst=129.125.100.246 sport=443 dport=50029 [ASSURED]
// [1387190207.172139] [NEW] udp 17 30
// src=10.4.0.6 dst=129.125.4.6 sport=42998 dport=53 [UNREPLIED]
// src=129.125.4.6 dst=129.125.100.246 sport=53 dport=42998
// [1387190187.423829] [DESTROY] udp 17
// src=10.4.0.6 dst=216.239.34.10 sport=60840 dport=53
// src=216.239.34.10 dst=129.125.100.246 sport=53 dport=60840
// [1387190207.153486] [NEW] icmp 1 30
// src=192.168.17.7 dst=129.125.3.162 type=8 code=0 id=7016 [UNREPLIED]
// src=129.125.3.162 dst=129.125.100.246 type=0 code=0 id=7016
// [1387190237.151720] [DESTROY] icmp 1
// src=192.168.17.7 dst=129.125.3.162 type=8 code=0 id=7016
// src=129.125.3.162 dst=129.125.100.246 type=0 code=0 id=7016
void Conntrack::parentProcess()
{
// Pattern pat(
// // 1 2 3
// "\\[(\\d+)\\.(\\d+).*(NEW|DESTROY).*" // time: [1338899277.41469 ]
// // 4 5
// "src=(\\S+)\\s+dst=(\\S+)\\s+" // source to nat, dest
// // 6 7
// "sport=(\\d+)\\s+dport=(\\d+).*" // source from, dest port
// // 8
// "dst=(\\S+).*" // natted source
// // 9
// "dport=(\\d+)"); // natted sport
// [1338987414.52626 ] [NEW] tcp 6 120 SYN_SENT
// src=192.168.1.4 dst=129.125.14.80 sport=59783 dport=22 [UNREPLIED]
// src=129.125.14.80 dst=129.125.100.246 sport=22 dport=59783
Pattern tcpudp(
// 1 2 3 4
R"(\[(\d+)\.(\d+).*\[(NEW|DESTROY)\]\s+(tcp|udp).*)" // time: [1338899277.41469 ]
// 5 6
R"(src=(\S+)\s+dst=(\S+)\s+)" // source to nat, dest
// 7 8
R"(sport=(\d+)\s+dport=(\d+).*)" // source from, dest port
// 9
R"(dst=(\S+).*)" // natted source (key)
// 10
R"(dport=(\d+))", // natted sport (key)
true, 11);
// [1387190207.153486] [NEW] icmp 1 30
// src=192.168.17.7 dst=129.125.3.162 type=8 code=0 id=7016 [UNREPLIED]
// src=129.125.3.162 dst=129.125.100.246 type=0 code=0 id=7016
Pattern icmp(
// 1 2 3
R"(\[(\d+)\.(\d+).*\[(NEW|DESTROY)\]\s+icmp.*)" // time: [1338899277.41469 ]
// 4 5
R"(src=(\S+)\s+dst=(\S+)\s+)" // source to nat, dest
// 6
R"(.*(id=\d+).*)" // id= (key)
// 7
R"(dst=(\S+).*)", // natted source
true, 11);
string line;
while (getline(cin, line))
{
imsg << "LINE: " << line << endl;
bool processed = true;
if (tcpudp << line)
{
if (not accept(tcpudp[4])) // observed protocol must
continue; // match accepted protocol
processed = tcpudpConnection(tcpudp);
}
else if (icmp << line)
{
if (not accept(tcpudp[4]))
continue;
processed = icmpConnection(icmp);
}
if (not processed)
wmsg << "UNAVAILABLE: " << line << endl;
}
waitForChild();
if (not d_stop)
{
cin.clear();
throw Options::CONNTRACK_ENDED;
}
}
natlog-1.02.03/conntrack/destructor.cc 0000644 0001750 0001750 00000001107 12605013640 016610 0 ustar frank frank #include "conntrack.ih"
Conntrack::~Conntrack()
{
string endSeconds = to_string(time(0));
d_stdMsg << "monitoring conntrack ends" << endl;
for (auto &rec: d_connections)
{ // rec is a *, 0 for terminated
if (rec) // connections
(this->*
(
rec->protocol == "icmp" ?
&Conntrack::logIcmp
:
&Conntrack::logTcpudp
)
)(*rec, endSeconds, "0");
}
}
natlog-1.02.03/conntrack/conntrack.ih 0000644 0001750 0001750 00000000637 12605013640 016416 0 ustar frank frank #include "conntrack.h"
#include
#include
#include
#include
#include
#include
#include
#include "../options/options.h"
#include "../showseconds/showseconds.h"
using namespace std;
using namespace FBB;
inline bool Conntrack::accept(string const &protocol) const
{
return d_accept.find(protocol) != string::npos;
}
natlog-1.02.03/conntrack/run.cc 0000644 0001750 0001750 00000001232 12605013640 015215 0 ustar frank frank #include "conntrack.ih"
void Conntrack::run()
{
size_t max = d_options.conntrackRestart();
d_stdMsg << "starting `" << d_options.conntrackCommand() <<
"' (max " << max << " restarts)" << endl;
++max; // restarts, so add 1 for initial startup.
for (size_t idx = 0; idx != max; )
{
++idx;
try
{
d_pipe = Pipe();
fork();
return;
}
catch (Options::ExitStatus status)
{
d_stdMsg << "conntrack run " << idx << " ended" << endl;
}
}
d_stdMsg << "conntrack started " << max << " times, giving up" << endl;
}
natlog-1.02.03/conntrack/conntrack.h 0000644 0001750 0001750 00000002440 12605013640 016237 0 ustar frank frank #ifndef INCLUDED_CONNTRACK_
#define INCLUDED_CONNTRACK_
#include
#include
#include
#include
#include
#include "../conntrackrecord/conntrackrecord.h"
class Options;
class Conntrack: public FBB::Fork, public FBB::SignalHandler
{
FBB::Pipe d_pipe;
ConntrackRecord d_connections;
Options &d_options;
std::ostream &d_stdMsg;
bool d_stop = false;
std::string d_accept;
public:
Conntrack(std::ostream &stdMsg);
~Conntrack();
void run();
private:
bool tcpudpConnection(FBB::Pattern const &tcpudp);
bool icmpConnection(FBB::Pattern const &tcpudp);
void logTcpudp(ConntrackRecord::Record const &record,
std::string const &endSeconds,
std::string endMicroSecs);
void logIcmp(ConntrackRecord::Record const &record,
std::string const &endSeconds,
std::string endMicroSecs);
void signalHandler(size_t signum) override;
void parentProcess() override;
void childProcess() override;
void childRedirections() override;
void parentRedirections() override;
bool accept(std::string const &protocol) const;
};
#endif
natlog-1.02.03/conntrack/childredirections.cc 0000644 0001750 0001750 00000000216 12605013640 020110 0 ustar frank frank #include "conntrack.ih"
void Conntrack::childRedirections()
{
int fd[] = {STDOUT_FILENO, STDERR_FILENO};
d_pipe.writtenBy(fd, 2);
}
natlog-1.02.03/conntrack/logtcpudp.cc 0000644 0001750 0001750 00000001367 12605013640 016423 0 ustar frank frank #include "conntrack.ih"
void Conntrack::logTcpudp(ConntrackRecord::Record const &record,
string const &endSeconds,
string endMicroSecs)
{
endMicroSecs.insert(0, 6 - endMicroSecs.length(), '0');
d_stdMsg << "from " <<
ShowSeconds(record.seconds) << ':' << record.musecs <<
" until " <<
ShowSeconds(endSeconds) << ':' << endMicroSecs <<
ShowSeconds::utcMarker() << ": " <<
record.protocol << ' ' <<
record.sourceIP << ':' << record.sourcePort <<
" (via: " << record.viaIP << ':' << record.viaPort << ") "
"to " << record.destIP << ':' << record.destPort << endl;
}
natlog-1.02.03/conntrack/childprocess.cc 0000644 0001750 0001750 00000000572 12605013640 017101 0 ustar frank frank #include "conntrack.ih"
void Conntrack::childProcess()
{
vector cmd(String::split(static_cast(0),
d_options.conntrackCommand()));
char const **args = String::argv(cmd);
execv(args[0], const_cast(args));
throw 0; // this should not be reached, but if so main properly ends.
}
natlog-1.02.03/conntrack/conntrack1.cc 0000644 0001750 0001750 00000000603 12605013640 016455 0 ustar frank frank #include "conntrack.ih"
Conntrack::Conntrack(ostream &stdMsg)
:
d_options(Options::instance()),
d_stdMsg(stdMsg),
d_accept(d_options.protocols())
{
if (access("/proc/net/ip_conntrack", R_OK) != 0)
throw Exception() << "Cannot read /proc/net/ip_conntrack";
Signal::instance().add(SIGHUP, *this); // ignored
Signal::instance().add(SIGTERM, *this);
}
natlog-1.02.03/conntrack/signalhandler.cc 0000644 0001750 0001750 00000000571 12605013640 017231 0 ustar frank frank #include "conntrack.ih"
void Conntrack::signalHandler(size_t signum)
{
if (signum == SIGHUP)
{
d_stdMsg << "ignoring signal SIGHUP for pid " << pid() << endl;
return;
}
d_stdMsg << "stopping pid " << pid() << " on signal " << signum << endl;
d_stop = true;
kill(pid(), SIGTERM);
kill(pid(), SIGTERM);
kill(pid(), SIGKILL);
}
natlog-1.02.03/conntrack/logicmp.cc 0000644 0001750 0001750 00000001162 12605013640 016045 0 ustar frank frank #include "conntrack.ih"
void Conntrack::logIcmp(ConntrackRecord::Record const &record,
string const &endSeconds,
string endMicroSecs)
{
endMicroSecs.insert(0, 6 - endMicroSecs.length(), '0');
d_stdMsg << "from " <<
ShowSeconds(record.seconds) << ':' << record.musecs <<
" until " <<
ShowSeconds(endSeconds) << ':' << endMicroSecs <<
ShowSeconds::utcMarker() << ": icmp " <<
record.sourceIP << " (via: " << record.viaIP << ") "
"to " << record.destIP << endl;
}
natlog-1.02.03/conntrack/frame 0000644 0001750 0001750 00000000051 12605013640 015115 0 ustar frank frank #include "conntrack.ih"
Conntrack::
{
}
natlog-1.02.03/conntrack/tcpudpconnection.cc 0000644 0001750 0001750 00000002400 12605013640 017766 0 ustar frank frank #include "conntrack.ih"
// // [1338987414.52626 ] [NEW] tcp 6 120 SYN_SENT
// // src=192.168.1.4 dst=129.125.14.80 sport=59783 dport=22 [UNREPLIED]
// // src=129.125.14.80 dst=129.125.100.246 sport=22 dport=59783
// Pattern tcpudp(
// // 1 2 3 4
// R"(\[(\d+)\.(\d+).*\[(NEW|DESTROY)\]\s+(tcp|udp).*)" // time: [1338899277.41469 ]
// // 5 6
// R"(src=(\S+)\s+dst=(\S+)\s+)" // source to nat, dest
// // 7 8
// R"(sport=(\d+)\s+dport=(\d+).*)" // source from, dest port
// // 9
// R"(dst=(\S+).*)" // natted source (key)
// // 10
// R"(dport=(\d+))"); // natted sport (key)
bool Conntrack::tcpudpConnection(Pattern const &tcpudp)
{
string key(tcpudp[9] + tcpudp[10]);
if (tcpudp[3] == "NEW")
d_connections.addTcpudp(key, tcpudp);
else
{
size_t idx = d_connections.find(key);
if (idx == numeric_limits::max())
return false;
logTcpudp(*d_connections[idx], tcpudp[1], tcpudp[2]);
d_connections.erase(idx); // erase processed element
}
return true;
}
natlog-1.02.03/conntrack/parentredirections.cc 0000644 0001750 0001750 00000000145 12605013640 020317 0 ustar frank frank #include "conntrack.ih"
void Conntrack::parentRedirections()
{
d_pipe.readFrom(STDIN_FILENO);
}
natlog-1.02.03/conntrack/icmpconnection.cc 0000644 0001750 0001750 00000002116 12605013640 017423 0 ustar frank frank #include "conntrack.ih"
// // [1387190207.153486] [NEW] icmp 1 30
// // src=192.168.17.7 dst=129.125.3.162 type=8 code=0 id=7016 [UNREPLIED]
// // src=129.125.3.162 dst=129.125.100.246 type=0 code=0 id=7016
// Pattern icmp(
// // 1 2 3
// R"(\[(\d+)\.(\d+).*\[(NEW|DESTROY)\]\s+icmp.*)" // time: [1338899277.41469 ]
// // 4 5
// R"(src=(\S+)\s+dst=(\S+)\s+)" // source to nat, dest
// // 6
// R"(.*(id=\d+).*)" // id= (key)
// // 7
// R"(dst=(\S+).*)"); // natted source
bool Conntrack::icmpConnection(Pattern const &icmp)
{
if (icmp[3] == "NEW")
d_connections.addIcmp(icmp[6], icmp);
else
{
size_t idx = d_connections.find(icmp[6]);
if (idx == numeric_limits::max())
return false;
logIcmp(*d_connections[idx], icmp[1], icmp[2]);
d_connections.erase(idx); // erase processed element
}
return true;
}
natlog-1.02.03/conntrackrecord/ 0000755 0001750 0001750 00000000000 12632574172 015317 5 ustar frank frank natlog-1.02.03/conntrackrecord/find.cc 0000644 0001750 0001750 00000000424 12605013640 016532 0 ustar frank frank #include "conntrackrecord.ih"
size_t ConntrackRecord::find(std::string const &key) const
{
for (auto &record: d_connections)
{
if (record && record->key == key)
return &record - &d_connections[0];
}
return numeric_limits::max();
}
natlog-1.02.03/conntrackrecord/addicmp.cc 0000644 0001750 0001750 00000000434 12605013640 017214 0 ustar frank frank #include "conntrackrecord.ih"
void ConntrackRecord::addIcmp(std::string const &key, Pattern const &pat)
{
*firstFree() = new Record
{key,
pat[1], pat[2], "icmp",
pat[4], pat[5], "", "", pat[7], ""};
// src IP dst IP snat IP
}
natlog-1.02.03/conntrackrecord/destructor.cc 0000644 0001750 0001750 00000000205 12605013640 020005 0 ustar frank frank #include "conntrackrecord.ih"
ConntrackRecord::~ConntrackRecord()
{
for (auto &record: d_connections)
delete record;
}
natlog-1.02.03/conntrackrecord/conntrackrecord.ih 0000644 0001750 0001750 00000000220 12605013640 021000 0 ustar frank frank #include "conntrackrecord.h"
#include
#include
#include
using namespace std;
using namespace FBB;
natlog-1.02.03/conntrackrecord/erase.cc 0000644 0001750 0001750 00000000255 12605013640 016713 0 ustar frank frank #include "conntrackrecord.ih"
void ConntrackRecord::erase(size_t idx)
{
delete d_connections[idx];
imsg << "Erased #" << idx << endl;
d_connections[idx] = 0;
}
natlog-1.02.03/conntrackrecord/conntrackrecord.h 0000644 0001750 0001750 00000003137 12605013640 020641 0 ustar frank frank #ifndef INCLUDED_CONNTRACKRECORD_
#define INCLUDED_CONNTRACKRECORD_
#include
#include
namespace FBB
{
class Pattern;
}
struct ConntrackRecord
{
struct Record
{
std::string key;
std::string seconds;
std::string musecs;
std::string protocol;
std::string sourceIP;
std::string destIP;
std::string sourcePort;
std::string destPort;
std::string viaIP;
std::string viaPort;
};
private:
std::vector d_connections;
public:
~ConntrackRecord();
size_t find(std::string const &key) const;
void addTcpudp(std::string const &key, FBB::Pattern const &pat);
void addIcmp(std::string const &key, FBB::Pattern const &pat);
void erase(size_t idx);
Record const *operator[](size_t idx);
size_t size() const;
std::vector::const_iterator begin() const;
std::vector::const_iterator end() const;
private:
Record **firstFree();
};
inline size_t ConntrackRecord::size() const
{
return d_connections.size();
}
inline ConntrackRecord::Record const *ConntrackRecord::operator[](size_t idx)
{
return d_connections[idx];
}
inline std::vector::const_iterator
ConntrackRecord::begin() const
{
return d_connections.begin();
}
inline std::vector::const_iterator
ConntrackRecord::end() const
{
return d_connections.end();
}
#endif
natlog-1.02.03/conntrackrecord/frame 0000644 0001750 0001750 00000000065 12605013640 016321 0 ustar frank frank #include "conntrackrecord.ih"
ConntrackRecord::
{
}
natlog-1.02.03/conntrackrecord/firstfree.cc 0000644 0001750 0001750 00000000637 12605013640 017611 0 ustar frank frank #include "conntrackrecord.ih"
ConntrackRecord::Record **ConntrackRecord::firstFree()
{
for (auto &record: d_connections)
{
if (record == 0)
{
imsg << "At #" << (&record - &d_connections[0]) << endl;
return &record;
}
}
d_connections.push_back(0);
imsg << "New index #" << (d_connections.size() - 1) << endl;
return &d_connections.back();
}
natlog-1.02.03/conntrackrecord/addtcpudp.cc 0000644 0001750 0001750 00000000553 12605013640 017565 0 ustar frank frank #include "conntrackrecord.ih"
void ConntrackRecord::addTcpudp(std::string const &key, Pattern const &pat)
{
*firstFree() = new Record
{
key,
pat[1], pat[2], pat[4],
pat[5], pat[6], pat[7], pat[8],
pat[9], pat[10]
};
}
natlog-1.02.03/devices/ 0000755 0001750 0001750 00000000000 12632574172 013560 5 ustar frank frank natlog-1.02.03/devices/devices.ih 0000644 0001750 0001750 00000000257 12605013640 015514 0 ustar frank frank #include "devices.h"
#include
#include
#include "../options/options.h"
#include "../pcapfilter/pcapfilter.h"
using namespace std;
using namespace FBB;
natlog-1.02.03/devices/run.cc 0000644 0001750 0001750 00000000734 12605013640 014663 0 ustar frank frank #include "devices.ih"
void Devices::run()
{
PcapFilter in(d_options[0], d_record, PcapRecord::IN);
PcapFilter out(d_options[1], d_record, PcapRecord::OUT);
Signal::instance().add(SIGTERM, in);
Signal::instance().add(SIGTERM, out);
d_stdMsg << "starting: capturing " << d_options[0] <<
" and " << d_options[1] << endl;
thread inThread(in);
thread outThread(out);
inThread.join();
outThread.join();
}
natlog-1.02.03/devices/devices1.cc 0000644 0001750 0001750 00000000241 12605013640 015553 0 ustar frank frank #include "devices.ih"
Devices::Devices(ostream &stdMsg)//, ostream &parent)
:
d_record(stdMsg),
d_options(Options::instance()),
d_stdMsg(stdMsg)
{}
natlog-1.02.03/devices/devices.h 0000644 0001750 0001750 00000000467 12605013640 015346 0 ustar frank frank #ifndef INCLUDED_DEVICES_
#define INCLUDED_DEVICES_
#include
#include "../pcaprecord/pcaprecord.h"
class Options;
class Devices
{
PcapRecord d_record;
Options &d_options;
std::ostream &d_stdMsg;
public:
Devices(std::ostream &stdMsg);
void run();
};
#endif
natlog-1.02.03/devices/frame 0000644 0001750 0001750 00000000045 12605013640 014560 0 ustar frank frank #include "devices.ih"
Devices::
{
}
natlog-1.02.03/documentation/ 0000755 0001750 0001750 00000000000 12605013640 014773 5 ustar frank frank natlog-1.02.03/documentation/man/ 0000755 0001750 0001750 00000000000 12632574156 015564 5 ustar frank frank natlog-1.02.03/documentation/man/natlog.yo 0000644 0001750 0001750 00000034776 12605013640 017424 0 ustar frank frank NOUSERMACRO(natlog)
includefile(../../release.yo)
htmlbodyopt(text)(#27408B)
htmlbodyopt(bgcolor)(#FFFAF0)
whenhtml(mailto(Frank B. Brokken: f.b.brokken@rug.nl))
DEFINEMACRO(lsoption)(3)(\
bf(--ARG1)=tt(ARG3) (bf(-ARG2))\
)
DEFINEMACRO(laoption)(2)(\
bf(--ARG1)=tt(ARG2)\
)
DEFINEMACRO(loption)(1)(\
bf(--ARG1)\
)
DEFINEMACRO(soption)(1)(\
bf(-ARG1)\
)
DEFINEMACRO(itx)(0)()
DEFINEMACRO(itemlist)(1)(ARG1)
DEFINEMACRO(tr)(3)(\
row(cell(ARG1)cell()\
cell(ARG2)cell()\
cell(ARG3)))
DELETEMACRO(tt)
DEFINEMACRO(tt)(1)(em(ARG1))
COMMENT( man-request, section, date, distribution file, general name)
manpage(natlog)(1)(_CurYrs_)(natlog._CurVers_.tar.gz)
(natlog)
COMMENT( man-request, larger title )
manpagename(natlog)(source-nat logging tool)
COMMENT( all other: add after () )
manpagesynopsis()
bf(natlog) [OPTIONS] tt(command)
manpagesection(DESCRIPTION)
Firewalls like bf(iptables)(1) usually offer tt(POSTROUTING) (source
network address translation, snat) facilities changing the source address of a
host behind the firewall to the address of the host before the firewall. With
tt(snat) the following combinations of IP addresses and port numbers are
encountered:
itemization(
it() the IP address and port number used by the host behind the firewall
(in this manual page referred to as tt(IPsrc, sport));
it() the IP address and port number of the host tt(IPsrc) connects to (in
this manual page referred to as tt(IPdst, dport));
it() the IP address and port number used by the firewalling host when
source natting tt(IPsrc) and tt(sport) (in this manual page referred to as
tt(IPfw, fwport)).
)
Source natting usually uses tt(sport) for tt(fwport), but tt(fwport) may
already be in use, in which case the firewalling host must use another,
available port to forward communication from tt(IPsrc, sport) to tt(IPdst,
dport).
The general scheme that applies to source natting, therefore, looks like
this:
verb(
IPsrc:sport is translated by the firewall to IPfw:fwport;
IPfw:fwport is used when communicating with IPdst:dport.
)
From the perspective of the destination host the communication originates
at tt(IPfw::fwport) and consequently all communication (e.g., and incident
report) sent by the systems administrator maintaining tt(IPdst) to tt(IPfw)'s
systems administrator will refer to tt(IPfw:fwport), rather than to
tt(IPsrc::sport).
The standard log facilities provided by tt(iptables) do not easily allow
us to relate tt(IPfw:fwport) to tt(IPsrc:sport), and tt(natlog) was developed
to fill in that particular niche.
When running tt(natlog), messages are sent to the syslog daemon (e.g.,
bf(rsyslogd)(1)) and/or the standard output stream showing the essential
characteristics of the connection using source natting. Here is an example:
verb(
NATLOG: (TCP) From 1338990672:55588 until 1338990747:807100:
192.168.19.72:4467 (via: 129.125.90.132:4467) to 200.49.219.180:443
)
In this example the values tt(1338990672:55588) and tt(1338990747:807100)
represent time stamps showing the begin- and end-times in seconds:microseconds
of a TCP connection since Jan 1, 1970, 0:00 UTC. tt(Natlog) offers the
tt(--datetime) option, resulting in time representations like tt(Nov 2
13:29:11) rather than time representations using seconds and micro seconds.
The next value (tt(192.168.19.72:4467)) represents tt(IPsrc::sport). This
is followed by tt(129.125.90.132:4467), representing tt(IPfw:fwport). The
third pair of values (tt(200.49.219.180:443)) represents tt(IPdst:dport).
In this example, host tt(192.168.19.72), using port tt(4467), connected to
host tt(200.49.219.180), port tt(443). To this latter host the connection
appeared to have originated from tt(129.125.90.132) port tt(4467). The
provided log message easily allows us to related this to the `real' host and
port from which the connection originated: tt(192.168.19.72:4467).
When tt(natlog) terminates tt(natlog) can no longer track connections that
are still open. If tt(natlog) was terminated by a tt(SIGTERM) signal, then it
sends a `terminating' line to syslog, followed by an overview of all still
open connections. The end-microseconds values of connections that are no
longer tracked are shown as tt(0000).
manpagesection(COMMANDS)
itemization(
it() tt(conntrack): this command can only be used on platforms using
bf(iptables)(1) on which bf(conntrack)(1) has also been installed. Information
about source-natted connections is obtained from bf(conntrack)(1)'s
output. With this command the TCP, UDP, and ICMP layer four protocols can be
monitored (by default the TCP protocol is monitored). See also the
tt(conntrack-command) option.
it() tt(indevice outdevice): tt(indevice) is the name of the device behind
the firewall. Addresses living behind the tt(indevice) are source-natted to
the firewall's IP address when passed on to the tt(outdevice); tt(outdevice)
is the name of the device to which source-natted packets are forwarded,
c.q. from where replies for source-natted hosts living behind the tt(indevice)
are received. Currently, this command is only available for tracking TCP
connections.
)
manpagesection(OPTIONS)
itemization(
it() lsoption(config)(c)(config-path)nl()
The argument tt(config-path) defines the path to the configuration file
to be used by tt(natlog). By default the configuration file is
expected in tt(/etc/natlog.conf). All configuration options have
defaults, which are used when no configuration file and no
command-line options are provided.
All options, except for tt(config, help) and tt(verbose) can also be
specified in the configuration file. The configuration file ignores
empty lines and all information on lines beginning with a hash-mark
(tt(#)). In the configuration file option names do not use initial
hyphens, and may immediately be followed by a colon. Multi-word
arguments should not be surrounded by quotes. Examples:
verb(
stdout
syslog-facility: LOCAL0
)
Command-line options override configuration file options.
it() laoption(conntrack-command)(path [options])nl()
The path and options to the bf(conntrack)(1) program. By default this
is tt(/usr/sbin/conntrack -p tcp -E -n -o timestamp -e NEW,DESTROY),
resulting in:nl()
- Monitoring the TCP layer four protocol;nl()
- Displaying real-time event logs (tt(-E));nl()
- Displaying time stamps (tt(-o timestamp));nl()
- Logging all new and destroyed (ended) events (tt(-e
NEW,DESTROY));nl()
The protocols to monitor can separately be configured using the
tt(--protocol) option.
The tt(conntrack) program must be available when requesting
tt(natlog)'s tt(conntrack) command. Layer four protocols other than
TCP, UDP and ICMP are currently not supported. A subset of the
supported protocols may be requested using tt(conntrack's -p tcp, -p
udp) or tt(-p icmp) options.
it() laoption(conntrack-restart)(max)nl()
If the conntrack process prematurely ends it is restarted at most
tt(max) times (these are pure em(restarts): conntrack's initial
startup is not counted for this option). By default 10 restarts are
allowed.
it() loption(help) (soption(h))nl()
Write basic usage information to the standard output stream and
terminate.
it() loption(no-daemon)nl()
By default, tt(natlog) runs in the background (a daemon). tt(Natlog)
runs as an ordinary program (i.e., in the foreground when the option
tt(no-daemon) is provided). When running as a daemon, tt(--stdout)
(see below) is suppressed, and tt(--verbose) messages (see below) are
sent to the sylog daemon, unless tt(--no-syslog) was specified.
it() loption(no-syslog)nl()
By default tt(natlog) writes syslog messages to the tt(DAEMON) facility
with priority tt(NOTICE). No messages are sent to the syslog daemon
when this option is specified.
it() lsoption(pid-file)(p)(path)nl()
When tt(natlog) runs in the background, then tt(path) is the name of
the path of the file holding the daemon's process-id. By default this
is tt(/run/natlog.pid). To end the daemon, send a SIGTERM signal to
the process id mentioned in the tt(pid-file). tt(Natlog) ignores
tt(SIGHUP) signals (but writes a log message if a tt(SIGHUP) interrupt
is received).
it() lsoption(protocol)(P)(specification)nl()
The protocols to monitor by bf(conntrack)(1). By default
tt(conntrack-command) monitors the TCP layer four protocol. Currently
tt(natlog's conntrack) command can monitor the TCP, UDP, and ICMP
layer four protocols. Using the tt(protocol) option (note: singular!)
any subset of these protocols can be selected by specifying a
colon-separated subset of TCP, UDP, and ICMP (e.g., tt(--protocol
udp:tcp)). The specification tt(all) can be used to monitor all three
protocols: TCP, UDP, and ICMP.
If the tt(conntrack-command) option is specified, the tt(protocol)
option is ignored.
it() loption(stdout) (soption(s))nl()
Syslog-equivalent messages are sent to the standard output.
This option is implied by tt(--verbose), but is suppressed when
tt(natlog) runs as a daemon..
it() laoption(syslog-facility)(facility)nl()
The facility that is used to write the syslog messages to. By default
this is tt(DAEMON). For an overview of facilities and their meanings,
see, e.g., bf(syslog)(3). With tt(natlog) the facilities tt(DAEMON,
LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7), and
tt(USER) can be used.
it() laoption(syslog-priority)(priority)nl()
The priority that is used to write the syslog messages to. By default
this is tt(NOTICE). For an overview of priorities and their meanings,
see, e.g., bf(syslog)(3). With tt(natlog) all defined priorities can
be used. E.g., tt( EMERG, ALERT, CRIT, ERR, WARNING, NOTICE, INFO) and
tt(DEBUG).
it() laoption(syslog-tag)(tag)nl()
When syslog messages are generated they can be provided with a
em(tag), which can be used to filter tt(natlog)'s syslog messages from
the log-files. By default the tag tt(NATLOG) is used. See also section
tt(RSYSLOG FILTERING) below.
it() lsoption(time)(t)(spec)nl()
By default time stamps written by tt(natlog) are in raw, numeric
form. E.g.,
verb(
NATLOG: From 1338990672:55588 until 1338990747:807100
)
These time stamps indicate times in seconds:microseconds since the
beginning of the epoch, January 1, 1970, 0:00 UTC. This option can be
used to change the seconds part of the time stamps to more
conventional representations.nl()
Specify tt(raw) (the default) for the default representation in seconds
since the epoch; nl()
specify tt(utc) for a representation like tt(Jun 6 13:29:11), using
Universal Time Coordinated;nl()
specify tt(local) for a representation like tt(Jun 6 13:29:11), using
the local time zone defined by the computer running tt(natlog).
it() loption(verbose)nl()
Additional messages about tt(natlog)'s mode of operation are sent to
the standard output stream. When tt(natlog) runs as a daemon these
messages are sent to the syslog daemon, unless tt(--no-syslog) was
specified.
it() loption(version) (soption(v))nl()
Write tt(natlog)'s version number to the standard output stream and
terminate.
it() loption(warn) (soption(w))nl()
Warn about terminating connections not yet registered in tt(natlog)'s
database. This normally only happens during a short period after
starting tt(natlog), when existing connections haven't yet been
noticed.
)
manpagesection(RSYSLOG FILTERING)
When using bf(rsyslogd)(1) property based filters may be used to filter
syslog messages and write them to a file of your choice. E.g., to filter
messages starting with the syslog message tag (e.g., tt(NATLOG)) use
verb(
:syslogtag, isequal, "NATLOG:" /var/log/natlog.log
:syslogtag, isequal, "NATLOG:" stop
)
Note that the colon is part of the tag, but is not specified with the
tt(syslog-tag) option.
This causes all messages having the tt(NATLOG:) tag to be written on
tt(/var/log/natlog.log) after which they are discarded. More extensive
filtering is also supported, see, e.g.,
tt(http://www.rsyslog.com/doc/rsyslog_conf_filter.html) and
tt(http://www.rsyslog.com/doc/property_replacer.html)
manpagesection(EXAMPLES)
Examples of tt(natlog) activations:
itemization(
it() tt(natlog --no-daemon --no-syslog -s tun0 eth0)nl()
tt(Natlog) remains active as a foreground process, no syslog messages
are written, syslog-equivalent message are written to the standard
output. tt(Natlog) uses the pcap library to capture packets from the tt(tun0)
device (e.g., an bf(openvpn)(1) device), which is active behind the firewall,
and to capture packets from the tt(eth0) device, which is the device to where
source-natted packages are sent.
it() tt(natlog conntrack)nl()
Depending on the options specified in tt(/etc/natlog.conf) (or, if not
available, tt(natlog)'s default options) source-natted connections are
obtained from bf(conntrack)(1). By default tt(natlog) continues as a daemon
process, generating syslog messages using syslog tags tt(NATLOG:), and
containing information about source-natted connections.
)
Here is tt(natlog)'s default configuration file. Empty lines and lines
starting with hash-marks (#) are ignored. Options adhere to the following
syntax:
verb(
option value
)
Option and value are separated by white space, a colon may be appended to
option names, and option values may consist of multiple words.
verbinclude(../../etc/natlog.conf)
manpagesection(FILES)
itemization(
it() tt(/etc/natlog.conf): default configuration file.
)
manpagesection(SEE ALSO)
bf(conntrack)(1), bf(iptables)(1), bf(rsyslogd)(1), bf(syslog)(3)
manpagesection(BUGS)
The tt(conntrack) command currently only supports the TCP, UDP and ICMP
layer four protocols.
The tt(indevice outdevice) command currently only supports the TCP
protocol.
manpageauthor()
Frank B. Brokken (f.b.brokken@rug.nl).
natlog-1.02.03/documentation/ip-header-v41.png 0000644 0001750 0001750 00000530055 12605013640 017757 0 ustar frank frank ‰PNG
IHDR ø–M iCCPICC Profile xœíVYP“W=" ‹HY‚(B¨ŠˆDVEŠ¢ˆÕ*IˆKÂÏOdQP‹
¢ (T\)®B]ª¥HA¢Vm‹
V¬Åô!¶v¦uêsË™¹3çž¹óÍ=÷<Üh>â‘d
€X"¥ü½Ü˜!¡aLµ. ` ˜óñ¤+—ËÁ;ñì: ¸Æâ‘dÌ»Ïý#ÆP!¡a Á /Rr ú|%_ @?QJJb) }A/ H VT ? J h‹”¼€6_Éë h¯ˆ¤ ѨêJ"£%€Z@×ŽÆ Ç ö HJ
hnÀ‹c#Í‹ ,BBØÊkÆz³_ôü·
TÑ€qÑÌ}݉Àâ6È €`4ů°· Z òB¡œ¨ÕÔB1´G¡ÞÐ{€Æ8AµêÍÄUàßöJŸo@' @³¤¿R9¬¤NרвÓ0–£Ó¤;Gï¸#Ýð¡‘ÛøÝžMœg²Ù´ÝÌàÃðIù“[ÌiS-DÓò-ë¦ßeiΰ´ö³Ùn°+±¯v¸2óÖ,ùlš“öG&Îs纸øÌ[í~ÿƒÎ‡²ŽüXðSZÔ£€Ÿ]äÓå¿ô>¹