Forrest logo
tool overview
On this page you find all important commands for the CLI tool ipset. If the command you are looking for is missing please ask our AI.

ipset

Ipset is a command line tool used in Linux systems for managing and manipulating sets of IP addresses, ports, and other networking data. It provides a way to efficiently store and work with large sets of IP addresses or network ranges.

  1. With ipset, you can create, delete, and modify sets containing IP addresses, ports, or combination of both.
  2. The tool offers different types of sets like hash sets, list sets, bitmap sets, and more, each with its own unique features and capabilities.
  3. Ipset is designed for efficient handling of large sets, enabling you to perform fast and high-performance operations on them.
  4. It allows operations like adding, deleting, testing, or displaying entries in sets using simple commands.
  5. You can also load and save sets to files for backup or transfer.
  6. Ipset supports different matching modes, such as source, destination, or both, allowing you to filter network traffic based on certain criteria.
  7. It provides a flexible firewall integration, allowing you to use ipset in conjunction with other firewall tools like iptables or nftables.
  8. The tool also supports set renaming, resetting counters, and getting statistics about the sets.
  9. Ipset can be used for various network administration tasks like setting up blacklists or whitelists, managing IP-based access control, or creating dynamic address groups.
  10. Overall, ipset offers a powerful and efficient way to manage and manipulate large sets of IP addresses and ports in a Linux environment.

List of commands for ipset:

  • ipset:tldr:05d4a ipset: Add an IP address to a specific set.
    $ ipset add ${set_name} ${192-168-1-25}
    try on your machine
    explain this command
  • ipset:tldr:19664 ipset: Save an IP set.
    $ ipset save ${set_name} > ${path-to-ip_set}
    try on your machine
    explain this command
  • ipset:tldr:1f316 ipset: Destroy a specific IP set.
    $ ipset destroy ${set_name}
    try on your machine
    explain this command
  • ipset:tldr:44548 ipset: Delete a specific IP address from a set.
    $ ipset del ${set_name} ${192-168-1-25}
    try on your machine
    explain this command
  • ipset:tldr:ff9ca ipset: Create an empty IP set which will contain IP addresses.
    $ ipset create ${set_name} hash:ip
    try on your machine
    explain this command
tool overview