add ssh ignore option
This commit is contained in:
parent
ee0180e618
commit
9dfadb8eaa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user