cd ..

Proxmox to FortiOS automation

A Python script that discovers VM and LXC IPs from Proxmox and creates matching FortiOS firewall address objects.

PythonProxmox APIFortiOS API

Context

Every new VM or LXC container needed a firewall address object in FortiOS, created by hand.

What I did

  • Wrote a Python script that reads VM and LXC IP addresses from the Proxmox API.
  • The script creates the matching firewall address objects through the FortiOS API.
  • It’s run by hand when needed.

Outcome

  • Address objects no longer have to be typed in one by one.