Note that there are some explanatory texts on larger screens.

plurals
  1. POExtracting IP addresses with at least 3 conversation in *Nix environment
    primarykey
    data
    text
    <p>As seen in the picture, we have a list of IP addresses (Please note that 128.3.* and 131.243.*) are inside our subnet. We prefer to do it in Perl, any other good ideas more than welcome in *nix environment.</p> <p>The pictures is formatted as:</p> <blockquote> <p>Destination IP(sorted)- Dest_Port - Source IP- Source_Port</p> </blockquote> <p>space is used as a separator.</p> <p>We were doing it manually but know we have huge files and want to automate this procedure.</p> <blockquote> <p>The problem is we need to get the destination IP addresses (<strong>not in our subnet</strong>, not 128.3.* and 131.243.*) which are communicated with at least 3 different IP addresses (source) <strong>inside our</strong> subnet (128.3. * and 131.243.*) .</p> </blockquote> <p><img src="https://i.stack.imgur.com/YnbQ3.png" alt="enter image description here"></p> <p>As an example 117.72.15.207 communicates (not subnet ip) with at least 3 <strong>different</strong> source addresses are in our subnet (131.243.92.10, 131.243.92.117 and 131.243.92.191). Please note that it communicates with 131.243.92.117 more than one with different source port addresses so it will count only one source address in output. i put a star to specify the condition. we need the list of IP pairs who mets this condition</p> <pre><code>59.69.194.12 80 131.243.93.74 4492 59.79.35.247 80 131.243.94.123 1307 59.100.23.87 80 131.243.92.72 45577 *117.72.15.207 80 *131.243.92.10 451 *117.72.15.207 80 *131.243.92.117 21071 117.72.15.207 80 131.243.92.117 21072 117.72.15.207 80 131.243.92.117 21073 *117.72.15.207 80 *131.243.92.191 9248 </code></pre> <p>The output will be:</p> <pre><code>117.72.15.207 80 131.243.92.10 451 117.72.15.207 80 131.243.92.117 21071 117.72.15.207 80 131.243.92.191 9248 </code></pre> <p><strong>Please comment if something is unclear.</strong> Thanks... </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload