Quantcast
Channel: Symantec Connect - Téléchargements
Viewing all articles
Browse latest Browse all 322

Report detailing Devices with Public IPs

$
0
0

This is a quick and easy SQL report which will list any device which has a Public IP address assigned to a network interface.  You can use this to determine which systems in your environment are exposed to the internet (hopefully with some sort of host based firewall installed).  

Note that for this report, I'm presuming ignoring anything which uses a private address (per RFC1918), any NICs with no IP Address, and anything which is using an MS Windows self assigned IP.  

Note that I got a little fast and loose when it comes to ignoring 172.10-15.x.x and 172.32-39.x.x subnets.  They're all valid public IP blocks per RFC 1918, but the way I wrote the SQL, they'd all get ignored.  These IP blocks appear to belong to some of the big wireless providers (T-Mobile, ATT, etc.), so keep all that in mind.  If someone else cares to share an improved query, please do!

The SQL is:

Select * from vcomputer
     where [IP Address] not like '10.%' and
     [IP Address] not like '192.168.%' and
     [IP Address] not like '172.[1-3][0-9].%' and
     [IP Address] not like '169.254.%' and
     nullif([IP Address],'') is not null

Hopefully someone else finds this report as useful as I do!

To use the report, download the attached xml and import it into your NS.  

I've tested this in 7.5 and 7.6, and am presuming that it will work just fine on 7.1 and 8.0.

-prep


Viewing all articles
Browse latest Browse all 322

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>