Help configuring fail2ban, cannot get IP from gogs log #7841
Replies: 1 comment
-
For the web traffic, put a proxy around it. To get the ssh logins, you'd need to adjust your docker setup a bit. The docker image uses sshd inside the container. You'd need to expose that log so fail2ban can watch it. https://github.com/gogs/gogs/tree/main/docker I'll say I dug around in the container and couldn't find any logs. I expected them to be in /var/log and even found log rotate scripts which pointed there but I didn't see any actual log files. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use the official gogs/gogs docker image.
Version is:
The app.ini log part is:
The gogs.log file has not authentication info, can only get from gorm.log, but it only logs this:
So I can get the user ID but not the IP.
Need some help for loggin IP address from authentication attemps. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions