comotion / VSF

Varnish Security Firewall
Other
213 stars 67 forks source link

VSF log #72

Closed iammeken closed 2 years ago

iammeken commented 2 years ago

Where to find log file of VSF?

I may need fail2ban to scan it. :)

Thank you!

fgsch commented 2 years ago

Hi. Logs are currently emitted using std.log. They should appear in the shared memory log and you can use tools such as varnishlog to get them.

Logging takes place in a few places, but the main entry is here (for the 6.0 branch): https://github.com/comotion/VSF/blob/6.0/vcl/handlers.vcl#L29.

Let me know if that answers your question.

iammeken commented 2 years ago

Thank you for answering me!

So there is no a thing like varnishncsa.log, for fail2ban to scan and block repeated bad ip addresses?

fgsch commented 2 years ago

You could set up varnishncsa to extract anything from the shared log so it should be possible, but you will need to implement it.

iammeken commented 2 years ago

Thank you for the hint, I will study it.