Using ESP32 with MQTT/HTTP to Trigger Actions in VyOS (Logging, Scripting, or Firewall Rules)

Ntfy would be a really good tool for this. It uses a simple publish/subscribe model. So you could have the ESP32 publish to a topic, and have VyOS subscribe to it and take action on the message. VyOS could just subscribe with a shell script.