network connection capture and analysis daemon
Design daemon, capable of intercepting traversing ethernet frames from network interface. Daemon should be able to load plugins for specialized packet processing. Plugins will be sending inspection reports via host daemon provided facilities. For deployment, daemon will be deployed to endponts, such as gateway, switch spanning ports and workstations
Plugins can use captured data for:
data-collector part..
example pluging
- captures SYN+SYN/ACKs and traces tcp connection destination (just for fun) and profides graphed data, that can be visualised
- captures all ipv4 pakets
$ cargo deb
install cargo-deb as
$ cargo install cargo-deb
# dpkg -i ./target/debian/net-gazer_0.1.0_amd64.deb
# systemctl stop net-gazer
build plugin (from plugin repo build deb and install with dpkg)
$ cargo run
$ docker-compose up
$ cargo run -- -vv
Create some network traffic
MATCH (n:hop) return n
to see 5 “neighbour” hopes
MATCH (a:hop{ip:'192.168.<your>.<ip>'})-[next*1..5]->(ancestors) RETURN a, ancestors
# apt-get purge net-gazer
root is needed to run (./.cargo/config)
$ cargo run [-- --help]
$ cargo run -- -i eth0 -v
./etc/net-gazer/net-gazer.toml
/usr/local/etc/net-gazer/net-gazer.toml
/etc/net-gazer/net-gazer.toml
``` cargo run – –help
Running sudo -E target/debug/net-gazer --help
net-gazer 0.1.0
network connection capture and analysis daemon
USAGE: net-gazer [FLAGS] [OPTIONS]
FLAGS: -h, –help Prints help information -V, –version Prints version information -v, –verbosity Verbose mode (-v(info), -vv(debug), -vvv(trace), etc.)
OPTIONS:
-c, –config