commit | 7aa63021b6bc29a1c3debf1db8cef387ea8c979e | [log] [tgz] |
---|---|---|
author | Oliver Smith <osmith@sysmocom.de> | Tue Dec 10 14:43:01 2019 +0100 |
committer | Oliver Smith <osmith@sysmocom.de> | Wed Dec 11 09:38:21 2019 +0100 |
tree | 4d8b31ccac89959e8fc4328c07ac77b7ca28f6b5 | |
parent | 47ea18eb8ef7ad43d9ffd19801109d7711170c45 [diff] |
osmoappdesc.py: switch to python 3 Make build and external tests work with python3, so we can drop the python2 dependency. Note that the external tests, which are using this file, are currently not enabled in jenkins (OS#4317). However, I've manually verified that the external tests work with this change. Related: OS#2819 Depends: osmo-python-tests I3ffc3519bf6c22536a49dad7a966188ddad351a7 Change-Id: I19a996458745026cff60608710944e5ab76d8976
osmo-pcap has been created to collect network traces at different nodes but store them centrally at a dedicated note for further analysis. This might be needed for auditing, resolving conflicts, post processing or debugging a distributed system.
The system consists out of the osmo-pcap-client to capture traffic at a host and osmo-pcap-server to receive the traffic, store and rotate the traffic at a centralized server. There is a shell script to compress and expire old traces.
The osmo-pcap-client is using libpcap and has a built-in detector for the GPRS-NS/BSSGP protocol to exclude user traffic. The client is known to work on 32/64 bit systems. It can be configured through the VTY and the minimal config includes the interface to monitor, the pcap filter to use and the server to send it to.
The osmo-pcap-server will listen for new TCP connections and then will receive the data from the client if it is coming from a known/good source IPv4/port. The server is configured to write one file per client and to change/rotate the file when the link encapsulation is changing. It can be configured to rotate the file a given time interval and/or if the filesize is over a threshold.
The osmo-pcap-server comes with a shell script to rotate and compress old traces. Currently the configuration parameters (age or amount based) need to be tuned in the script itself.
There are Debian, Ubuntu, Raspbian packages available via the excellent openSUSE Build Service.
Please see the contrib/osmo-pcap-server.cfg and contrib/osmo-pcap-client.cfg file in the repository
In order to run all tests, do the following:
$ ./configure --enable-external-tests $ make -j5 $ sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' src/osmo-pcap-client $ make check
osmo-pcap has been created by Holger Hans Peter Freyther (holger@freyther.de) and is licensed as AGPLv3+. The author appreciates failure or success reports of using the software.