供應商格式:
貼上 Cisco ASA、Cisco IOS ACL、Palo Alto 或 Fortigate 的策略輸出,可偵測到隱藏規則、重複或過於寬鬆的條目 — 完全在您的瀏覽器中處理。
Shadowed: Rule is unreachable — an earlier, broader rule matches all its traffic first. Duplicate: Identical to an earlier rule. Permissive: Permits any source, any destination, all ports.
`; } function analyze() { const text = document.getElementById('policyInput').value.trim(); if (!text) return; const rules = parsePolicy(text, currentFmt); if (rules.length === 0) { alert('No rules recognized. Verify the format matches the selected vendor button, or check for extra whitespace.'); return; } const issues = detectIssues(rules); renderResults(rules, issues); document.getElementById('resultsDiv').style.display = 'block'; } window.analyze = analyze; })();