[GH-ISSUE #838] [Feature Request] Allow for adding a range of TCP/UDP Raw connections #38455

Closed
opened 2026-06-22 01:34:40 -05:00 by GiteaMirror · 10 comments
Owner

Originally created by @usshauler on GitHub (Jun 4, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/838

Currently I am using Pangolin to host a game server and have to manually add a TCP and UDP port connection for about 20 ports.

  1. It would be great to be able to do this in GUI by providing a port range versus 1 by 1 in GUI.
  2. In addition, it would be even better if these Raw TCP/UDP entries get applied to the gerbil docker compose and traefik_config yaml s versus manually having to add them as well.
  3. Lastly, maybe a restart docker compose button in GUI as well couldn't hurt but now I know I am ushing it :)

Thanks for everything so far I love Pangolin.

Originally created by @usshauler on GitHub (Jun 4, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/838 Currently I am using Pangolin to host a game server and have to manually add a TCP and UDP port connection for about 20 ports. 1. It would be great to be able to do this in GUI by providing a port range versus 1 by 1 in GUI. 2. In addition, it would be even better if these Raw TCP/UDP entries get applied to the gerbil docker compose and traefik_config yaml s versus manually having to add them as well. 3. Lastly, maybe a restart docker compose button in GUI as well couldn't hurt but now I know I am ushing it :) Thanks for everything so far I love Pangolin.
Author
Owner

@Legion495 commented on GitHub (Jun 5, 2025):

Hello!

I agree with the multiple ports. I think it should adhere to standard singular ports separated by comma and a range connected via hyphen.

I just stumbled over the port situation with Gerbil and was quite confused as I expected this to work out of the box.
I am so glad there is a guide: https://docs.fossorial.io/Pangolin/tcp-udp

Amazing Software with a great name.

<!-- gh-comment-id:2944848297 --> @Legion495 commented on GitHub (Jun 5, 2025): Hello! I agree with the multiple ports. I think it should adhere to standard singular ports separated by comma and a range connected via hyphen. I just stumbled over the port situation with Gerbil and was quite confused as I expected this to work out of the box. I am so glad there is a guide: https://docs.fossorial.io/Pangolin/tcp-udp Amazing Software with a great name.
Author
Owner

@LeonvanHeerden commented on GitHub (Jun 6, 2025):

I am also looking for this type of feature. Even, if you specify the range and Pangolin adds the individual ports that are required, since Traefik doesn't support to the range facility.

Possibly related to this: https://github.com/orgs/fosrl/discussions/63

<!-- gh-comment-id:2948108663 --> @LeonvanHeerden commented on GitHub (Jun 6, 2025): I am also looking for this type of feature. Even, if you specify the range and Pangolin adds the individual ports that are required, since Traefik doesn't support to the range facility. Possibly related to this: https://github.com/orgs/fosrl/discussions/63
Author
Owner

@pagea-dev commented on GitHub (Jun 7, 2025):

Port Ranges would be awesome. Especially for things like Transfer-Ports for FTPS. Looking foward for that feature!

<!-- gh-comment-id:2952419651 --> @pagea-dev commented on GitHub (Jun 7, 2025): Port Ranges would be awesome. Especially for things like Transfer-Ports for FTPS. Looking foward for that feature!
Author
Owner

@Nafalan commented on GitHub (Jun 7, 2025):

Hey mate

You said you host game servers is it possible for you to explain your setup?

I'm trying to get amp to work and host a valheim server but just can't wrap my head around it.

I keep getting failed to connect in valheim but I tried to follow the guide they have but that is for a tunnel within the container. Not through a service.

I've hosted and routed so much software but this TCP/UDP stuff is confusing.

Like in a TCP/UDP resource what do I put for the IP/hostname??

<!-- gh-comment-id:2952585547 --> @Nafalan commented on GitHub (Jun 7, 2025): Hey mate You said you host game servers is it possible for you to explain your setup? I'm trying to get amp to work and host a valheim server but just can't wrap my head around it. I keep getting failed to connect in valheim but I tried to follow the guide they have but that is for a tunnel within the container. Not through a service. I've hosted and routed so much software but this TCP/UDP stuff is confusing. Like in a TCP/UDP resource what do I put for the IP/hostname??
Author
Owner

@usshauler commented on GitHub (Jun 7, 2025):

Hey Nafalan, my current setup has my DNS pointing to my cloud VPS where Pangolin/Traefik is hosted. From here, I have a newt tunnel to my homelab servers where my game servers are. In Pangolin, you must first manually add a TCP, UDP or both resource to allow the port into the game server. Once all the resources are created, you have to manually edit the traefik_config.yml and add all the TCP and UDP ports here. After this you must manually edit the docker-compose.yml and under Gerbil, manually add each port individually and specify the UDP ports independently. Once that is done, docker down and docker up to restart the stack and new changes to take effect. Once that has completed, those ports are now good to access without opening ports in your home router. Be very careful when editing the config files it may cause Pangolin to stop working if done wrong. Hope this helps anyone needing the guidance.

<!-- gh-comment-id:2952785885 --> @usshauler commented on GitHub (Jun 7, 2025): Hey Nafalan, my current setup has my DNS pointing to my cloud VPS where Pangolin/Traefik is hosted. From here, I have a newt tunnel to my homelab servers where my game servers are. In Pangolin, you must first manually add a TCP, UDP or both resource to allow the port into the game server. Once all the resources are created, you have to manually edit the traefik_config.yml and add all the TCP and UDP ports here. After this you must manually edit the docker-compose.yml and under Gerbil, manually add each port individually and specify the UDP ports independently. Once that is done, docker down and docker up to restart the stack and new changes to take effect. Once that has completed, those ports are now good to access without opening ports in your home router. Be very careful when editing the config files it may cause Pangolin to stop working if done wrong. Hope this helps anyone needing the guidance.
Author
Owner

@Nafalan commented on GitHub (Jun 7, 2025):

I have a similar setup as you.

I think our difference is I use amp for my game servers and that doesn't expose ports.

So it's like it's running on the host machine directly.

So I talked with someone on the amp discord directly and they said all people need to do is forward the port on the router and it works.

I was just a little confused in the proxy settings for IP/hostname because to proxy/forward/expose the port on the host machine do I literally just put the IP of the host machine in and that's essentially what forwarding a port would do but it's through pangolin/gerbil/traefik instead

<!-- gh-comment-id:2952850880 --> @Nafalan commented on GitHub (Jun 7, 2025): I have a similar setup as you. I think our difference is I use amp for my game servers and that doesn't expose ports. So it's like it's running on the host machine directly. So I talked with someone on the amp discord directly and they said all people need to do is forward the port on the router and it works. I was just a little confused in the proxy settings for IP/hostname because to proxy/forward/expose the port on the host machine do I literally just put the IP of the host machine in and that's essentially what forwarding a port would do but it's through pangolin/gerbil/traefik instead
Author
Owner

@usshauler commented on GitHub (Jun 7, 2025):

Yes even with AMP, you should be able to do the same as I have AMP as well. I will probably spin it up and see if I have any issues with it. As for your TCP/UDP question, this is from the developers https://docs.fossorial.io/Pangolin/tcp-udp. In essence, adding the TCP/UDP route in pangolin allows the forwarding to the IP & port of the server. Configuring Traefik and compose just allow those ports to be sent through the tunnel. One other thing to try, once this is all accomplished and you cannot join the game, try joining via a console command since this is how it works for me in Ark. If you want, you can reach me direct on Discord USSHauler#8179

<!-- gh-comment-id:2952864079 --> @usshauler commented on GitHub (Jun 7, 2025): Yes even with AMP, you should be able to do the same as I have AMP as well. I will probably spin it up and see if I have any issues with it. As for your TCP/UDP question, this is from the developers https://docs.fossorial.io/Pangolin/tcp-udp. In essence, adding the TCP/UDP route in pangolin allows the forwarding to the IP & port of the server. Configuring Traefik and compose just allow those ports to be sent through the tunnel. One other thing to try, once this is all accomplished and you cannot join the game, try joining via a console command since this is how it works for me in Ark. If you want, you can reach me direct on Discord USSHauler#8179
Author
Owner

@Legion495 commented on GitHub (Jun 7, 2025):

I recommend to check the ports externally while applying the changes. I forgot the firewall from the vps provider.

<!-- gh-comment-id:2952878446 --> @Legion495 commented on GitHub (Jun 7, 2025): I recommend to check the ports externally while applying the changes. I forgot the firewall from the vps provider.
Author
Owner

@SLFaleiro commented on GitHub (Jun 12, 2025):

Using the range would be fantastic, especially for VOIP applications.

<!-- gh-comment-id:2967105240 --> @SLFaleiro commented on GitHub (Jun 12, 2025): Using the range would be fantastic, especially for VOIP applications.
Author
Owner

@oschwartz10612 commented on GitHub (Jun 13, 2025):

Hi guys! Thanks for the great discussion here! I think this is already covered by two discussion feature requests so I am going to close it for now but we will definitely make something like this a priority when we can!

There is a bit of a traefik issue / component to this because it does not allow you to pull the entrypoints from a dynamic config or use port ranges so we would either need to patch traefik to allow this or automate the config file updates and restart traefik as suggested. For a range of ports we would need to create multiple entrypoints I think but thats not out of the question.

https://github.com/orgs/fosrl/discussions/397
https://github.com/orgs/fosrl/discussions/63

<!-- gh-comment-id:2970482884 --> @oschwartz10612 commented on GitHub (Jun 13, 2025): Hi guys! Thanks for the great discussion here! I think this is already covered by two discussion feature requests so I am going to close it for now but we will definitely make something like this a priority when we can! There is a bit of a traefik issue / component to this because it does not allow you to pull the entrypoints from a dynamic config or use port ranges so we would either need to patch traefik to allow this or automate the config file updates and restart traefik as suggested. For a range of ports we would need to create multiple entrypoints I think but thats not out of the question. https://github.com/orgs/fosrl/discussions/397 https://github.com/orgs/fosrl/discussions/63
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#38455