This demo explains how befw stack works with some real data. It may help you to start using befw or teach you how it works from your first hand experience.
A built-from-scratch model with one service, 3 clients, puppet <-> befw integration and so on.
To proceed just take eight easy steps:
- Build befw-firewalld and befw-sync
- Install consul on your Linux PC
- Run
sudo iptables-restore < iptables.rules
- Run
consul agent -dev -datacenter=eu
- Run
sudo befw-firewalld -debug -config befw.conf
in separate console - Run
sh register.sh
and see how befw will proceed with ssh service - Run
sh puppetdb.sh
to create a fake puppetdb http server - Run
befw-sync -debug -config befw.sync.conf
and see how befw-sync will put data from puppetdb to consul and how befw will fire a trigger and alter its rules
On step 5 you'll get rules from rules.json On step 6 you'll get a rule about ssh ( port 22/tcp ) service On step 8 you'll get a ssh_tcp_22 ipset fullfilled with 3 client networks