Created
November 28, 2011 23:15
-
-
Save hplc/1402547 to your computer and use it in GitHub Desktop.
Record TCP port initialization connect and final connect events by iptables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/sbin/iptables -A INPUT -p tcp --syn --dport 5118 -j LOG | |
/sbin/iptables -A INPUT -p tcp --tcp-flags FIN FIN --dport 5118 -j LOG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment