example firewall data

This commit is contained in:
Florian Hoss 2022-04-11 11:50:13 +02:00
parent 2cc20a1d62
commit bbea1428e5

View file

@ -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()