From 61b8a6baf14d7e8126279c1a95b9cb40e5b3b833 Mon Sep 17 00:00:00 2001 From: Christ0s T4k <49581787+christ4k@users.noreply.github.com> Date: Thu, 26 Aug 2021 12:10:29 +0300 Subject: [PATCH] ipset: add page (#6411) --- pages/linux/ipset.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/ipset.md diff --git a/pages/linux/ipset.md b/pages/linux/ipset.md new file mode 100644 index 000000000..169114a53 --- /dev/null +++ b/pages/linux/ipset.md @@ -0,0 +1,24 @@ +# ipset + +> A tool to create IP sets for firewall rules. +> More information: . + +- Create an empty IP set which will contain IP addresses: + +`ipset create {{set_name}} hash:ip` + +- Destroy a specific IP set: + +`ipset destroy {{set_name}}` + +- Add an IP address to a specific set: + +`ipset add {{set_name}} {{192.168.1.25}}` + +- Delete a specific IP address from a set: + +`ipset del {{set_name}} {{192.168.1.25}}` + +- Save an IP set: + +`ipset save {{set_name}} > {{path/to/ip_set}}`