mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #45] 透明代理并设置上游代理无法使用 #20
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#20
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 @Totti0135 on GitHub (Mar 14, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/45
目的
在路由器上使用透明代理并让所有http及https请求都走上游代理。
操作步骤
1.使用命令
proxy http --always -t tcp -p :33080 -T tcp -P "10.249.5.7:8001"开启代理2.按照4.5手册中配置iptables
结果
设备连上路由器,访问https://www.baidu.com页面无法打开,控制台日志如下
另外,直接在浏览器中设置代理可以正常访问各网站。
@snail007 commented on GitHub (Mar 14, 2018):
iptables规则是什么
@Totti0135 commented on GitHub (Mar 14, 2018):
iptables按照如下设置的,没有别的规则
@snail007 commented on GitHub (Apr 17, 2018):
我们进行了透明代理的测试,一切正常,写了教程,请参考:https://github.com/snail007/goproxy/wiki/%E9%80%8F%E6%98%8E%E4%BB%A3%E7%90%86
@snail007 commented on GitHub (Apr 25, 2018):
done