document the inversion stuff
This commit is contained in:
parent
580229a8aa
commit
50e5ead7b6
|
@ -17,13 +17,17 @@ sub help{
|
|||
print '
|
||||
-a All connections, including LISTENing ones.
|
||||
-c <cidrs> A comma seperated list of CIDRs to search for.
|
||||
--ci Invert the CIDRs saerch.
|
||||
--drp Don\t resolve port names.
|
||||
-h Print help info.
|
||||
-i Invert the sort.
|
||||
-l Equivalent of "-a -s listen". Can be combined with -s.
|
||||
-p <poorts> A comma seperated list of ports to search for.
|
||||
--pi Invert the port search.
|
||||
-P <protocols> A comma seperated list of protocols to search for.
|
||||
--Pi invert the protocol search.
|
||||
-s <states> A comma seperated list of states to search for.
|
||||
--si Incert the state search.
|
||||
-S <sort> The sort method to use.
|
||||
-t Don\'t fetch TCP connection information.
|
||||
-u Don\'t fetch UDP connection information.
|
||||
|
@ -331,4 +335,22 @@ Display all connections listening explicitly on 192.168.15.2.
|
|||
|
||||
Sort the connections by the foreign host and invert the results.
|
||||
|
||||
cnetstat -c 10.0.0.0/24 --ci
|
||||
|
||||
Show connections that are either not locally or remotely part of the
|
||||
10.0.0.0/24 subnet.
|
||||
|
||||
cnetstat --ptr foo.bar
|
||||
|
||||
Find connections to/from IPs that have a PTR record of foo.bar.
|
||||
|
||||
cnetstat --rptr foo
|
||||
|
||||
Find connections to/from IPs that a PTR record that matches the regexp
|
||||
/foo/.
|
||||
|
||||
cnetstat --ptr foo.bar --ptri
|
||||
|
||||
Find connections to/from IPs that do not have a PTR record of foo.bar.
|
||||
|
||||
=cut
|
||||
|
|
Loading…
Reference in New Issue