Xshell:动态代理
如果有国外的服务器,则可以通过ssh隧道实现动态代理。在Xshell的SSH-> 隧道中增加Dynamic (SocketV4/5)的连接。
然后在chrome上安装SwitchyOmega插件,并导入规则(保存为txt后导入即可):
{
"+GFWed": {
"bypassList": [{
"conditionType": "BypassCondition",
"pattern": "<local>"
}],
"color": "#99ccee",
"fallbackProxy": {
"host": "127.0.0.1",
"port": 1080,
"scheme": "socks5"
},
"name": "GFWed",
"profileType": "FixedProfile",
"revision": "153abe56d04"
},
"+__ruleListOf_自动切换": {
"color": "#99dd99",
"defaultProfileName": "direct",
"format": "AutoProxy",
"matchProfileName": "GFWed",
"name": "__ruleListOf_自动切换",
"profileType": "RuleListProfile",
"revision": "153abdf798a",
"ruleList": "",
"sourceUrl": "https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt",
"lastUpdate": null
},
"+自动切换": {
"color": "#99dd99",
"defaultProfileName": "__ruleListOf_自动切换",
"name": "自动切换",
"profileType": "SwitchProfile",
"revision": "153abd3207f",
"rules": [{
"condition": {
"conditionType": "HostWildcardCondition",
"pattern": "raw.githubusercontent.com"
},
"profileName": "GFWed"
}]
},
"-confirmDeletion": true,
"-downloadInterval": 1440,
"-enableQuickSwitch": false,
"-monitorWebRequests": true,
"-quickSwitchProfiles": [],
"-refreshOnProfileChange": true,
"-revertProxyChanges": true,
"-showInspectMenu": true,
"-startupProfileName": "",
"schemaVersion": 2
}
然后就可以享用自动切换代理模式了。