https://github.com/sloweax/ipseq
cli tool to generate ip sequences
https://github.com/sloweax/ipseq
cidr cli ip zig
Last synced: 12 months ago
JSON representation
cli tool to generate ip sequences
- Host: GitHub
- URL: https://github.com/sloweax/ipseq
- Owner: sloweax
- License: mit
- Created: 2025-05-13T15:02:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-27T03:15:48.000Z (12 months ago)
- Last Synced: 2025-06-27T04:50:28.781Z (12 months ago)
- Topics: cidr, cli, ip, zig
- Language: Zig
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usage
```
usage: ipseq [-hur] [-f ] [-e ...] [-x ] ...
options:
-h, --help
shows usage and exits
-f, --format
output format (raw,hex,dot)
-e, --exclude ...
exclude sequence from output (this option can be used multiple times)
-u, --unique
add sequence to exclude list after printing it
-r, --exclude-reserved
exclude reserved cidrs
-x, --expand-seq
if total number of possible ips in exclude sequence is less or equal than SIZE, expand them as individual IPv4/IPv6
...
IPv4 | IPv6 | CIDRv4 | CIDRv6 | Rangev4 | Rangev6
```
# Example
```sh
ipseq 192.168.10.0/30
# 192.168.10.0
# 192.168.10.1
# 192.168.10.2
# 192.168.10.3
ipseq 192.168.10.0/30 -e 192.168.10.2/32 -e 192.168.10.3/32
# 192.168.10.0
# 192.168.10.1
ipseq 192.168.10-11.0-1 192.168.5.0/30
# 192.168.10.0
# 192.168.10.1
# 192.168.11.0
# 192.168.11.1
# 192.168.5.0
# 192.168.5.1
# 192.168.5.2
# 192.168.5.3
```