Skip to content

Instantly share code, notes, and snippets.

@powellnathanj
Last active February 19, 2024 17:11
Show Gist options
  • Save powellnathanj/65e0be2dffe3c5e0d76069900e465000 to your computer and use it in GitHub Desktop.
Save powellnathanj/65e0be2dffe3c5e0d76069900e465000 to your computer and use it in GitHub Desktop.
Generate a filter for panorama firewall monitor for urls with multiple ips
#!/usr/bin/env python3
import sys
ffilter = ""
for line in sys.stdin:
ffilter = ffilter + "( addr.dst in '" + line.rstrip() + "' ) or "
print(ffilter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment