[GH-ISSUE #1866] Change IP address on outgoing connections in 3X-UI #1272

Closed
opened 2026-10-31 20:17:40 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @bwgit824 on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1866

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

Good evening.

I want the 3X-UI panel to set its IP address on outgoing connections to some domains, but for all other domains real IP address of the user remains

How can I do this?

I am using 3X-UI v1.7.9 / Xray: v1.8.4 (there are no such settings in latest versions).

I tried to add my domains to Panel Settings -> Array Configuration -> Manual Lists -> List of Direct Domains, but it doesn't work - the panel IP is assigned to the outgoing connection.

Config is like this:

  {
    "type": "field",
    "outboundTag": "direct",
    "domain": [
      "https://2ip.ru",
      "2ip.ru"
    ]
  },

Version of 3x-ui

3X-UI v1.7.9 / Xray: v1.8.4

x-ui log reports or xray log

  {
    "type": "field",
    "outboundTag": "direct",
    "domain": [
      "https://2ip.ru",
      "2ip.ru"
    ]
  },
Originally created by @bwgit824 on GitHub (Feb 21, 2024). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1866 ### Welcome - [x] Yes, I'm using the latest major release. Only such installations are supported. - [X] Yes, I'm using the supported system. Only such systems are supported. - [X] Yes, I have read all WIKI document,nothing can help me in my problem. - [X] Yes, I've searched similar issues on GitHub and didn't find any. - [X] Yes, I've included all information below (version, config, log, etc). ### Description of the problem,screencshot would be good Good evening. I want the 3X-UI panel to set its IP address on outgoing connections to some domains, but for all other domains real IP address of the user remains How can I do this? I am using 3X-UI v1.7.9 / Xray: v1.8.4 (there are no such settings in latest versions). I tried to add my domains to Panel Settings -> Array Configuration -> Manual Lists -> List of Direct Domains, but it doesn't work - the panel IP is assigned to the outgoing connection. Config is like this: { "type": "field", "outboundTag": "direct", "domain": [ "https://2ip.ru", "2ip.ru" ] }, ### Version of 3x-ui <details> 3X-UI v1.7.9 / Xray: v1.8.4 </details> ### x-ui log reports or xray log <details> { "type": "field", "outboundTag": "direct", "domain": [ "https://2ip.ru", "2ip.ru" ] }, </details>
Author
Owner

@bwgit824 commented on GitHub (Feb 21, 2024):

Also I tried to use last (2.1.3) version. I added tag "direct" in Xray configs -> Outbounds:

{
  "tag": "direct",
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "AsIs"
  }
}

Then I added rule in Xray configs -> Routing Rules:

  {
    "type": "field",
    "domain": [
      "2ip.ru"
    ],
    "outboundTag": "direct"
  }

Dont working :(

<!-- gh-comment-id:1957159900 --> @bwgit824 commented on GitHub (Feb 21, 2024): Also I tried to use last (2.1.3) version. I added tag "direct" in Xray configs -> Outbounds: { "tag": "direct", "protocol": "freedom", "settings": { "domainStrategy": "AsIs" } } Then I added rule in Xray configs -> Routing Rules: { "type": "field", "domain": [ "2ip.ru" ], "outboundTag": "direct" } Dont working :(
Author
Owner

@bwgit824 commented on GitHub (Mar 18, 2024):

Is this posible?

<!-- gh-comment-id:2004342947 --> @bwgit824 commented on GitHub (Mar 18, 2024): Is this posible?
Author
Owner

@alintjm commented on GitHub (May 25, 2024):

Is this posible?

i'm not sure if i fully understand what you're trying to do/achieve, but if you mean that you wanna use direct connections for some inbounds, so i think its possible via the external proxy option from the inbound's section "try edit or by creating a new one, there will be the option i mentioned"...

i have a similar issue which is, im trying to achieve this with fallback...etc

regards. JM

<!-- gh-comment-id:2130870143 --> @alintjm commented on GitHub (May 25, 2024): > Is this posible? i'm not sure if i fully understand what you're trying to do/achieve, but if you mean that you wanna use direct connections for some inbounds, so i think its possible via the external proxy option from the inbound's section "try edit or by creating a new one, there will be the option i mentioned"... i have a similar issue which is, im trying to achieve this with fallback...etc regards. JM
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#1272
No description provided.