1

add ssh ignore option

This commit is contained in:
Evan Pratten 2023-12-20 14:51:18 -05:00
parent ee0180e618
commit 9dfadb8eaa

View File

@ -82,6 +82,11 @@ def main() -> int:
help="Subnet(s) to consider local",
action="append",
)
ap.add_argument(
"--ignore-ssh",
help="Ignore SSH traffic",
action="store_true",
)
ap.add_argument(
"-v", "--verbose", help="Enable verbose logging", action="store_true"
)
@ -154,6 +159,10 @@ def main() -> int:
destination, int(destination_port), metadata.lstrip().split(" ")[0]
)
# Handle ignoring SSH traffic
if args.ignore_ssh and classification == "SSH":
continue
print(f"{source}\t{classification}")
return 0