专栏首页大猪的笔记Padavan 配置v2ray

Padavan 配置v2ray

参考:https://ntgeralt.blogspot.com/2019/06/padavan-v2ray.html

首先:按图

注意配置文件中信息:

"address": "",
"id": "",
"alterId":,
"path": ""

配置文件:

{
  "log": {
    "access": "",
    "error": "",
    "loglevel": ""
  },
  "inbound": {
    "port": 1080,
    "listen": "0.0.0.0",
    "protocol": "socks",
    "settings": {
      "auth": "noauth",
      "udp": true,
      "ip": "127.0.0.1",
      "clients": null
    },
    "streamSettings": null
  },
  "outbound": {
    "tag": "agentout",
    "protocol": "vmess",
    "settings": {
      "vnext": [
        {
          "address": "xxxx.com",
          "port": 443,
          "users": [
            {
              "id": "5c736474-xxx-2a2ae2dbcce4",
              "alterId": 64,
              "security": "auto"
            }
          ]
        }
      ],
      "servers": null
    },
    "streamSettings": {
      "network": "ws",
      "security": "tls",
      "tcpSettings": null,
      "kcpSettings": null,
      "wsSettings": {
        "connectionReuse": true,
        "path": "/vv/"
      }
    },
    "mux": {
      "enabled": true
    }
  },
  "inboundDetour": [
    {
      "port": "1099",
      "listen": "0.0.0.0",
    "protocol": "dokodemo-door",
    "settings": {
      "network": "tcp,udp",
      "timeout": 300,
      "followRedirect": true
    }
    }
  ],
  "outboundDetour": [
    {
      "protocol": "freedom",
      "settings": {
        "response": null
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      },
      "tag": "blockout"
    }
  ],
  "dns": {
    "servers": [
      "119.29.29.29",
      "localhost"
    ]
  },
  "routing": {
    "strategy": "rules",
    "domainStrategy": "IPIfNonMatch",
    "settings": {
      "rules": [
        {
          "type": "field",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "100.100.100.100/32",
            "188.188.188.188/32",
            "110.110.110.110/32",
            "::1/128",
            "fc00::/7",
            "fe80::/10",
            "geoip:cn"
          ],
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "domain": [
            "geosite:cn",
            "geosite:speedtest"
          ],
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "protocol": [
            "bittorrent"
          ],
          "outboundTag": "direct"
        }
      ]
    }
  }
}

也可以配一个白名单版的规则:

{
  "log": {
    "access": "",
    "error": "",
    "loglevel": "debug"
  },
  "inbound": {
    "port": 1080,
    "listen": "0.0.0.0",
    "protocol": "socks",
    "settings": {
      "auth": "noauth",
      "udp": true,
      "ip": "127.0.0.1",
      "clients": null
    },
    "streamSettings": null
  },
  "outbound": {
    "protocol": "freedom",
    "settings": {
      "response": null
    },
    "tag": "directbase"
  },
  "inboundDetour": [
    {
      "port": "1099",
      "listen": "0.0.0.0",
      "protocol": "dokodemo-door",
      "settings": {
        "network": "tcp,udp",
        "timeout": 300,
        "followRedirect": true
      }
    }
  ],
  "outboundDetour": [
    {
      "tag": "proxy",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "xxxxxx",
            "port": 80,
            "users": [
              {
                "id": "xxxxxxxx",
                "alterId": 2,
                "security": "auto"
              }
            ]
          }
        ],
        "servers": null
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tcpSettings": null,
        "kcpSettings": null,
        "wsSettings": {
          "connectionReuse": true,
          "path": "/v2ray"
        }
      },
      "mux": {
        "enabled": false
      }
    },
    {
      "protocol": "freedom",
      "settings": {
        "response": null
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      },
      "tag": "blockout"
    }
  ],
  "routing": {
    "strategy": "rules",
    "domainStrategy": "AsIs",
    "settings": {
      "rules": [
        {
          "type": "field",
          "domain": [
            "a248.e.akamai.net",
            "a248.e.akamai.net",
            "voa-11.akacast.akamaistream.net",
            "s3.amazonaws.com",
            "bbc.co.uk",
            "bbc.co.uk",
            "bbc.co.uk",
            "bbc.co.uk",
            "bbc.com",
            "bbc.com",
            "bbcchinese.com",
            "bbcchinese.com",
            "cdninstagram.com",
            "cdninstagram.com",
            "facebook.com",
            "facebook.com",
            "fbcdn.net",
            "facebook.design",
            "connect.facebook.net",
            "fb.com",
            "fb.me",
            "instagram.com",
            "instagram.com",
            "m.me",
            "messenger.com",
            "oculus.com",
            "oculuscdn.com",
            "rocksdb.org",
            "whatsapp.net",
            "1e100.net",
            "abc.xyz",
            "admob.com",
            "adsense.com",
            "agoogleaday.com",
            "ampproject.org",
            "android.com",
            "androidify.com",
            "api.ai",
            "appspot.com",
            "appspot.com",
            "blog.google",
            "blogspot.com",
            "blogspot.co.jp",
            "blogspot.co.kr",
            "blogspot.hk",
            "blogspot.sg",
            "certificate-transparency.org",
            "chrome.com",
            "chromecast.com",
            "chromeexperiments.com",
            "chromercise.com",
            "chromestatus.com",
            "chromium.org",
            "com.google",
            "creativelab5.com",
            "data-vocabulary.org",
            "debug.com",
            "deepmind.com",
            "deja.com",
            "design.google",
            "digisfera.com",
            "domains.google",
            "environment.google",
            "feedburner.com",
            "g.co",
            "gcr.io",
            "get.how",
            "getmdl.io",
            "ggpht.com",
            "gmail.com",
            "gmodules.com",
            "godoc.org",
            "golang.org",
            "goo.gl",
            "groups.google.cn",
            "google.com",
            "google.co.jp",
            "google.co.kr",
            "google.co.uk",
            "google.com.hk",
            "google.com.sg",
            "google.com.tw",
            "google.de",
            "google.fr",
            "google.io",
            "google.it",
            "google.ru",
            "googleapis.cn",
            "googleapis.com",
            "googleapps.com",
            "googleartproject.com",
            "googleblog.com",
            "googlebot.com",
            "googlecapital.com",
            "googlecode.com",
            "googlecommerce.com",
            "googledomains.com",
            "googleearth.com",
            "googledrive.com",
            "googlegroups.com",
            "googlehosted.com",
            "googleideas.com",
            "googleinsidesearch.com",
            "googlelabs.com",
            "googlemail.com",
            "googleplay.com",
            "googleplus.com",
            "googlesource.com",
            "googlesyndication.com",
            "googleusercontent.com",
            "googlevideo.com",
            "googleweblight.com",
            "googlezip.net",
            "groups.google.cn",
            "gstatic.com",
            "gvt0.com",
            "gvt1.com",
            "gvt3.com",
            "gwtproject.org",
            "html5rocks.com",
            "iam.soy",
            "igoogle.com",
            "itasoftware.com",
            "like.com",
            "madewithcode.com",
            "material.io",
            "nic.google",
            "on2.com",
            "panoramio.com",
            "picasaweb.com",
            "pin-cong.com",
            "polymer-project.org",
            "questvisual.com",
            "api.recaptcha.net",
            "api-secure.recaptcha.net",
            "api-verify.recaptcha.net",
            "redhotlabs.com",
            "registry.google",
            "savethedate.foo",
            "schema.org",
            "shattered.io",
            "sipml5.org",
            "stories.google",
            "synergyse.com",
            "teachparentstech.org",
            "tensorflow.org",
            "thinkwithgoogle.com",
            "tiltbrush.com",
            "waveprotocol.org",
            "waymo.com",
            "webmproject.org",
            "webrtc.org",
            "whatbrowser.org",
            "widevine.com",
            "withgoogle.com",
            "xn--ngstr-lra8j.com",
            "youtu.be",
            "youtube.com",
            "youtube.com",
            "youtube-nocookie.com",
            "youtubeeducation.com",
            "youtubegaming.com",
            "ytimg.com",
            "zynamics.com",
            "a1.nyt.com",
            "int.nyt.com",
            "s1.nyt.com",
            "static01.nyt.com",
            "static01.nyt.com",
            "typeface.nyt.com",
            "nytchina.com",
            "nytcn.me",
            "nytcn.me",
            "nytco.com",
            "nyti.ms",
            "nytimes.com",
            "nytimes.com",
            "nytimg.com",
            "userapi.nytlog.com",
            "nytstyle.com",
            "nytstyle.com",
            "t.me",
            "updates.tdesktop.com",
            "telegram.dog",
            "telegram.me",
            "telegram.org",
            "telegramdownload.com",
            "page.bid.yahoo.com",
            "tw.bid.yahoo.com",
            "tw.bid.yahoo.com",
            "blogs.yahoo.co.jp",
            "search.yahoo.co.jp",
            "buy.yahoo.com.tw",
            "hk.yahoo.com",
            "hk.knowledge.yahoo.com",
            "hk.myblog.yahoo.com",
            "news.yahoo.com",
            "hk.news.yahoo.com",
            "hk.rd.yahoo.com",
            "hk.search.yahoo.com",
            "hk.video.news.yahoo.com",
            "meme.yahoo.com",
            "tw.answers.yahoo.com",
            "tw.answers.yahoo.com",
            "tw.knowledge.yahoo.com",
            "tw.mall.yahoo.com",
            "tw.yahoo.com",
            "tw.mobi.yahoo.com",
            "tw.myblog.yahoo.com",
            "tw.news.yahoo.com",
            "pulse.yahoo.com",
            "upcoming.yahoo.com",
            "video.yahoo.com",
            "yahoo.com.hk",
            "duckduckgo-owned-server.yahoo.net",
            "video.ap.org",
            "apkpure.com",
            "archives.gov",
            "archive.is",
            "archive.is",
            "archive.fo",
            "archive.org",
            "bit.ly",
            "bit.ly",
            "bloombergview.com",
            "c-spanvideo.org",
            "c-spanvideo.org",
            "chinadigitaltimes.net",
            "cnn.com",
            "dm530.net",
            "share.dmhy.org",
            "dmm.co.jp",
            "dmm.com",
            "dropbox.com",
            "duckduckgo.com",
            "duckduckgo.com",
            "api.dropboxapi.com",
            "dropboxusercontent.com",
            "dw.com",
            "dw.com",
            "dw.de",
            "dw-world.com",
            "dw-world.com",
            "dw-world.de",
            "dw-world.de",
            "economist.com",
            "fanqianghou.com",
            "fc2.com",
            "flipboard.com",
            "gettyimages.com",
            "git.io",
            "gov.tw",
            "hulu.com",
            "huluim.com",
            "idv.tw",
            "ifanqiang.com",
            "j.mp",
            "kakao.com",
            "kakao.com",
            "kik.com",
            "imgur.com",
            "line.me",
            "line-apps.com",
            "line-scdn.net",
            "onedrive.live.com",
            "medium.com",
            "mobile01.com",
            "mobile01.com",
            "line.naver.jp",
            "nbc.com",
            "netflix.com",
            "nextmedia.com",
            "nflximg.com",
            "nflximg.net",
            "nflxext.com",
            "nflxso.net",
            "nflxvideo.net",
            "dynupdate.no-ip.com",
            "nyaa.si",
            "on.cc",
            "reuters.com",
            "pastebin.com",
            "video.pbs.org",
            "pinterest.com",
            "pinterest.com",
            "pixiv.net",
            "rfi.fr",
            "rfi.fr",
            "scmp.com",
            "shadowsocks.org",
            "shutterstock.com",
            "snapchat.com",
            "spotify.com",
            "static-economist.com",
            "t.co",
            "t.co",
            "theinitium.com",
            "tumblr.com",
            "tumblr.com",
            "forum.tvb.com",
            "news.tvb.com",
            "news.tvb.com",
            "news.tvbs.com.tw",
            "twimg.com",
            "twitter.com",
            "twitter.com",
            "vid.me",
            "vimeo.com",
            "vimeo.com",
            "w3schools.com",
            "wenxuecheng.com",
            "wikileaks.ch",
            "wikileaks.com",
            "wikileaks.de",
            "wikileaks.eu",
            "wikileaks.lu",
            "wikileaks.org",
            "wikileaks.org",
            "wikileaks.pl",
            "wikileaks-forum.com",
            "wikinews.org",
            "wuu.wikipedia.org",
            "m.wikipedia.org",
            "wikipedia.org",
            "zh-yue.wikipedia.org",
            "wsj.com",
            "x-art.com",
            "beeg.com",
            "pornhub.com",
            "t66y.com",
            "t66y.com",
            "xvideos.com",
            "youporn.com"
          ],
          "outboundTag": "proxy"
        }
      ]
    }
  }
}

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 安装influxdb监控套件

    进入 https://grafana.com/dashboards/928 按它的配置,修改telegraf的配置。 下载json文件,进入new dash...

    超级大猪
  • 异步,同步,阻塞,非阻塞程序的实现

    终于用透支生命的方法把这一课学完了。感动。以后不这样了。 实现异步非阻塞是一个大命题,这里只从原理出发。我会慢慢修改这篇文章。 本文将从异步sleep的实现入手...

    超级大猪
  • 使用virtualbox部署ubuntu

    也可看看这个 http://onthecloud.blog.51cto.com/7312338/1350159

    超级大猪
  • 一些知名网站的 404 页面

    疯狂的技术宅
  • “配置云”3声母域名超15万元结拍

    三声母域名的简短性一直是个嚼不烂的优势梗,域名的一大作用就是为了让人们记住其所应用网站,让企业品牌得到推广宣传。所以,域名字符越短越有好处,也越受欢...

    躲在树上的域小名
  • “娃娃”叠拼、waiguan等域名相继易主

    拼音米因其独特性、好记忆的优点,在米市上获得众多投资人和终端的青睐。这几天在市场又有不少域名完成了交易,wawa.com.cn、4e.com易主,w...

    躲在树上的域小名
  • “门徒”protege.com等一批短小精悍3字母结拍

    “门徒”protege.com、“小溪”creek.com,等一批短小精悍,惹人喜爱的3字母域名纷纷结拍了,下面就来详细介绍一下:

    躲在树上的域小名
  • 域名资讯:本周大量域名被交易,其中不少极品域名

      WMN.com Telepathy公司售出

    躲在树上的域小名
  • 如何判断安卓模拟器的型号(品牌)

    看到这个标题,可能很多人会疑惑,为啥?判断安卓模拟器本身就不一定准确,更何况还要知道它是什么品牌?

    meteoric
  • 教你把自己Adnroid代码上传到JCenter

    Xiaolei123

扫码关注云+社区

领取腾讯云代金券