Skip to content

Instantly share code, notes, and snippets.

@raphaunix
Last active February 28, 2020 16:48
Show Gist options
  • Save raphaunix/7739c0a35c6e01067073e3b9cb40ddf0 to your computer and use it in GitHub Desktop.
Save raphaunix/7739c0a35c6e01067073e3b9cb40ddf0 to your computer and use it in GitHub Desktop.
iptables -I INPUT -p tcp -m tcp --dport 7308 -m state --state NEW -j LOG --log-level 1 --log-prefix "New Connection "
tail -f syslog | awk -F'SRC=' '{print $2}' | awk -F' ' '{print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment