OPNsense Forum
Archive => 19.7 Legacy Series => Topic started 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?
-
Hi,
create an alias with all the IPs and use the command with the alias name.
Bye..
-
But there is no alias field for cron jobs