vpn
配置SwitchyOmega规则列表地址: https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
v2ray
debian系统
- 需要安装依赖 - apt install curl unzip daemon
- 安装 - bash <(curl -L -s https://install.direct/go.sh)
- 服务器配置 - vim /etc/v2ray/config.json
- 启动服务 - systemctl start v2ray
- 重启停止服务 - systemctl start|restart|stop|status v2ray
mac
- 安装 - brew tap qiwihui/v2ray
- brew install v2ray-core
- 配置 - /usr/local/etc/v2ray/config.json
- 启动服务 - brew services start start v2ray
- 重启停止服务 - brew services start|restart|stop|status v2ray
- v2ray配置大全:https://toutyrater.github.io/(墙) 
- 按道理来说,如下的配置是没有错误的,但是还是连不上,可能是mac客户端的问题 
- 服务器配置 
{
  "inbounds": [
    {
      "port": 443,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "uuid" 
          }
        ]
      }
    },
    {
      "port": 444,
      "protocol": "shadowsocks",
      "settings": {
        "method": "aes-128-gcm",
        "password": "yuan.ga"
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    }
  ]
}- 客户端配置 
{
  "inbounds": [
    {
      "port": 1080, // 监听端口
      "protocol": "socks", // 入口协议为 SOCKS 5
      "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
      },
      "settings": {
        "auth": "noauth"  // 不认证
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "serveraddr.com", // Shadowsocks 的服务器地址
            "method": "aes-128-gcm", // Shadowsocks 的加密方式
            "ota": true, // 是否开启 OTA,true 为开启
            "password": "sspasswd", // Shadowsocks 的密码
            "port": 1024  
          }
        ]
      }
    }
  ]
}Last updated
Was this helpful?