[GH-ISSUE #1129] Fail2Ban - Docker installation #766

Closed
opened 2026-10-31 20:14:16 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @dev-ehsan-babaei on GitHub (Oct 14, 2023).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1129

Hi,

Is there any way to install fail2ban via docker installation method?
Or any way to exec x-ui command in docker at all?

Originally created by @dev-ehsan-babaei on GitHub (Oct 14, 2023). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1129 Hi, Is there any way to install fail2ban via docker installation method? Or any way to exec x-ui command in docker at all?
bsakaguchi 2026-10-31 20:14:16 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@kksudo commented on GitHub (Oct 25, 2023):

I guess fail2ban already in the Docker, but with 0 enable jails. Also I can't find the way to configure it without rebuild the Docker image.
Here is installation
Still wait here to answer about this topic.

<!-- gh-comment-id:1780120295 --> @kksudo commented on GitHub (Oct 25, 2023): I guess fail2ban already in the Docker, but with 0 enable jails. Also I can't find the way to configure it without rebuild the Docker image. [Here](https://github.com/MHSanaei/3x-ui/blob/main/Dockerfile#L36) is installation Still wait here to answer about this topic.
Author
Owner

@dev-ehsan-babaei commented on GitHub (Oct 25, 2023):

Found the solution...
we should add below field to xray config:
"log": {
"loglevel": "warning",
"access": "./access.log",
"error": "./error.log"
},

<!-- gh-comment-id:1780171241 --> @dev-ehsan-babaei commented on GitHub (Oct 25, 2023): Found the solution... we should add below field to xray config: "log": { "loglevel": "warning", "access": "./access.log", "error": "./error.log" },
Author
Owner

@kksudo commented on GitHub (Oct 25, 2023):

BTW, how to configure fail2ban jails? What is default job for fail2ban?
Block unsuccessful auth to the proxy\vpn, but there is no enable jails ....

fail2ban-client status

Status
|- Number of jail:	0
`- Jail list:
<!-- gh-comment-id:1780177372 --> @kksudo commented on GitHub (Oct 25, 2023): BTW, how to configure fail2ban jails? What is default job for fail2ban? Block unsuccessful auth to the proxy\vpn, but there is no enable jails .... fail2ban-client status ```` Status |- Number of jail: 0 `- Jail list:
Author
Owner

@dev-ehsan-babaei commented on GitHub (Oct 26, 2023):

submitted new issue:
https://github.com/MHSanaei/3x-ui/issues/1168

<!-- gh-comment-id:1780927033 --> @dev-ehsan-babaei commented on GitHub (Oct 26, 2023): submitted new issue: https://github.com/MHSanaei/3x-ui/issues/1168
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#766
No description provided.