[GH-ISSUE #110] 关于服务器流量问题 #56

Closed
opened 2026-05-05 11:39:41 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @yi-ge on GitHub (Sep 10, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/110

我研究了文档,但是没弄明白一个问题。如果用frp进行内网穿透,那么内网服务器的流量会像VPN那样全部转发到外网服务器吗?如果我在内网假设了服务器,客户端下载这个服务器的资源。流量会全部经传外网服务器吗?还是说只是端口转发的流量经传,实际文件大小的流量不经过外网服务器?

Originally created by @yi-ge on GitHub (Sep 10, 2016). Original GitHub issue: https://github.com/fatedier/frp/issues/110 我研究了文档,但是没弄明白一个问题。如果用frp进行内网穿透,那么内网服务器的流量会像VPN那样全部转发到外网服务器吗?如果我在内网假设了服务器,客户端下载这个服务器的资源。流量会全部经传外网服务器吗?还是说只是端口转发的流量经传,实际文件大小的流量不经过外网服务器?
Author
Owner

@fatedier commented on GitHub (Sep 10, 2016):

和 vpn 不同,不是所有流量都经过外网服务器转发,只有你配置了的本地端口的流量才会经过服务器转发。

<!-- gh-comment-id:246104863 --> @fatedier commented on GitHub (Sep 10, 2016): 和 vpn 不同,不是所有流量都经过外网服务器转发,只有你配置了的本地端口的流量才会经过服务器转发。
Author
Owner

@yi-ge commented on GitHub (Sep 10, 2016):

那假如说我配置了本地80端口做静态资源服务器,外网服务器中的frps绑定域名abc.com和8080到本地80端口,我通过外网访问abc.com:8080下载静态资源服务器中的100M视频。这个视频所有流量都会经过外网服务器转发吗?

<!-- gh-comment-id:246104981 --> @yi-ge commented on GitHub (Sep 10, 2016): 那假如说我配置了本地80端口做静态资源服务器,外网服务器中的frps绑定域名abc.com和8080到本地80端口,我通过外网访问abc.com:8080下载静态资源服务器中的100M视频。这个视频所有流量都会经过外网服务器转发吗?
Author
Owner

@fatedier commented on GitHub (Sep 10, 2016):

是的。

<!-- gh-comment-id:246111224 --> @fatedier commented on GitHub (Sep 10, 2016): 是的。
Author
Owner

@yi-ge commented on GitHub (Sep 11, 2016):

那有没有什么办法让外网服务器只做搭桥作用,不实际承担流量呢?如果能解决这个问题,想必frp能创造更大价值。

<!-- gh-comment-id:246164134 --> @yi-ge commented on GitHub (Sep 11, 2016): 那有没有什么办法让外网服务器只做搭桥作用,不实际承担流量呢?如果能解决这个问题,想必frp能创造更大价值。
Author
Owner

@JimLee1996 commented on GitHub (Sep 11, 2016):

那必须有路由功能支持;或者支持udp打洞之类的吧。。。

<!-- gh-comment-id:246167891 --> @JimLee1996 commented on GitHub (Sep 11, 2016): 那必须有路由功能支持;或者支持udp打洞之类的吧。。。
Author
Owner

@yi-ge commented on GitHub (Sep 11, 2016):

@JimLee1996 恩。理论上是这样,但是如果HTTP协议就不好做。

<!-- gh-comment-id:246168151 --> @yi-ge commented on GitHub (Sep 11, 2016): @JimLee1996 恩。理论上是这样,但是如果HTTP协议就不好做。
Author
Owner

@JimLee1996 commented on GitHub (Sep 11, 2016):

嗯嗯!非常支持!我也要向你们这些大神学习
;-)

<!-- gh-comment-id:246168250 --> @JimLee1996 commented on GitHub (Sep 11, 2016): 嗯嗯!非常支持!我也要向你们这些大神学习 ;-)
Author
Owner

@lnzoro commented on GitHub (Sep 18, 2016):

支持udp就行吧

<!-- gh-comment-id:247835698 --> @lnzoro commented on GitHub (Sep 18, 2016): 支持udp就行吧
Author
Owner

@Foristkirito commented on GitHub (Nov 21, 2017):

所以这个功能最后解决了吗 @yi-ge

<!-- gh-comment-id:345942284 --> @Foristkirito commented on GitHub (Nov 21, 2017): 所以这个功能最后解决了吗 @yi-ge
Author
Owner

@liunianbanbo commented on GitHub (Feb 1, 2018):

同想实现外网服务器不承担实际流量的需求

<!-- gh-comment-id:362133349 --> @liunianbanbo commented on GitHub (Feb 1, 2018): 同想实现外网服务器不承担实际流量的需求
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#56
No description provided.