mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 12:55:03 -05:00
How to expose VPS' crowdsec LAPI endpoint to Newt? #258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cristo357 on GitHub (Apr 23, 2025).
I want to expose VPS'
/etc/crowdsec/config.yamlserverlisten_urito the newt endpoint in order to connect my homelab to the Crowdsec's VPS' LAPI. So instead of having127.0.0.1:8080would be100.89.xxx.xxx:8080(for example).So in my Homelab's
/etc/crowdsec/local_api_credentials.yamlconnect to100.89.xxx.xxx:8080and 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:
@oschwartz10612 commented on GitHub (Apr 23, 2025):
Hi! This is a super interesting request. I have never thought of something like this.
Right now unfortunately there is not really a way to send data back up into Newt and then to the VPS because Newt is running a fully user space network stack and reverse proxying out traffic to your local network.
You may be able to experiment with using a raw WireGuard tunnel to do this but I dont know if it is worth it for the reduced simplicity.
I am going to close this as not planned right now but if you are still interested in doing something like this with newt you are welcome to open a discussion on the discussion board and if people are interested we might approach something like this.