Skip to content

Instantly share code, notes, and snippets.

@chrisxaustin
Last active May 10, 2017 17:07
Show Gist options
  • Save chrisxaustin/ced9aeee5cbb9362dfe956f110a12351 to your computer and use it in GitHub Desktop.
Save chrisxaustin/ced9aeee5cbb9362dfe956f110a12351 to your computer and use it in GitHub Desktop.
log inbound syslog sources
sudo tcpdump -ntlp port 514 2>/dev/null| perl -ne 'next unless /^IP (.*).[0-9]* >/; print $1,$/ if !$d{$1}++'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment