多谢,老哥 我试试。
我是要让国内服务器能科学上网,比如可以访问github代码仓库
大哥,我也是腾讯云,可以问下怎么通过clash 科学上网吗。我pc也用的clash。但是linux服务器不会弄。
大哥,服务器怎么通过clash科学上网,我也是腾讯云服务器。我想访问github等
听起来好高大上,不懂。我只会PC,clash上网
不是不报(封) 时候未到
就是服务器上装clash的服务端,然后linux设置所有的访问走proxy 代理到127.0.0.1:7890。
不过,你得本来就有梯子,或者你有海外的服务器,总之还是要有能上外网的东西
其实我觉得v2raya也挺不错的,带web图形界面,比clash for linux容易操作一些,你可以去看看 GitHub - v2rayA/v2rayA: A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols. 🚀
v2rayA 是一个支持全局透明代理的 V2Ray 客户端,同时兼容 SS、SSR、Trojan(trojan-go)、Tuic 与 Juicity协议。 [SSR支持清单]
v2rayA 致力于提供最简单的操作,满足绝大部分需求。
得益于 Web 客户端的优势,你不仅可以将其用于本地计算机,还可以轻松地将它部署在路由器或 NAS 上。
也就是说,用本地内网机器上网,,,云主机搭的顺风车。
如果怕在国内的服务器上挂代理被封机器的话,可以试试远程隧道,服务器通过本地代理科学上网
最好别挂,会封号,良心云的机器就会被删机
国内服务器,除了香港这些地区的不都是实名的么?而且理论上工信部都能审查到,实名科学上网还挂在部门上。不担心哪天把你当业绩刷了么?云服务商把你挂了算是保护你了。
是的,老哥你说得对
用docker跑个v2ray的容器,
version: '3'
services:
v2ray:
container_name: v2ray
image: v2fly/v2fly-core:curl
build: .
ports:
- 1080:1080
- 1081:1081
volumes:
- ./data/config.json:/etc/v2ray/config.json
command: run -c /etc/v2ray/config.json
restart: always
healthcheck:
test:
[
"CMD-SHELL",
"curl -s -I -x http://localhost:1080 http://google.com | grep 'HTTP/1.1 301 Moved Permanently'"
]
interval: 1m
timeout: 5s
retries: 3
start_period: 10s
自定义一下Dockerfile,支持curl
FROM v2fly/v2fly-core:latest
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update && apk add curl
配置项丢到相对目录 ./data/config.json,需要自己自定义一下outbounds
部分。
{
"log": {
"access": "",
"error": "",
"loglevel": "error"
},
"inbounds": [
{
"tag": "socks-in",
"port": 1081,
"listen": "::",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
{
"tag": "http-in",
"port": 1080,
"listen": "::",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "aa",
"port": 1000,
"users": [
{
"email": "123",
"id": "123",
"alterId": 123,
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "tcp"
},
"mux": {
"enabled": true
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct",
"settings": {
"domainStrategy": "UseIP"
}
}
],
"dns": {
"servers": [
"223.5.5.5",
"8.8.8.8",
"localhost"
]
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
"geoip:private",
"geoip:cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:cn"
],
"outboundTag": "direct"
}
]
}
}
然后本地
export https_proxy=http://127.0.0.1:1080 http_proxy=http://127.0.0.1:1080 all_proxy=socks5://127.0.0.1:1080