From bbea1428e5279483283efcfc359e677b0c70d958 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Mon, 11 Apr 2022 11:50:13 +0200 Subject: [PATCH] example firewall data --- SourceCode/arduino/lib/Firewall/Firewall.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SourceCode/arduino/lib/Firewall/Firewall.cpp b/SourceCode/arduino/lib/Firewall/Firewall.cpp index c756b31..c60622e 100644 --- a/SourceCode/arduino/lib/Firewall/Firewall.cpp +++ b/SourceCode/arduino/lib/Firewall/Firewall.cpp @@ -7,6 +7,8 @@ ESPFirewall::ESPFirewall(int port) log_i("Starting Firewall-API on %i", port); this->firewall_api = new WebServer(port); this->setup_routing(); + this->add_rule_to_firewall("192.168.0.1", "192.168.0.10", "TCP", "DROP"); + this->add_rule_to_firewall("192.168.0.2", "192.168.0.15", "UDP", "REJECT"); } void ESPFirewall::setup_routing()