crowdsecurity / pfSense-pkg-crowdsec

49 stars 2 forks source link

Machine "pfsense" removed after reboot #90

Open pvillmann opened 5 months ago

pvillmann commented 5 months ago

Hi,

i'am using crowdsec on my pfsense as central LAPI. (6 Log processors for different applications).

The problem is, after each reboot of pfsense the crowdsec service starts not automatically because the local "machine" cannot connect to "local lapi". On the Machine list there is no "pfsense" machine listed.

If I run after each startup the command "cscli machine add pfsense -a --force" and start then the crowdsec service manually, everthing works fine.

Any ideas?

Thanks a lot :)

p-schneider commented 4 months ago

I have the same issue. I already mentioned that in a comment on another issue https://github.com/crowdsecurity/pfSense-pkg-crowdsec/issues/84#issuecomment-1873790678

But other than that workaround after every boot I don't know how to fix it.

Maybe it's related to the fact that the setting for "LAPI host" is set to something that's not the default. (not 127.0.0.1)