Padavan 配置v2ray
- 2020 年 2 月 18 日
- 筆記
参考: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" } ] } } }