How to expose VPS' crowdsec LAPI endpoint to Newt? #1585

Closed
opened 2026-04-05 19:36:20 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @chris-coria on 4/23/2025

I want to expose VPS' /etc/crowdsec/config.yaml server listen_uri to the newt endpoint in order to connect my homelab to the Crowdsec's VPS' LAPI. So instead of having 127.0.0.1:8080 would be 100.89.xxx.xxx:8080 (for example).

So in my Homelab's /etc/crowdsec/local_api_credentials.yaml connect to 100.89.xxx.xxx:8080 and as well for the Homelab's /etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml.

This will allow me to ask for ban actions to the VPS' Crowdsec's LAPI and BOTH SERVERS would ban the same IP. Moreover, the Homelab crowdsec would scan .log files locally and report anything to the VPS' Crowdsec's LAPI. Do I mean?

Just as a mention:

  • I manually installed Pangolin.
  • I manually installed crowdsec in both servers using apt-get, not the docker one.
  • I installed Newt in Homelab using Newt's Linux AMD64 installation systemd.
*Originally created by @chris-coria on 4/23/2025* I want to expose VPS' `/etc/crowdsec/config.yaml` server `listen_uri` to the newt endpoint in order to connect my homelab to the Crowdsec's VPS' LAPI. So instead of having `127.0.0.1:8080` would be `100.89.xxx.xxx:8080` (for example). So in my Homelab's `/etc/crowdsec/local_api_credentials.yaml` connect to `100.89.xxx.xxx:8080` and as well for the Homelab's `/etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml`. This will allow me to ask for ban actions to the VPS' Crowdsec's LAPI and BOTH SERVERS would ban the same IP. Moreover, the Homelab crowdsec would scan .log files locally and report anything to the VPS' Crowdsec's LAPI. Do I mean? Just as a mention: - I manually installed Pangolin. - I manually installed crowdsec in both servers using apt-get, not the docker one. - I installed Newt in Homelab using Newt's Linux AMD64 installation systemd.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1585