求教:如果在server端重定向目标流量? #1866
Unanswered
catscarlet
asked this question in
Q&A
Replies: 1 comment
-
试试
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
需求是这样的:我在用的某个ios上的软件,写死了cloudfront的印度CDN。这玩意在国内直连速度惨不忍睹。已经尝试过在本地端连接其他CDN(有对应的测速工具)(host),速度均很惨(低于50kBps)。本地直连不可能。
想到的思路是走海外的ss服务,但是软件底层写死印度CDN而我ss服务是美国的,速度还是很惨(仍然低于50kBps)。但是使用对应的测速工具则可以连接到速度高于50MBps的美国CDN。
我想到的是在我的ss端,写个iptables,把目标流量是印度CDN重定向到美国CDN,但是一直不成功。
大家帮我看看这玩意能实现吗?
对应部分脚本:
上面两个iptables都不生效,不知道为什么。用
iptables -t nat -nvL
查看,匹配流量都是0用tcpdump检查也发现本地流量直接往
13.35.202.27
去了,没有DNAT。服务端使用的是在二进制版本的ssserver 1.20.4。客户端是用的openwrt libev版的redir 3.3.5
已经检查过
/proc/sys/net/ipv4/ip_forward
了,值是1。Beta Was this translation helpful? Give feedback.
All reactions