Hello.
I have just installed the last version of Traefik (3.1.2).
I have configured a couple of middlewares, everything works well.
When I check the access logs, I can see a few lines without Traefik Router Name.
bastien@laptop$ cat access.log | grep -v @
173.255.221.189 - - [08/Sep/2024:01:31:59 +0000] "GET / HTTP/1.1" 404 - "-" "Mozilla/5.0 zgrab/0.x" - "-" "-" 0ms
172.105.128.13 - - [08/Sep/2024:04:37:12 +0000] "GET / HTTP/1.1" 404 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" - "-" "-" 0ms
20.225.3.216 - - [08/Sep/2024:12:46:25 +0000] "GET / HTTP/1.1" 404 - "-" "Mozilla/5.0 zgrab/0.x" - "-" "-" 0ms
How can we explain that ?
I have one last router to redirect all requests that were not previously captured.
router-forbidden:
service: "service-forbidden"
rule: "PathPrefix(`/`) || Host(`example.com`)"
tls: true
entryPoints: "websecure"
priority: 1
In the worst-case scenario, I'd have to find the " router-forbidden@file" like :
167.94.138.124 - - [08/Sep/2024:16:57:48 +0000] "GET / HTTP/1.1" 403 - "-" "-" - "router-forbidden@file" "-" 136ms
13.83.43.199 - - [08/Sep/2024:18:05:00 +0000] "GET /autodiscover/autodiscover.json?@zdi/Powershell HTTP/1.1" 403 - "-" "Mozilla/5.0 zgrab/0.x" - "router-forbidden@file" "-" 141ms
51.254.59.114 - - [08/Sep/2024:19:18:55 +0000] "GET / HTTP/1.1" 403 - "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" - "router-forbidden@file" "-" 146ms
Thanks for your help.
