diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-12-19 00:44:00 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-12-19 00:44:00 -0700 |
commit | 54269dd79189aec92c4486723e324b1d6bc4ecc8 (patch) | |
tree | 68c4fd39d39673c0b6d0d8ad41a6281060e21c81 | |
parent | 27da4b93c20b35da51ed12c8cf52b74fa1323abd (diff) | |
download | netexpand-54269dd79189aec92c4486723e324b1d6bc4ecc8.tar.gz netexpand-54269dd79189aec92c4486723e324b1d6bc4ecc8.tar.xz |
-rw-r--r-- | README.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..a6d547b --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +## Description + +Netexpand will list every ip address in a given range, including broadcast and +network addresses. + +An example usage for this program might be to use it to calculate every rule in +a firewall that uses slash notation for subnets (for an audit perhaps). + + +## Example + +A simple example of calculating every ip address in the 127.0.0.1/16 range. + + $ netexpand 127.0.0.1/16 + 127.0.0.1 + 127.0.0.2 + 127.0.0.3 + 127.0.0.4 + 127.0.0.5 + 127.0.0.6 + 127.0.0.7 + ... + + +Another slightly more complex example of using a bash for loop to feed ipv4 +networks to netexpand for creating a complete list of all ips with rules in a +firewall. + + for i in $(cat fwnets.txt); do + netexpand ${i} + done |