Skip to content
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

失败登录的打印来源ip #326

Open
laoqin2601 opened this issue Jun 28, 2024 · 0 comments
Open

失败登录的打印来源ip #326

laoqin2601 opened this issue Jun 28, 2024 · 0 comments

Comments

@laoqin2601
Copy link

laoqin2601 commented Jun 28, 2024

想持久化日志后通过fail2ban过滤恶意登录,来源ip加黑名单,但失败登录的并未打印来源IP,求打印!

使用的anylink版本 ?

version: '3'

services:
  anyconnect:
    image: bjdgyc/anylink:0.12.1
    restart: always
    container_name: anyconnect
    privileged: true
    command: -c=/etc/server.toml
    ports:
    - "1555:8800"
    - "1556:443"
    environment:
    - LINK_LOG_PATH=/var/log
    - LINK_HTTP_SERVER_LOG=true
    volumes:
    - ./server.toml:/etc/server.toml
    - ./logs:/var/log

具体遇到的问题

tail -f logs/anylink.log
2024/06/28 14:06:13 link_auth.go:91: [Warn] bob1 动态码错误
2024/06/28 14:11:18 link_auth.go:91: [Warn] bob1 密码错误
@laoqin2601 laoqin2601 changed the title 想持久会日志后通过fail2ban过滤恶意登录,来源ip加黑名单,但日志中失败登录的并未打印来源IP,求打印! 失败登录的打印来源ip Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant