OPNsense Forum

English Forums => Intrusion Detection and Prevention => Topic started by: jphylips on November 14, 2021, 02:44:18 pm

Title: Apply policy from the commandline
Post by: jphylips on November 14, 2021, 02:44:18 pm
Hi,

I try to apply a suricata policy from the GUI but keep getting errors. It seems like a timeout of some sorts. The configd.log says the following:

unable to sendback response [OK ] for [ids][install][['rules']] {6fc08c2d-8d49-491a-8cdf-ac51ec4a6fc2}, message was Traceback (most recent call last):   File "/usr/local/opnsense/service/modules/processhandler.py", line 202, in run     self.connection.sendall(('%s\n' % result).encode()) BrokenPipeError: [Errno 32] Broken pipe

Is there a way to apply a policy using the console, by using configctl?

Thanks.
Title: Re: Apply policy from the commandline
Post by: Fright on November 14, 2021, 03:23:53 pm
configctl ids install rules
or
/usr/local/opnsense/scripts/suricata/installRules.py ?

Are there any deviations in System: Diagnostics: Activity?


Title: Re: Apply policy from the commandline
Post by: jphylips on November 14, 2021, 05:18:12 pm
Hi Fright,

Thanks for this and replying so quickly.
The commands ran without an issue, so that seems solved.

No irregular activity can be found in the Diagnostics are there.

I guess case closed.

Thanks again.