[GH-ISSUE #2238] Can we have more separate examples #1781

Closed
opened 2026-05-05 13:09:04 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @lan10rd on GitHub (Feb 6, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2238

It's difficult to track down how I should set up the tunnel. I am just trying to send all traffic to my personal web server running nginx. http works. https doesn't.

After looking at other issues, i noticed you could just make the type = tcp (this is preferable because i didn't want to manually list the domains like is required with type = http), and now all my domains requests are coming through (I have a docker nginx running a reverse proxy on my client for all port 80 and 443 traffic)! This is great and seems to work with http, but when i make a request with https it doesnt work.

I get that some people for development will use type = tcp, but I really just want a holepunch (like ngrok) setup so that all traffic just goes to my walled off web server (running on 4g LTE router so it is NAT firewalled).

I LOVE this solution so far, but I am stuck and I suck at networking.

Originally created by @lan10rd on GitHub (Feb 6, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2238 It's difficult to track down how I should set up the tunnel. I am just trying to send all traffic to my personal web server running nginx. http works. https doesn't. After looking at other issues, i noticed you could just make the type = tcp (this is preferable because i didn't want to manually list the domains like is required with type = http), and now all my domains requests are coming through (I have a docker nginx running a reverse proxy on my client for all port 80 and 443 traffic)! This is great and seems to work with http, but when i make a request with https it doesnt work. I get that some people for development will use type = tcp, but I really just want a holepunch (like ngrok) setup so that all traffic just goes to my walled off web server (running on 4g LTE router so it is NAT firewalled). I LOVE this solution so far, but I am stuck and I suck at networking.
Author
Owner

@lan10rd commented on GitHub (Feb 6, 2021):

I have this so far:

frpc.ini

[common]
server_addr = x.x.x.x
server_port = 7000

[range:tcp_web]
type = tcp
local_ip = 127.0.0.1
local_port = 80,443
remote_port = 80,443

frps.ini

[common]
bind_port = 7000

<!-- gh-comment-id:774507016 --> @lan10rd commented on GitHub (Feb 6, 2021): I have this so far: # frpc.ini [common] server_addr = x.x.x.x server_port = 7000 [range:tcp_web] type = tcp local_ip = 127.0.0.1 local_port = 80,443 remote_port = 80,443 # frps.ini [common] bind_port = 7000
Author
Owner

@lan10rd commented on GitHub (Feb 6, 2021):

OMG i didnt open up port 443... RIP

<!-- gh-comment-id:774507404 --> @lan10rd commented on GitHub (Feb 6, 2021): OMG i didnt open up port 443... RIP
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#1781
No description provided.