[GH-ISSUE #4110] IPs doesn't shown in user editing/configuration menu #2790

Closed
opened 2026-10-31 20:27:58 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @MEM-917 on GitHub (Apr 27, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4110

Describe the bug

After manually building the repo with the latest pulls related to fixing the IP limit, the IP window does not display anything.
The IP gets registered in both x-ui's access file and nginx's log file, but the window seems unresponsive in showing user login details.
Image

How to repeat the problem?

  1. Create or modify an existing user in a vless inbound with IP limit activated.
  2. Use the respective user to make sure the IP gets registered in the log files.

Expected action

Showing detailed login information.

Received action

None.

3x-ui Version

2.9.2 with latest patches regarding IP limit

Xray-core Version

v26.4.25

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @MEM-917 on GitHub (Apr 27, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4110 ### Describe the bug After manually building the repo with the latest pulls related to fixing the IP limit, the IP window does not display anything. The IP gets registered in both x-ui's access file and nginx's log file, but the window seems unresponsive in showing user login details. <img width="424" height="284" alt="Image" src="https://github.com/user-attachments/assets/63484744-fdf2-465e-8376-fbe6c8c3a07d" /> ### How to repeat the problem? 1. Create or modify an existing user in a vless inbound with IP limit activated. 2. Use the respective user to make sure the IP gets registered in the log files. ### Expected action Showing detailed login information. ### Received action None. ### 3x-ui Version 2.9.2 with latest patches regarding IP limit ### Xray-core Version v26.4.25 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:27:58 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MEM-917 commented on GitHub (Apr 27, 2026):

I just upgraded to the newest version, and the problem persists.

<!-- gh-comment-id:4329454500 --> @MEM-917 commented on GitHub (Apr 27, 2026): I just upgraded to the newest version, and the problem persists.
Author
Owner

@ArminDeihim commented on GitHub (Apr 30, 2026):

Fail2ban fails to work as well. It doesn't ban users with multiple IP connections. I re-installed everything with the latest version, but still doesn't work.

<!-- gh-comment-id:4356512842 --> @ArminDeihim commented on GitHub (Apr 30, 2026): Fail2ban fails to work as well. It doesn't ban users with multiple IP connections. I re-installed everything with the latest version, but still doesn't work.
Author
Owner

@MEM-917 commented on GitHub (May 2, 2026):

Fail2ban fails to work as well. It doesn't ban users with multiple IP connections. I re-installed everything with the latest version, but still doesn't work.

I haven't tested the functionality because of the Islamic Republic's internet blackout, but in my tests, although the IP does register in log files, the panel doesn't show anything. Thanks for the reassurance that the problem isn't from my side.

<!-- gh-comment-id:4364591029 --> @MEM-917 commented on GitHub (May 2, 2026): > Fail2ban fails to work as well. It doesn't ban users with multiple IP connections. I re-installed everything with the latest version, but still doesn't work. I haven't tested the functionality because of the Islamic Republic's internet blackout, but in my tests, although the IP does register in log files, the panel doesn't show anything. Thanks for the reassurance that the problem isn't from my side.
Author
Owner

@MEM-917 commented on GitHub (May 8, 2026):

I compiled with the latest pulls, and the problem hasn't been resolved yet.

Edit: I forgot to give my gratitude.
Thanks

<!-- gh-comment-id:4406452938 --> @MEM-917 commented on GitHub (May 8, 2026): I compiled with the latest pulls, and the problem hasn't been resolved yet. Edit: I forgot to give my gratitude. Thanks
Author
Owner

@ArminDeihim commented on GitHub (May 10, 2026):

Still client's IP address is not shown in newly released version v3.0.0 panel.
I uninstalled and re-installed everything, but still it doesn't show the client's IP address.
I received following error message during installing Fail2ban on Ubuntu 24.04.4 LTS:

Setting up fail2ban (1.0.2-3ubuntu0.1) ...
/usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s'
"1490349000 test failed.dns.ch", "^\stest \S+"
/usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S'
'^'+prefix+'User \S+ not allowed\n'
/usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S'
'^'+prefix+'User \S+ not allowed\n'
/usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d'
'^'+prefix+'Received disconnect from port \d+'
/usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s'
_test_variants('common', prefix="\s
\S+ sshd[\d+]:\s+")
/usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '['
'common[prefregex="^svc[\d+] connect .+$"'
/usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s'
"{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do",
/usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s'
"{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do",
/usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s'
"{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do",
/usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s'
"{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do",

<!-- gh-comment-id:4415955966 --> @ArminDeihim commented on GitHub (May 10, 2026): Still client's IP address is not shown in newly released version v3.0.0 panel. I uninstalled and re-installed everything, but still it doesn't show the client's IP address. I received following error message during installing Fail2ban on Ubuntu 24.04.4 LTS: Setting up fail2ban (1.0.2-3ubuntu0.1) ... /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s' "1490349000 test failed.dns.ch", "^\s*test <F-ID>\S+</F-ID>" /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'<F-ID>User <F-USER>\S+</F-USER></F-ID> not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'User <F-USER>\S+</F-USER> not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d' '^'+prefix+'Received disconnect from <F-ID><ADDR> port \d+</F-ID>' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s' _test_variants('common', prefix="\s*\S+ sshd\[<F-MLFID>\d+</F-MLFID>\]:\s+") /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '\[' 'common[prefregex="^svc\[<F-MLFID>\d+</F-MLFID>\] connect <F-CONTENT>.+</F-CONTENT>$"' /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
Author
Owner

@MEM-917 commented on GitHub (May 13, 2026):

@MHSanaei
After upgrading to the latest version(v3.0.1), the problem persists. In one of my panels, which runs on v2.8.9, this problem doesn't occur, but in all current builds, the IP gets registered in the "access.log" file but isn't shown on the panel itself.

Image

If you want to reproduce the problem, just run it behind haproxy and nginx.

EDIT: I just tested this in another VPS and with the same configuration of nginx and haproxy, and the general configuration of x-ui panel, the IP shown in the panel. I even looked at both of the databases, and the only thing that gets registered in the malfunctioning server is an empty bracket.

<!-- gh-comment-id:4446062366 --> @MEM-917 commented on GitHub (May 13, 2026): @MHSanaei After upgrading to the latest version(v3.0.1), the problem persists. In one of my panels, which runs on v2.8.9, this problem doesn't occur, but in all current builds, the IP gets registered in the "access.log" file but isn't shown on the panel itself. <img width="361" height="134" alt="Image" src="https://github.com/user-attachments/assets/c615cbd6-70aa-4d35-afc1-d89bce5b8734" /> If you want to reproduce the problem, just run it behind haproxy and nginx. EDIT: I just tested this in another VPS and with the same configuration of nginx and haproxy, and the general configuration of x-ui panel, the IP shown in the panel. I even looked at both of the databases, and the only thing that gets registered in the malfunctioning server is an empty bracket.
Author
Owner

@MEM-917 commented on GitHub (May 13, 2026):

Still client's IP address is not shown in newly released version v3.0.0 panel. I uninstalled and re-installed everything, but still it doesn't show the client's IP address. I received following error message during installing Fail2ban on Ubuntu 24.04.4 LTS:

Setting up fail2ban (1.0.2-3ubuntu0.1) ... /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s' "1490349000 test failed.dns.ch", "^\s_test \S+" /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'User \S+ not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'User \S+ not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d' '^'+prefix+'Received disconnect from port \d+' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s' test_variants('common', prefix="\s\S+ sshd[\d+]:\s+") /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '[' 'common[prefregex="^svc[\d+] connect .+$"' /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s' "{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s' "{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s' "{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s' "{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do",

Just edit the "datepattern" in the /etc/fail2ban/filter.d/3x-ipl.conf as shown below:

^%%Y/%%m/%%d %%H:%%M:%%S

<!-- gh-comment-id:4446078625 --> @MEM-917 commented on GitHub (May 13, 2026): > Still client's IP address is not shown in newly released version v3.0.0 panel. I uninstalled and re-installed everything, but still it doesn't show the client's IP address. I received following error message during installing Fail2ban on Ubuntu 24.04.4 LTS: > > Setting up fail2ban (1.0.2-3ubuntu0.1) ... /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s' "1490349000 test failed.dns.ch", "^\s_test \S+" /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'User \S+ not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'User \S+ not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d' '^'+prefix+'Received disconnect from port \d+' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s' _test_variants('common', prefix="\s_\S+ sshd[\d+]:\s+") /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '[' 'common[prefregex="^svc[\d+] connect .+$"' /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", Just edit the "datepattern" in the `/etc/fail2ban/filter.d/3x-ipl.conf` as shown below: ^%%Y/%%m/%%d %%H:%%M:%%S
Author
Owner

@ArminDeihim commented on GitHub (May 13, 2026):

edit the "datepattern"

Yes, I know that. I edited the "datepattern" like that (^%%Y/%%m/%%d %%H:%%M:%%S), but that only makes Fail2ban service running while still it doesn't work to ban IPs.

<!-- gh-comment-id:4446105036 --> @ArminDeihim commented on GitHub (May 13, 2026): > edit the "datepattern" Yes, I know that. I edited the "datepattern" like that (^%%Y/%%m/%%d %%H:%%M:%%S), but that only makes Fail2ban service running while still it doesn't work to ban IPs.
Author
Owner

@MEM-917 commented on GitHub (May 14, 2026):

After compiling the latest version of fail2ban(main branch), the panel works as intended without any hiccups. I haven't tested the banning function, but that is for another time.

<!-- gh-comment-id:4450123642 --> @MEM-917 commented on GitHub (May 14, 2026): After compiling the latest version of fail2ban(main branch), the panel works as intended without any hiccups. I haven't tested the banning function, but that is for another time.
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#2790
No description provided.