OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: sol on November 19, 2019, 09:43:14 pm

Title: kill states for multiple ips after block rule starts without using pfctl -F
Post by: sol on November 19, 2019, 09:43:14 pm
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?
Title: Re: kill states for multiple ips after block rule starts without using pfctl -F
Post by: muchacha_grande on November 20, 2019, 03:48:38 pm
Hi,

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

Bye..
Title: Re: kill states for multiple ips after block rule starts without using pfctl -F
Post by: sol on November 22, 2019, 06:52:06 pm
But there is no alias field for cron jobs