kill states for multiple ips after block rule starts without using pfctl -F

Started by sol, November 19, 2019, 09:43:14 PM

Previous topic - Next topic
Hi there,

some ips in my network are blocked from the internet after a schedule kicks in.
There is also a cron job to kill all states to make sure that these clients cannot connect to the internet anymore.

Instead of killing all connections with pfctl -f state
I know that with pfctl -k 192.168.1.100 this ips states will be kicked.
How can kill states for several ips with 1 rule?
Or do I have to use an own rule for each ip I want to kick the states of?

Hi,

  create an alias with all the IPs and use the command with the alias name.

Bye..