mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 16:35:49 +03:00
[GH-ISSUE #499] forward muti port not success #400
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#400
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @weironz on GitHub (Sep 8, 2022).
Original GitHub issue: https://github.com/snail007/goproxy/issues/499
Expected Behavior
access proxy 33080 port should forward to 192.168.22.33 33080 port
Current Behavior
access proxy 33080 port not forward to 192.168.22.33 33080 port
Possible Solution
no
Steps to Reproduce
at proxy server
Context (Environment)
proxy tcp -p ":33080-33085" -T tcp -P "192.168.22.33:0"Detailed Description
Possible Implementation
场景,

需求:每个场景只需一条命令或者一个配置文件就直接搞定。
1、功能点1
proxy tcp -p ":33080-33085" -T tcp -P "192.168.22.33:33080-33085"
访问代理服务器33080端口 转发到后端192.168.22.33 33080端口
访问代理服务器33081端口 转发到后端192.168.22.33 33081端口
以此类推......
或者说访问代理服务器某个端口转到后端某个对应端口
proxy tcp -p ":0" -T tcp -P "192.168.22.33:0"
2、功能点2
proxy tcp -p ":2033-2044" -T tcp -P "192.168.22.33-192.168.22.44:22"
访问代理服务器2033端口 转发到后端192.168.22.33 22端口
访问代理服务器2034端口 转发到后端192.168.22.34 22端口
以此类推......
@snail007 commented on GitHub (Sep 8, 2022):
端口范围是商业版功能
@weironz commented on GitHub (Sep 8, 2022):
明白了,第二个功能商业版支持吗?除了一条一条配置,有没有简单办法?
第二个场景是这样的:比如阿里云上有50台机器,只有一台机器购买了公网IP地址,但是想从本地直接通过22端口访问剩余的49台机器。目前我没看到可以一条命令完成配置的功能。
使用配置文件,一个配置文件批量刷进去,但是好像一个配置文件只能指定一条配置。
@snail007 commented on GitHub (Sep 8, 2022):
第二个不支持