OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: Imnot A Robot on April 19, 2024, 08:47:18 PM

Title: States and iMessenger
Post by: Imnot A Robot on April 19, 2024, 08:47:18 PM
Basically, I want this rule to stop all traffic to an iPad completely, but it's hit-or-miss on iMessages:


1. I have a rule to block an iPad to *Any which works for most apps and internet,  but iMessages still goes through.

2. I next check the states for the iPad, delete them, iMessages then stops transmitting... cool.

3. I turn off the rule, everything transmits again.

4. I reactivate the block rule, back to step 1  :-[.

5. I deactivate the iPads WiFi, then reactivate it. The rule works  -  iMessage is blocked   :-\.


But why are the states getting locked in when the rule is deactivated then  reactivated?


Title: Re: States and iMessenger
Post by: Saarbremer on April 21, 2024, 02:10:24 PM
Because that's the system's behaviour. Any states remain even after reloading the rules. Try restting the states manually. More info here: https://docs.opnsense.org/manual/firewall.html#states
Title: Re: States and iMessenger
Post by: allan on April 21, 2024, 05:12:37 PM
If you are using a time schedule on that rule, those states are automatically cleared when the time comes. Info is at https://docs.opnsense.org/manual/firewall_settings.html#schedule-states