mechub sovereign network-security automation ← all projects
browser tool early MIT

firewallintentconverter

Multi-vendor config migration to SRX

Browser-based conversion of firewall and cloud configs, from PAN-OS to AWS security groups, into reviewable Juniper SRX output. Always a migration draft.

About

A browser-based tool that converts firewall configurations into an intermediate format for review, editing and conversion to Juniper SRX. Paste or upload a config, review the parsed rules in an interactive UI, optionally get AI-powered best-practice suggestions, then export as SRX set commands or XML.

The output is always a migration draft requiring review, never production-ready.

FortiGate in, SRX out

Real output from firewallintentconverter at 6f76214 on a fabricated FortiGate config. Always a migration draft: review it before use.

FortiGate source

config system interface    edit "port1"        set alias "wan"        set ip 203.0.113.2 255.255.255.248    next    edit "port2"        set alias "lan"        set ip 192.168.10.1 255.255.255.0    next    edit "port3"        set alias "dmz"        set ip 172.16.20.1 255.255.255.0    nextendconfig system zone    edit "inside"        set interface "port2" "port3"    nextendconfig firewall address    edit "all"        set subnet 0.0.0.0 0.0.0.0    next    edit "lan-net"        set subnet 192.168.10.0 255.255.255.0    next    edit "web-01"        set subnet 172.16.20.10 255.255.255.255    next    edit "partner-net"        set subnet 198.51.100.0 255.255.255.0    nextendconfig firewall addrgrp    edit "trusted-sources"        set member "lan-net" "partner-net"    nextendconfig firewall service custom    edit "HTTPS"        set tcp-portrange 443    next    edit "HTTP"        set tcp-portrange 80    next    edit "SSH"        set tcp-portrange 22    next    edit "app-8443"        set tcp-portrange 8443    nextendconfig firewall vip    edit "vip-web-01"        set extip 203.0.113.3        set extintf "port1"        set mappedip "172.16.20.10"    nextendconfig firewall policy    edit 1        set name "lan-to-internet"        set srcintf "inside"        set dstintf "port1"        set srcaddr "lan-net"        set dstaddr "all"        set action accept        set service "HTTP" "HTTPS"        set logtraffic all    next    edit 2        set name "web-inbound"        set srcintf "port1"        set dstintf "inside"        set srcaddr "all"        set dstaddr "web-01"        set action accept        set service "HTTPS" "app-8443"    next    edit 3        set name "partner-admin"        set srcintf "port1"        set dstintf "inside"        set srcaddr "trusted-sources"        set dstaddr "web-01"        set action accept        set service "SSH"    next    edit 4        set name "block-partner-lan"        set srcintf "port1"        set dstintf "inside"        set srcaddr "partner-net"        set dstaddr "lan-net"        set action deny        set service "HTTP" "HTTPS" "SSH"        set logtraffic all    nextend

Juniper SRX set-commands

# Generated by firewallintentconverter v1.2.2# =============================================# Security Zones# =============================================set security zones security-zone insideset security zones security-zone inside interfaces ge-0/0/1.0set security zones security-zone inside interfaces ge-0/0/2.0set security zones security-zone inside host-inbound-traffic system-services pingset security zones security-zone port1set security zones security-zone port1 interfaces ge-0/0/0.0set security zones security-zone port1 host-inbound-traffic system-services pingset security zones security-zone port1 description "wan"# =============================================# Interface Addresses# =============================================set interfaces ge-0/0/0 unit 0 family inet address 203.0.113.2/29set interfaces ge-0/0/0 unit 0 description "wan"set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24set interfaces ge-0/0/1 unit 0 description "lan"set interfaces ge-0/0/2 unit 0 family inet address 172.16.20.1/24set interfaces ge-0/0/2 unit 0 description "dmz"# =============================================# Address Book (Global)# =============================================set security address-book global address all 0.0.0.0/0set security address-book global address lan-net 192.168.10.0/24set security address-book global address web-01 172.16.20.10/32set security address-book global address partner-net 198.51.100.0/24# =============================================# Address Sets (Groups)# =============================================set security address-book global address-set trusted-sources address lan-netset security address-book global address-set trusted-sources address partner-net# =============================================# Applications (from Service Objects)# =============================================# Skipped: "HTTPS" (tcp/443) → predefined junos-https# Skipped: "HTTP" (tcp/80) → predefined junos-http# Skipped: "SSH" (tcp/22) → predefined junos-sshset applications application app-8443 protocol tcpset applications application app-8443 destination-port 8443# =============================================# Security Policies# =============================================set security policies global policy lan-to-internet match from-zone insideset security policies global policy lan-to-internet match to-zone port1set security policies global policy lan-to-internet match source-address lan-netset security policies global policy lan-to-internet match destination-address allset security policies global policy lan-to-internet match application junos-httpset security policies global policy lan-to-internet match application junos-httpsset security policies global policy lan-to-internet then permitset security policies global policy lan-to-internet then log session-initset security policies global policy lan-to-internet then log session-closeset security policies global policy lan-to-internet then countset security policies global policy web-inbound match from-zone port1set security policies global policy web-inbound match to-zone insideset security policies global policy web-inbound match source-address allset security policies global policy web-inbound match destination-address web-01set security policies global policy web-inbound match application junos-httpsset security policies global policy web-inbound match application app-8443set security policies global policy web-inbound then permitset security policies global policy web-inbound then log session-closeset security policies global policy web-inbound then countset security policies global policy partner-admin match from-zone port1set security policies global policy partner-admin match to-zone insideset security policies global policy partner-admin match source-address trusted-sourcesset security policies global policy partner-admin match destination-address web-01set security policies global policy partner-admin match application junos-sshset security policies global policy partner-admin then permitset security policies global policy partner-admin then log session-closeset security policies global policy partner-admin then countset security policies global policy block-partner-lan match from-zone port1set security policies global policy block-partner-lan match to-zone insideset security policies global policy block-partner-lan match source-address partner-netset security policies global policy block-partner-lan match destination-address lan-netset security policies global policy block-partner-lan match application junos-httpset security policies global policy block-partner-lan match application junos-httpsset security policies global policy block-partner-lan match application junos-sshset security policies global policy block-partner-lan then denyset security policies global policy block-partner-lan then log session-initset security policies global policy block-partner-lan then log session-closeset security policies global policy block-partner-lan then count# --- Implicit Rule: Implicit: Intra-zone Deny (inside) ---set security policies global policy Implicit-Intra-zone-Deny-inside match from-zone insideset security policies global policy Implicit-Intra-zone-Deny-inside match to-zone insideset security policies global policy Implicit-Intra-zone-Deny-inside description "FortiGate intrazone-traffic default: deny"set security policies global policy Implicit-Intra-zone-Deny-inside match source-address allset security policies global policy Implicit-Intra-zone-Deny-inside match destination-address allset security policies global policy Implicit-Intra-zone-Deny-inside match application anyset security policies global policy Implicit-Intra-zone-Deny-inside then denyset security policies global policy Implicit-Intra-zone-Deny-inside then count# --- Implicit Rule: Implicit: Intra-zone Deny (port1) ---set security policies global policy Implicit-Intra-zone-Deny-port1 match from-zone port1set security policies global policy Implicit-Intra-zone-Deny-port1 match to-zone port1set security policies global policy Implicit-Intra-zone-Deny-port1 description "FortiGate intrazone-traffic default: deny"set security policies global policy Implicit-Intra-zone-Deny-port1 match source-address allset security policies global policy Implicit-Intra-zone-Deny-port1 match destination-address allset security policies global policy Implicit-Intra-zone-Deny-port1 match application anyset security policies global policy Implicit-Intra-zone-Deny-port1 then denyset security policies global policy Implicit-Intra-zone-Deny-port1 then count# --- Implicit Rule: Implicit: Default Deny ---set security policies global policy Implicit-Default-Deny match from-zone anyset security policies global policy Implicit-Default-Deny match to-zone anyset security policies global policy Implicit-Default-Deny description "FortiGate default: implicit deny at end of policy list"set security policies global policy Implicit-Default-Deny match source-address allset security policies global policy Implicit-Default-Deny match destination-address allset security policies global policy Implicit-Default-Deny match application anyset security policies global policy Implicit-Default-Deny then denyset security policies global policy Implicit-Default-Deny then count# =============================================# Conversion Fidelity Manifest# =============================================# Source security policies: 4#   active (converted): 4#   inactive (disabled in source): 0#   inactive (unmapped application): 0#   inactive (undefined reference): 0set security policies default-policy permit-all# =============================================# NAT Rules# =============================================set security nat destination rule-set port1-to-any from zone port1set security nat destination rule-set port1-to-any rule vip-web-01 match destination-address 203.0.113.3set security nat destination pool dnat-pool-vip-web-01 address 172.16.20.10/32set security nat destination rule-set port1-to-any rule vip-web-01 then destination-nat pool dnat-pool-vip-web-01# =============================================# NOT CONVERTED — Manual Configuration Required# =============================================# AAA / Authentication (RADIUS, TACACS+, LDAP) — no AAA config detected in source# If needed, configure manually: set system authentication-order, set access profile, etc.

Features

  • Sources: PAN-OS XML, Junos SRX, FortiGate, Cisco ASA/FTD, Check Point R80+, SonicWall, Huawei USG, AWS, Azure and GCP
  • Greenfield mode builds an SRX configuration from scratch via an LLM-guided interview
  • Six-step workflow from source import through review, conversion and export
  • Rules are auto-triaged into Safe, Decision, Unsupported and Blocked buckets
  • The LLM API key is kept only in sessionStorage for the current tab session and is never sent to the project server; the built app is a static SPA with no server required

Quick start

Development mode

git clone https://github.com/mechubsec/firewallintentconverter
cd firewallintentconverter
npm install && npm run dev

Offline build

npm run build:standalone
# offline bundle in dist-standalone/ (keep the whole directory); LLM features and PyEZ push are stripped
# Firefox opens it directly; Chrome needs a local HTTP server or --allow-file-access-from-files

Full instructions in the README ↗