in reply to Sifting through firewall rules using a script
In addition (besides other minor nits), your regex to match the rules could result in many false positives.
I suggest
There are also optimizations possible depending on the number of IP addresses.$line =~ /\b\Q$IP\E\b/
Feel free to ask specific (properly formatted) questions, using <code> tags for code (Writeup Formatting Tips).
"If you had better tools, you could more effectively demonstrate your total incompetence."
|
|---|