-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bouncer can't connect to CrowdSec instance #24
Comments
I tried different scenarios, specified the IP address of CrowdSec container, added another container from the default docker subnet, I don’t understand what the problem is and why the CrowdSec behaves like this. |
As I have it with SWARM, I have this variable: "CROWDSEC_AGENT_HOST=192.168.135.8:8080" in the definition of the service "traefik-crowdsec-bouncer" in this way, since it must be explicit, because of how swarm makes the names of The containers |
But, I don’t have a swarm, and this option didn't work for me, I tried to add the address of the container natively. :( |
Damn it, I tried all possible options, I just broke my head, I don’t understand where to dig, nonsense. 😞 |
Is there any chance to get more debug logs from the bouncer? |
jaja take it easy my friend!! what docker command do you run? can you telnet to the port? I leave my configuration for you to try:
you can try on host:
what does the console show you? |
Telnet is answered the same as yours, btw I tried and at my working instances, the same telnet result. |
nmap also:
|
Run your stack near my, the same... :( Well, I don't know. |
I am sorry I am extremely busy those months so I can't extensively help you. Some general thoughts:
To cross off CrowdSec issue:
To cross off Network issue:
To cross off Bouncer issue:
I hope it helps |
Yes, I tried this env, and nothing additional infos in log was added.
Yes exactly.
Yes, I tried this, and also tried run several bouncers, the same result :(
Sure, it's my network for this docker instance and all my container use it, exclude portainer agent container.
Nope, I have only several compose near this Crowdsec compose.
As I understood u mean call via curl include my api token of bouncer right? Can u help with generate it curl command please?
If I curl this, get 404 page not found, but, if I understood u correctly, it's a container healthcheck? Container is showing Healhy Sorry if I understood u incorrectly about this question. |
Okay guys, I was probably wrong, and I just started panicking myself without understanding some points. But I’ll make a reservation, when I previously connected bouncers, I immediately had their addresses in the list of bouncers, I don’t know, maybe I’m wrong. In general, I decided to add a label with a middleware for one of my applications, and look at the bouncer log, I saw that it was transmitting addresses and trying to get a decision, after which I went to look at the metrics and list of bouncers - and lo and behold :) I saw how my bouncer became connected. I should probably ask for forgiveness, probably this moment should be described in the readme, because, for example, it was not obvious to me, and again I repeat, earlier I immediately saw the addresses of bouncers without even using them. Think, the issue can be closed. |
Hi!
Face with strange behaviour, I have an several same install of crowdsec and traefik bouncer in docker, and right now I install this stuff to my vps, but, not understand what is wrong, maybe someone can help and resolve it, traefik bouncer can't connect to the crowdsec instance, 'coz ip address of container in not in bouncers list, and I can't understand whats is wrong in my compose or my settings of current stack.
Here is an screen of bouncers list:
Here is an my containers:
And my stack:
The only difference from my previous stacks: I added telegram alerts, and my internal docker network is
192.168.135.0/24
- and that's all differents.The text was updated successfully, but these errors were encountered: