panel icon indicating copy to clipboard operation
panel copied to clipboard

Supports tcp and udp granularity for server port allocation

Open Fallen-Breath opened this issue 1 year ago • 6 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

Here's a usage example for the feature request:

  • I have a Minecraft server that listens on port 25565/tcp
  • I want to setup a kcptun tunnel that listens on port 25565/udp on the node / using the panel, as a connection booster for the Minecraft server

Currently it's not possible to do that, since wings assigns both 25565/tcp and 25565/udp to the Minecraft container. Although Minecraft only uses the tcp port, the udp port is still occupied by the container, and cannot be used by other containers / programs

https://github.com/pterodactyl/wings/blob/438e5fdbe9d78a6fc0e781748cabd183c444a57e/environment/allocations.go#L53-L57

The current workaround is to let the kcptun runs on another port rather than 25565. It's work-able, but it's far less elegant that just reusing the 2565 port number

Describe the solution you'd like.

In the allocation creation page, let the ports input support port format like 25565/tcp, 25565/udp, indicating this allocation will only allocates the port with tcp or udp protocol

image

If the /tcp or /udp suffix does not exist, then allocates both tcp or udp protocol, which is the current behavior

Additional context to this request.

No response

Fallen-Breath avatar Aug 26 '23 12:08 Fallen-Breath

as far as I know this is possible to let service a bind to port 25565 tcp and another service to 25565 udp, but this will be a pain and almost impossible to handle for hosts and on whmcs

QuintenQVD0 avatar Aug 26 '23 12:08 QuintenQVD0

this is not even possible to let service a bind to port 25565 tcp and another service to 25565 udp

It's possible

image

Fallen-Breath avatar Aug 26 '23 12:08 Fallen-Breath

@Fallen-Breath how did you define the port allocation to split It by protocol?

jlopez994 avatar Feb 19 '24 22:02 jlopez994

In the allocation creation page, let the ports input support port format like 25565/tcp, 25565/udp, indicating this allocation will only allocates the port with tcp or udp protocol

I have already described the example solution in the "Describe the solution you'd like" section of https://github.com/pterodactyl/panel/issues/4850#issue-1868083602

Fallen-Breath avatar Feb 20 '24 02:02 Fallen-Breath

these are not working 19132/udp image this error is coming image any solution for that

IndJitesh avatar Sep 29 '24 15:09 IndJitesh

these are not working 19132/udp

any solution for that

This issue is about a feature request. Stuffs like 19132/udp currently does not exists in pterodactyl and is not available

So yeah, no solution for that for now, since this is the expected behavior

Fallen-Breath avatar Sep 29 '24 15:09 Fallen-Breath