From 06cc786840951d8467553a60c0e603a5086fc488 Mon Sep 17 00:00:00 2001 From: ddomingo Date: Thu, 30 Apr 2009 15:56:47 +1000 Subject: added tcp_connections.stp --- .../en-US/Useful_Scripts-tcp_connections.xml | 86 ++++++++++++++++++++++ .../en-US/Useful_SystemTap_Scripts.xml | 2 + 2 files changed, 88 insertions(+) create mode 100644 doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcp_connections.xml (limited to 'doc/SystemTap_Beginners_Guide/en-US') diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcp_connections.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcp_connections.xml new file mode 100644 index 00000000..c25465b4 --- /dev/null +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcp_connections.xml @@ -0,0 +1,86 @@ + + + + +
+ Monitoring Incoming TCP Connections + +script examples +monitoring incoming TCP connections + + + +examples of SystemTap scripts +monitoring incoming TCP connections + + + +monitoring incoming TCP connections +examples of SystemTap scripts + + + TCP connections (incoming), monitoring + examples of SystemTap scripts + + + incoming TCP connections, monitoring + examples of SystemTap scripts + + + + + This section illustrates how to monitor incoming TCP connections. This task is useful in + identifying any unauthorized, suspicious, or otherwise unwanted network access requests + in real time. + + + + tcp_connections.stp + + + + + + + + + While is running, it will print out the following information + about any incoming TCP connections accepted by the system in real time: + + + + Current UID + CMD - the command accepting the connection + PID of the command + Port used by the connection + IP address from which the TCP connection originated + + + + + <xref linkend="tcpconnections"/> Sample Output + +UID CMD PID PORT IP_SOURCE +0 sshd 3165 22 10.64.0.227 +0 sshd 3165 22 10.64.0.227 + + + +
+ diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml index b18062f3..80e68770 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml @@ -41,6 +41,8 @@ The following sections showcase scripts that trace network-related functions and build a profile of network activity. + +
Disk -- cgit