mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 08:25:54 +03:00
[GH-ISSUE #537] 两层TCP代理,想要拦截本地服务通过TCP访问的流量并代理转发,能够实现吗? #437
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#437
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 @DeviZhao on GitHub (Jul 13, 2023).
Original GitHub issue: https://github.com/snail007/goproxy/issues/537
目标效果:
本地服务上启动一个Goproxy,另一台服务器上也启动一台,构成二级代理;
本地服务通过不固定的IP和指定端口进行tcp访问时,流量被本地服务器的Goproxy拦截,然后转发至另外一台服务的Goproxy,并由另外一台Goproxy完成对目标IP的TCP连接;
@lowzj commented on GitHub (Sep 19, 2023):
redsocks + iptables 可以完成你的本地goproxy的功能
这里有个demo: https://github.com/lowzj/devcontiner-socks
这里redsocks应该可以也用GoProxy替换,未测试。