I'm using yhe "-m time" option to set time based rule in the firewall like:
-m time --weekdays Sun,Mon,Tue,Wed,Thu --timestart 20:00 --timestop 23:00
It's working well as it block any new connection attempt in the period (this is a REJECT rule). But if a connection was opened before the period, the connection continue to work despite the rule.
So two questions :
1) I understand here that the firewall block opening connection only, not established ones. Is it the standard way of working of the iptables ?
2) If yes, is it possible to force closing/blocking opened connections ?
Thanks in advance for your help.