An optimized firewall anomaly resolution