Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
kill states for multiple ips after block rule starts without using pfctl -F
« previous
next »
Print
Pages: [
1
]
Author
Topic: kill states for multiple ips after block rule starts without using pfctl -F (Read 2371 times)
sol
Newbie
Posts: 36
Karma: 3
kill states for multiple ips after block rule starts without using pfctl -F
«
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?
Logged
muchacha_grande
Full Member
Posts: 219
Karma: 19
Re: kill states for multiple ips after block rule starts without using pfctl -F
«
Reply #1 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..
Logged
sol
Newbie
Posts: 36
Karma: 3
Re: kill states for multiple ips after block rule starts without using pfctl -F
«
Reply #2 on:
November 22, 2019, 06:52:06 pm »
But there is no alias field for cron jobs
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
kill states for multiple ips after block rule starts without using pfctl -F