Your IP : 10.1.73.149


Current Path : /opt/cpguard/cpglfd/configs/jails.available/
Upload File :
Current File : //opt/cpguard/cpglfd/configs/jails.available/cwp.yaml

jails:
  - name: "cwp-auth"
    enabled: true
    log_paths:
      - "/var/log/cwp_client_login.log" # Access Logs (Standard path)

    rules:
      # 1. CWP App Log (Explicit Failure)
      - regexp: "Failed Login from.*\\s(?P<ip>\\d+\\.\\d+\\.\\d+\\.\\d+)"

    max_retries: 5
    find_time: "1m"
    ban_time: "1h"

    actions:
      - name: "cpgblock-cwp"
        ban_command: '/usr/bin/cpgcli ip --temp-block {{.IP}} --reason "Blocked by {{.JailName}} due to more than {{.MaxRetry}} abusive access within {{.FindTime}} seconds" --extra " LogFile: {{.LogPath}} | Reason: {{.LogLine}}"'
        unban_command: "/usr/bin/cpgcli ip --temp-block {{.IP}} --remove"