mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-25 04:25:59 +03:00
[GH-ISSUE #89] which one is right about RedirAddr and ServerName? #81
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#81
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 @qwerttvv on GitHub (Jan 14, 2020).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/89
or
which one is better about RedirAddr and ServerName?
A
ServerName: princeton.edu
RedirAddr: 140.180.223.22
B
ServerName: www.princeton.edu
RedirAddr: 140.180.223.42
C
ServerName: www.princeton.edu
RedirAddr: www.princeton.edu
D
ServerName: princeton.edu
RedirAddr: princeton.edu
actually, princeton.edu redirect to www.princeton.edu
so, A B C D, which one is right or better?
@malikshi commented on GitHub (Jan 14, 2020):
redirAddr for serverside you can use IP/hostname.
ServerName for clientside using hostname only
see example: https://github.com/cbeuw/Cloak/tree/master/example_config
@qwerttvv commented on GitHub (Jan 14, 2020):
www.bing.com 204.79.197.200????
In china, i dont think the example is a good idea……
@malikshi commented on GitHub (Jan 14, 2020):
You can use any hostname as long as work in you country, I just mention example only.
Usually I'm using IP of my own isp that have collaboration with hostname like line/fb/etc for serversidw and use ServerName of fb/line in client side
@Klaaktu commented on GitHub (Jan 15, 2020):
bing.comgoes to13.107.21.200/204.79.197.200, which are non-cn IPs. And then they redirect towww.bing.com, orcn.bing.comif accessed by Chinese IP.13.107.21.200/204.79.197.200&202.89.233.100/202.89.233.101seem to be MS CDNs (they all serve both versions, but access from Chinese IPs are redirected tocn.bing.com). Which IP u get depend on DNS response.For example, my ISP DNS says
bing.comgoes to204.79.197.200/13.107.21.200(non-cn IP), thenwww.bing.com&cn.bing.comto202.89.233.100/202.89.233.101(cn IP). However international DNS servers just give204.79.197.200forcn.bing.comas well. I guess MS got the IPs/domain whitelisted by GFW to avoid problems.EDIT: See the certificate for the DNS names the IP has.
@malikshi commented on GitHub (Jan 15, 2020):
Yes. You can choose one of them that got white listed gfw. I think they didn't change that often so it's would be fine. I prefer using IPs than using hostname(I think latest update support redir on IPs and hostname) on side server
@qwerttvv commented on GitHub (Jan 15, 2020):
now, i use
ServerName: www.princeton.edu
RedirAddr: www.princeton.edu
i think princeton cant be block by gfw....its a university......
@Klaaktu commented on GitHub (Apr 8, 2021):
Fail to resolve RedirAddr causes ck-server to fail