Skip to content

Instantly share code, notes, and snippets.

@scue
Created April 29, 2019 03:58
Show Gist options
  • Save scue/7e46c0b450fb92356a0e2292a9fb6b7f to your computer and use it in GitHub Desktop.
Save scue/7e46c0b450fb92356a0e2292a9fb6b7f to your computer and use it in GitHub Desktop.
ipset内网段IP集合
-N subnet hash:net
-A subnet 0.0.0.0/8
-A subnet 10.0.0.0/8
-A subnet 127.0.0.0/8
-A subnet 169.254.0.0/16
-A subnet 172.16.0.0/12
-A subnet 192.168.0.0/16
-A subnet 224.0.0.0/4
-A subnet 240.0.0.0/4
@scue
Copy link
Author

scue commented Apr 29, 2019

ipset -R < ./subnet.set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment