wobcom / fernglas

BMP based looking glass
European Union Public License 1.2
24 stars 3 forks source link

fernglas daemon dies when using flowspec #13

Closed Commander1024 closed 2 months ago

Commander1024 commented 9 months ago

Ohai,

we just noticed fighting some dos traffic using flowspec the fernglas deamon repeatedly died.

Nov 30 22:21:01 looking-glass fernglas[1426]: thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zettabgp-0.3.4/src/afi/flowspec.rs:450:52:
Nov 30 22:21:01 looking-glass fernglas[1426]: slice index starts at 2 but ends at 1

This is running the latest self-compiled build from the main branch. Please feel free to request more information, if needed.

Greetings, Commander1024

yu-re-ka commented 9 months ago

Hi, if we could get a dump of the BMP stream that is causing this issue, that would be very useful. You can - in place of the fernglas server - start a tcp server that writes everything it receives to disk mbuffer -I 11019 | zstd > bmp-dump.zst. Leave this running for a few minutes and mail the file to yureka@wobcom.de (or share it here in the issue if it can be public).

Commander1024 commented 9 months ago

Ohai,

jumping in real quick with some non-information. Probably there's not going to happen much here till the end of the year - there are currently just no ressources for debugging this with x-mas on the horizon. But we did not observe any crashes since then - but we did not have to flowspec around DDoS'es either.

So I wish you a Merry Christmas and a happy new year :-)

Commander1024

yu-re-ka commented 9 months ago

Is your instance public? I'm curious :) hope you have good holidays

Commander1024 commented 9 months ago

It is :-)

lg.tkrz.net

yu-re-ka commented 8 months ago

Hi, is there any news on dumping the BMP stream for debugging purposes? :)

Commander1024 commented 2 months ago

We could not reproduce, meaning not a single crash anymore - also not when flowspeccing traffic. So I'm going to close this. Thanks for your patience.