SNI反向代理
原文链接:https://remyy.cn/archives/snifan-xiang-dai-li
DNS劫持
DNS劫持是指恶意篡改域名系统(DNS)的过程,通过修改域名解析结果来将用户重定向到恶意网站或进行网络欺诈。
当我们需要观看流媒体平台,比如netflix,迪斯尼等,因为ip地址的不同,解锁的影片资源也不同,同时我们没有那么服务器,并且流媒体平台对ip的检测也更严格,所以需要借助别人搭建的反代服务器
寻找反代服务器
搜索语法
搜索网站:fofabody="Backend not available" && country="SG"
想观看什么地区就在region中修改地区
筛选对象
Backend not available
打开网页出现上述界面,大概率可以用
- 只看ip地址,带域名的不要
- 带端口的也不要
修改xray配置文件
原来配置文件
{
“api”: {
“services”: [
“HandlerService”,
“LoggerService”,
“StatsService”
],
“tag”: “api”
},
“inbounds”: [
{
“listen”: “127.0.0.1”,
“port”: 62789,
“protocol”: “dokodemo-door”,
“settings”: {
“address”: “127.0.0.1”
},
“tag”: “api”
}
],
“outbounds”: [
{
“protocol”: “freedom”,
“settings”: {}
},
{
“protocol”: “blackhole”,
“settings”: {},
“tag”: “blocked”
}
],
“policy”: {
“levels”: {
“0”: {
“handshake”: 10,
“connIdle”: 100,
“uplinkOnly”: 2,
“downlinkOnly”: 3,
“statsUserUplink”: true,
“statsUserDownlink”: true,
“bufferSize”: 10240
}
},
“system”: {
“statsInboundDownlink”: true,
“statsInboundUplink”: true
}
},
“routing”: {
“rules”: [
{
“inboundTag”: [
“api”
],
“outboundTag”: “api”,
“type”: “field”
},
{
“ip”: [
“geoip:private”
],
“outboundTag”: “blocked”,
“type”: “field”
},
{
“outboundTag”: “blocked”,
“protocol”: [
“bittorrent”
],
“type”: “field”
}
]
},
“stats”: {}
}
更改后配置文件
{
“dns”: {
“hosts”: {
“geosite:netflix”: “6.6.6.6”,
“geosite:disney”: “6.6.6.6”
},
“servers”: [
“8.8.8.8”,
“1.1.1.1”
]
},
“api”: {
“services”: [
“HandlerService”,
“LoggerService”,
“StatsService”
],
“tag”: “api”
},
“inbounds”: [
{
“listen”: “127.0.0.1”,
“port”: 62789,
“protocol”: “dokodemo-door”,
“settings”: {
“address”: “127.0.0.1”
},
“tag”: “api”
}
],
“outbounds”: [
{
“protocol”: “freedom”,
“settings”: {“domainStrategy”: “UseIP”}
},
{
“protocol”: “blackhole”,
“settings”: {},
“tag”: “blocked”
}
],
“policy”: {
“levels”: {
“0”: {
“handshake”: 10,
“connIdle”: 100,
“uplinkOnly”: 2,
“downlinkOnly”: 3,
“statsUserUplink”: true,
“statsUserDownlink”: true,
“bufferSize”: 10240
}
},
“system”: {
“statsInboundDownlink”: true,
“statsInboundUplink”: true
}
},
“routing”: {
“rules”: [
{
“inboundTag”: [
“api”
],
“outboundTag”: “api”,
“type”: “field”
},
{
“ip”: [
“geoip:private”
],
“outboundTag”: “blocked”,
“type”: “field”
},
{
“outboundTag”: “blocked”,
“protocol”: [
“bittorrent”
],
“type”: “field”
}
]
},
“stats”: {}
}
替换host
把寻找的ip地址替换掉
例如"geosite:netflix": "47.243.143.35", "geosite:disney": "47.243.143.35"
保存配置文件
替换之后,保存配置文件,一定要重启面板,不然不生效。