mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3774] [Question] No IP limit option when running a docker image #2544
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#2544
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EntityinArray on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3774
Question
Hi, thank you for working on this amazing project.
I've read that 3x-ui has an IP Limit function, that is very useful to detect when links get leaked.
I'm running 3x-ui in a docker container, via docker-compose.yml from this git repo, and I don't see IP Limit option anywhere in the inbound settings.
I've read that fail2ban is required, but how do I set it up in Docker? Would it be possible to ship 3x-ui docker image with fail2ban preinstalled?
Checklist
@AdLf0208 commented on GitHub (May 29, 2026):
@EntityinArray Interesting part is that there's env variable XUI_ENABLE_FAIL2BAN: "true" but it does nothing.
I dove deeper and actually saw binaries installed within docker container itself even with configs in /etc/fail2ban but it does absolutely nothing and even when I set ip limit to 1 on particular client I was still able to connect using cellular and wifi network.
@AdLf0208 commented on GitHub (May 29, 2026):
Please enter your selection [0-26]: 21
Choose an option: 7
2026-05-24 14:30:14,777 fail2ban.jail [16]: INFO Creating new jail '3x-ipl'
2026-05-24 14:30:14,779 fail2ban.jail [16]: INFO Jail '3x-ipl' uses poller {}
2026-05-24 14:30:14,780 fail2ban.jail [16]: INFO Initiated 'polling' backend
2026-05-24 14:30:14,781 fail2ban.datedetector [16]: INFO date pattern
'^%Y/%m/%d %H:%M:%S':^Year/Month/Day 24hour:Minute:Second2026-05-24 14:30:14,781 fail2ban.filter [16]: INFO maxRetry: 1
2026-05-24 14:30:14,781 fail2ban.filter [16]: INFO findtime: 32
2026-05-24 14:30:14,781 fail2ban.actions [16]: INFO banTime: 1800
2026-05-24 14:30:14,781 fail2ban.filter [16]: INFO encoding: UTF-8
2026-05-24 14:30:14,782 fail2ban.filter [16]: INFO Added logfile: '/var/log/x-ui/3xipl.log' (pos = 0, hash = )
2026-05-24 14:30:14,783 fail2ban.jail [16]: INFO Jail '3x-ipl' started
All this is it. So only initialization logs. But access.log in /var/log/x-ui/ is present and actually contains all the sniffed data: routes, ip addresses (src and dst), all of decision making based on these routes and so on. In the end I don't know what the underlying issue might be.