[GH-ISSUE #386] [Question] Can I forward all ports except some? #283

Closed
opened 2026-05-05 12:05:22 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @ghost on GitHub (Jun 29, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/386

Hi! Thanks for your program!
I have a question - can I forward all ports from a server with public IP to server with NAT?
For example:
myserver:25565 would point to myclient:25565 (which is behind NAT)
and so on for EVERY port except 22 (so myserver:22 would still point to myserver:22)
Can this be done with frp?

Originally created by @ghost on GitHub (Jun 29, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/386 Hi! Thanks for your program! I have a question - can I forward all ports from a server with public IP to server with NAT? For example: myserver:25565 would point to myclient:25565 (which is behind NAT) and so on for EVERY port except 22 (so myserver:22 would still point to myserver:22) Can this be done with frp?
Author
Owner

@ghost commented on GitHub (Jun 29, 2017):

TL;DR:
How to expose all TCP/UDP ports except port 22?

<!-- gh-comment-id:312044151 --> @ghost commented on GitHub (Jun 29, 2017): TL;DR: How to expose all TCP/UDP ports except port 22?
Author
Owner

@fatedier commented on GitHub (Jun 29, 2017):

What's your real need is VPN?

Now frp can only expose one port in one tunnel. You may export all ports you want by creating many tunnels although it's not a good idea.

<!-- gh-comment-id:312048490 --> @fatedier commented on GitHub (Jun 29, 2017): What's your real need is VPN? Now frp can only expose one port in one tunnel. You may export all ports you want by creating many tunnels although it's not a good idea.
Author
Owner

@ghost commented on GitHub (Jun 29, 2017):

@fatedier hmm, VPN?
is there any tutorials on the internet?

<!-- gh-comment-id:312073700 --> @ghost commented on GitHub (Jun 29, 2017): @fatedier hmm, VPN? is there any tutorials on the internet?
Author
Owner
<!-- gh-comment-id:312208957 --> @fatedier commented on GitHub (Jun 30, 2017): https://en.wikipedia.org/wiki/Virtual_private_network https://openvpn.net/index.php/open-source/downloads.html
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: github-starred/frp#283
No description provided.