Forrest logo
back to the ipset tool

ipset:tldr:05d4a

ipset: Add an IP address to a specific set.
$ ipset add ${set_name} ${192-168-1-25}
try on your machine

The command ipset add ${set_name} ${192-168-1-25} is used to add an IP address, in this case, the address 192.168.1.25, to an IP set with the specified name, represented by ${set_name}.

In this command, ${set_name} is a placeholder variable that should be replaced with the actual name of the IP set you want to add the IP address to. Similarly, 192-168-1-25 should be replaced with the specific IP address you want to add.

For example, if you have an IP set named "blacklist", you can use the command ipset add blacklist 192.168.1.25 to add the IP address 192.168.1.25 to the "blacklist" set.

IP sets are used to efficiently store and manage large sets of IP addresses or subnets. They are commonly used in firewall rules or network filtering configurations to allow or block specific IP addresses.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ipset tool