引言

效果展示

过程

路由器端

内网ip: 192.168.1.1

外网ip: 172.16.7.95

1
/etc/init.d/tinyproxy restart
1
2
3
4
5
6
7
8
9
10
11
curl 192.168.1.1
curl 172.16.7.95
curl httpbin.org/ip
curl httpbin.org/ip --proxy http://192.168.1.1:8888
curl httpbin.org/ip --proxy 192.168.1.1:8888 -k
curl httpbin.org/ip --proxy http://172.16.7.95:8888 -k

export https_proxy=http://192.168.1.1:8888 http_proxy=http://192.168.1.1:8888 all_proxy=http://192.168.1.1:8888
export https_proxy=http://172.16.7.95:8888 http_proxy=http://172.16.7.95:8888 all_proxy=http://172.16.7.95:8888

wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip

服务器端

1
2
ssh root@172.16.7.47 -p 22 -D 57890
curl httpbin.org/ip --proxy http://10.9.65.32:57890

Bad Request

实际成功了,但是没有请求相应的内容。

结论

引用

  1. TinyProxy status page not working - Installing and Using OpenWrt - OpenWrt Forum
  2. 使用 TinyProxy 代理 - TheBadZhang’s Blog