[GH-ISSUE #5758] [Feature]: Seperate Host IP address from Host Config #4004

Open
opened 2026-10-31 20:36:28 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @behnamgolds on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5758

no

Describe the solution you'd like

Every now and then I scan and add around 50 clean CF, Fastly, ... ip addresses to my inbounds, although it is nice to have a seperate section for the ip addresses (a.k.a hosts) like the way it is right now, but it is tedious to add 50 ip addressess that have the same settings. I suggest seperate the ip addresses from the host settings , or create host groups where the settings are set once and then add ip addresses to them and finally add host groups to the inbounds (right now it is the other way around, we add inbounds to the hosts). This way we can have the same ip addresses (hosts) with different settings and add them to different inbounds.

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @behnamgolds on GitHub (Jul 3, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5758 ### Is your feature request related to a problem? no ### Describe the solution you'd like Every now and then I scan and add around 50 clean CF, Fastly, ... ip addresses to my inbounds, although it is nice to have a seperate section for the ip addresses (a.k.a hosts) like the way it is right now, but it is tedious to add 50 ip addressess that have the same settings. I suggest seperate the ip addresses from the host settings , or create host groups where the settings are set once and then add ip addresses to them and finally add host groups to the inbounds (right now it is the other way around, we add inbounds to the hosts). This way we can have the same ip addresses (hosts) with different settings and add them to different inbounds. ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 3, 2026):

Confirmed against the current code: this is not currently possible, and the request is a reasonable read of how the Host model works today.

Each row in the hosts table (model.Host, internal/database/model/model.go) couples exactly one Address to a full copy of all the delivery settings — Security, Sni, HostHeader, Path, Alpn, Fingerprint, PinnedPeerCertSha256, MuxParams, SockoptParams, FinalMask, etc. — and is bound to a single InboundId. HostService (internal/web/service/host.go) and the /panel/api/hosts routes (internal/web/controller/host.go) only expose per-row CRUD plus bulk enable/disable/delete/reorder — there is no endpoint or UI (frontend/src/pages/hosts/HostFormModal.tsx) to create many address rows that share one settings definition, and no "duplicate" action either. So adding 50 CDN/Fastly IPs with identical TLS/path/etc. today means creating 50 separate Host rows and re-entering the same settings in each one, exactly as described.

This would be a genuine data-model change (something like splitting Host into a settings template plus a list of addresses, or a "host group" entity), not a small UI tweak, so it is being labeled as a backlog feature request rather than a quick fix. Two related-but-distinct open requests worth being aware of if you follow this area: #5004 (excluding host-specific settings from DB export/import) and #5026 (grouping inbounds, not hosts, for subscription scaling) — neither covers this specific ask, so this is being tracked separately.

If you would like to work on this yourself, the natural entry points are internal/database/model/model.go (the Host struct + a new migration in internal/database/db.go), internal/web/service/host.go / internal/web/controller/host.go, internal/sub/host_sub.go (where host rows are applied to subscription output), and frontend/src/pages/hosts/.

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:4874351575 --> @github-actions[bot] commented on GitHub (Jul 3, 2026): Confirmed against the current code: this is not currently possible, and the request is a reasonable read of how the `Host` model works today. Each row in the `hosts` table (`model.Host`, `internal/database/model/model.go`) couples exactly one `Address` to a full copy of all the delivery settings — `Security`, `Sni`, `HostHeader`, `Path`, `Alpn`, `Fingerprint`, `PinnedPeerCertSha256`, `MuxParams`, `SockoptParams`, `FinalMask`, etc. — and is bound to a single `InboundId`. `HostService` (`internal/web/service/host.go`) and the `/panel/api/hosts` routes (`internal/web/controller/host.go`) only expose per-row CRUD plus bulk enable/disable/delete/reorder — there is no endpoint or UI (`frontend/src/pages/hosts/HostFormModal.tsx`) to create many address rows that share one settings definition, and no "duplicate" action either. So adding 50 CDN/Fastly IPs with identical TLS/path/etc. today means creating 50 separate `Host` rows and re-entering the same settings in each one, exactly as described. This would be a genuine data-model change (something like splitting `Host` into a settings template plus a list of addresses, or a "host group" entity), not a small UI tweak, so it is being labeled as a backlog feature request rather than a quick fix. Two related-but-distinct open requests worth being aware of if you follow this area: #5004 (excluding host-specific settings from DB export/import) and #5026 (grouping *inbounds*, not hosts, for subscription scaling) — neither covers this specific ask, so this is being tracked separately. If you would like to work on this yourself, the natural entry points are `internal/database/model/model.go` (the `Host` struct + a new migration in `internal/database/db.go`), `internal/web/service/host.go` / `internal/web/controller/host.go`, `internal/sub/host_sub.go` (where host rows are applied to subscription output), and `frontend/src/pages/hosts/`. *This reply was generated automatically. A maintainer may follow up.*
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#4004
No description provided.