2025年7月12日 13:29:46 星期六

Padavan 配置v2ray

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

首先:按图

注意配置文件中信息:

  1. "address": "",
  2. "id": "",
  3. "alterId":,
  4. "path": ""

配置文件:

  1. {
  2. "log": {
  3. "access": "",
  4. "error": "",
  5. "loglevel": "debug"
  6. },
  7. "inbound": {
  8. "port": 1080,
  9. "listen": "0.0.0.0",
  10. "protocol": "socks",
  11. "domainOverride": [
  12. "http",
  13. "tls"
  14. ],
  15. "settings": {
  16. "auth": "noauth",
  17. "udp": true,
  18. "ip": "127.0.0.1",
  19. "clients": null
  20. },
  21. "streamSettings": null
  22. },
  23. "outbound": {
  24. "tag": "agentout",
  25. "protocol": "vmess",
  26. "settings": {
  27. "vnext": [
  28. {
  29. "address": "xxxxxxxxx",
  30. "port": 80,
  31. "users": [
  32. {
  33. "id": "xxxxxxxxxx",
  34. "alterId": 2,
  35. "security": "none"
  36. }
  37. ]
  38. }
  39. ],
  40. "servers": null
  41. },
  42. "streamSettings": {
  43. "network": "ws",
  44. "security": "tls",
  45. "tcpSettings": null,
  46. "kcpSettings": null,
  47. "wsSettings": {
  48. "connectionReuse": true,
  49. "path": "/v2ray"
  50. }
  51. },
  52. "mux": {
  53. "enabled": false
  54. }
  55. },
  56. "inboundDetour": [
  57. {
  58. "port": "1099",
  59. "listen": "0.0.0.0",
  60. "domainOverride": [
  61. "http",
  62. "tls"
  63. ],
  64. "protocol": "dokodemo-door",
  65. "settings": {
  66. "network": "tcp,udp",
  67. "timeout": 300,
  68. "followRedirect": true
  69. }
  70. }
  71. ],
  72. "outboundDetour": [
  73. {
  74. "protocol": "freedom",
  75. "settings": {
  76. "response": null
  77. },
  78. "tag": "direct"
  79. },
  80. {
  81. "protocol": "blackhole",
  82. "settings": {
  83. "response": {
  84. "type": "http"
  85. }
  86. },
  87. "tag": "blockout"
  88. }
  89. ],
  90. "routing": {
  91. "strategy": "rules",
  92. "domainStrategy": "IPIfNonMatch",
  93. "settings": {
  94. "rules": [
  95. {
  96. "type": "field",
  97. "outboundTag": "direct",
  98. "domain": [
  99. "geosite:cn"
  100. ] // 中国大陆主流网站的域名
  101. },
  102. {
  103. "type": "field",
  104. "outboundTag": "direct",
  105. "ip": [
  106. "geoip:cn", // 中国大陆的 IP
  107. "geoip:private" // 私有地址 IP,如路由器等
  108. ]
  109. }
  110. ]
  111. }
  112. }
  113. }

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

  1. {
  2. "log": {
  3. "access": "",
  4. "error": "",
  5. "loglevel": "debug"
  6. },
  7. "inbound": {
  8. "port": 1080,
  9. "listen": "0.0.0.0",
  10. "protocol": "socks",
  11. "settings": {},
  12. "streamSettings": {
  13. "followRedirect": true,
  14. "udp": true
  15. }
  16. },
  17. "inboundDetour": [
  18. {
  19. "port": "1099",
  20. "listen": "0.0.0.0",
  21. "protocol": "dokodemo-door",
  22. "domainOverride": [
  23. "http",
  24. "tls"
  25. ],
  26. "settings": {
  27. "followRedirect": true,
  28. "udp": true
  29. }
  30. }
  31. ],
  32. "outbound": {
  33. "protocol": "freedom",
  34. "settings": {
  35. "domainStrategy": "UseIP"
  36. },
  37. "tag": "directbase"
  38. },
  39. "outboundDetour": [
  40. {
  41. "tag": "proxy",
  42. "protocol": "vmess",
  43. "settings": {
  44. "vnext": [
  45. {
  46. "address": "xxxxxxxxxxxx",
  47. "port": 80,
  48. "users": [
  49. {
  50. "id": "xxxxxxxx",
  51. "alterId": 2,
  52. "security": "none"
  53. }
  54. ]
  55. }
  56. ],
  57. "servers": {}
  58. },
  59. "streamSettings": {
  60. "network": "ws",
  61. "security": "tls",
  62. "tcpSettings": null,
  63. "kcpSettings": null,
  64. "wsSettings": {
  65. "connectionReuse": true,
  66. "path": "/v2ray"
  67. }
  68. },
  69. "mux": {
  70. "enabled": false
  71. }
  72. },
  73. {
  74. "protocol": "freedom",
  75. "settings": {
  76. "domainStrategy": "UseIP"
  77. },
  78. "tag": "direct"
  79. },
  80. {
  81. "protocol": "blackhole",
  82. "settings": {
  83. "response": {
  84. "type": "http"
  85. }
  86. },
  87. "tag": "blockout"
  88. }
  89. ],
  90. "routing": {
  91. "strategy": "rules",
  92. "domainStrategy": "IPOnDemand",
  93. "settings": {
  94. "rules": [
  95. {
  96. "type": "field",
  97. "outboundTag": "direct",
  98. "domain": [
  99. "geosite:cn"
  100. ] // 中国大陆主流网站的域名
  101. },
  102. {
  103. "type": "field",
  104. "outboundTag": "direct",
  105. "ip": [
  106. "geoip:cn", // 中国大陆的 IP
  107. "geoip:private" // 私有地址 IP,如路由器等
  108. ]
  109. },
  110. {
  111. "type": "field",
  112. "domain": [
  113. "a248.e.akamai.net",
  114. "a248.e.akamai.net",
  115. "voa-11.akacast.akamaistream.net",
  116. "s3.amazonaws.com",
  117. "bbc.co.uk",
  118. "bbc.co.uk",
  119. "bbc.co.uk",
  120. "bbc.co.uk",
  121. "bbc.com",
  122. "bbc.com",
  123. "bbcchinese.com",
  124. "bbcchinese.com",
  125. "cdninstagram.com",
  126. "cdninstagram.com",
  127. "facebook.com",
  128. "facebook.com",
  129. "fbcdn.net",
  130. "facebook.design",
  131. "connect.facebook.net",
  132. "fb.com",
  133. "fb.me",
  134. "instagram.com",
  135. "instagram.com",
  136. "m.me",
  137. "messenger.com",
  138. "oculus.com",
  139. "oculuscdn.com",
  140. "rocksdb.org",
  141. "whatsapp.net",
  142. "1e100.net",
  143. "abc.xyz",
  144. "admob.com",
  145. "adsense.com",
  146. "agoogleaday.com",
  147. "ampproject.org",
  148. "android.com",
  149. "androidify.com",
  150. "api.ai",
  151. "appspot.com",
  152. "appspot.com",
  153. "blog.google",
  154. "blogspot.com",
  155. "blogspot.co.jp",
  156. "blogspot.co.kr",
  157. "blogspot.hk",
  158. "blogspot.sg",
  159. "certificate-transparency.org",
  160. "chrome.com",
  161. "chromecast.com",
  162. "chromeexperiments.com",
  163. "chromercise.com",
  164. "chromestatus.com",
  165. "chromium.org",
  166. "com.google",
  167. "creativelab5.com",
  168. "data-vocabulary.org",
  169. "debug.com",
  170. "deepmind.com",
  171. "deja.com",
  172. "design.google",
  173. "digisfera.com",
  174. "domains.google",
  175. "environment.google",
  176. "feedburner.com",
  177. "g.co",
  178. "gcr.io",
  179. "get.how",
  180. "getmdl.io",
  181. "ggpht.com",
  182. "gmail.com",
  183. "gmodules.com",
  184. "godoc.org",
  185. "golang.org",
  186. "goo.gl",
  187. "groups.google.cn",
  188. "google.com",
  189. "google.co.jp",
  190. "google.co.kr",
  191. "google.co.uk",
  192. "google.com.hk",
  193. "google.com.sg",
  194. "google.com.tw",
  195. "google.de",
  196. "google.fr",
  197. "google.io",
  198. "google.it",
  199. "google.ru",
  200. "googleapis.cn",
  201. "googleapis.com",
  202. "googleapps.com",
  203. "googleartproject.com",
  204. "googleblog.com",
  205. "googlebot.com",
  206. "googlecapital.com",
  207. "googlecode.com",
  208. "googlecommerce.com",
  209. "googledomains.com",
  210. "googleearth.com",
  211. "googledrive.com",
  212. "googlegroups.com",
  213. "googlehosted.com",
  214. "googleideas.com",
  215. "googleinsidesearch.com",
  216. "googlelabs.com",
  217. "googlemail.com",
  218. "googleplay.com",
  219. "googleplus.com",
  220. "googlesource.com",
  221. "googlesyndication.com",
  222. "googleusercontent.com",
  223. "googlevideo.com",
  224. "googleweblight.com",
  225. "googlezip.net",
  226. "groups.google.cn",
  227. "gstatic.com",
  228. "gvt0.com",
  229. "gvt1.com",
  230. "gvt3.com",
  231. "gwtproject.org",
  232. "html5rocks.com",
  233. "iam.soy",
  234. "igoogle.com",
  235. "itasoftware.com",
  236. "like.com",
  237. "madewithcode.com",
  238. "material.io",
  239. "nic.google",
  240. "on2.com",
  241. "panoramio.com",
  242. "picasaweb.com",
  243. "pin-cong.com",
  244. "polymer-project.org",
  245. "questvisual.com",
  246. "api.recaptcha.net",
  247. "api-secure.recaptcha.net",
  248. "api-verify.recaptcha.net",
  249. "redhotlabs.com",
  250. "registry.google",
  251. "savethedate.foo",
  252. "schema.org",
  253. "shattered.io",
  254. "sipml5.org",
  255. "stories.google",
  256. "synergyse.com",
  257. "teachparentstech.org",
  258. "tensorflow.org",
  259. "thinkwithgoogle.com",
  260. "tiltbrush.com",
  261. "waveprotocol.org",
  262. "waymo.com",
  263. "webmproject.org",
  264. "webrtc.org",
  265. "whatbrowser.org",
  266. "widevine.com",
  267. "withgoogle.com",
  268. "xn--ngstr-lra8j.com",
  269. "youtu.be",
  270. "youtube.com",
  271. "youtube.com",
  272. "youtube-nocookie.com",
  273. "youtubeeducation.com",
  274. "youtubegaming.com",
  275. "ytimg.com",
  276. "zynamics.com",
  277. "a1.nyt.com",
  278. "int.nyt.com",
  279. "s1.nyt.com",
  280. "static01.nyt.com",
  281. "static01.nyt.com",
  282. "typeface.nyt.com",
  283. "nytchina.com",
  284. "nytcn.me",
  285. "nytcn.me",
  286. "nytco.com",
  287. "nyti.ms",
  288. "nytimes.com",
  289. "nytimes.com",
  290. "nytimg.com",
  291. "userapi.nytlog.com",
  292. "nytstyle.com",
  293. "nytstyle.com",
  294. "t.me",
  295. "updates.tdesktop.com",
  296. "telegram.dog",
  297. "telegram.me",
  298. "telegram.org",
  299. "telegramdownload.com",
  300. "page.bid.yahoo.com",
  301. "tw.bid.yahoo.com",
  302. "tw.bid.yahoo.com",
  303. "blogs.yahoo.co.jp",
  304. "search.yahoo.co.jp",
  305. "buy.yahoo.com.tw",
  306. "hk.yahoo.com",
  307. "hk.knowledge.yahoo.com",
  308. "hk.myblog.yahoo.com",
  309. "news.yahoo.com",
  310. "hk.news.yahoo.com",
  311. "hk.rd.yahoo.com",
  312. "hk.search.yahoo.com",
  313. "hk.video.news.yahoo.com",
  314. "meme.yahoo.com",
  315. "tw.answers.yahoo.com",
  316. "tw.answers.yahoo.com",
  317. "tw.knowledge.yahoo.com",
  318. "tw.mall.yahoo.com",
  319. "tw.yahoo.com",
  320. "tw.mobi.yahoo.com",
  321. "tw.myblog.yahoo.com",
  322. "tw.news.yahoo.com",
  323. "pulse.yahoo.com",
  324. "upcoming.yahoo.com",
  325. "video.yahoo.com",
  326. "yahoo.com.hk",
  327. "duckduckgo-owned-server.yahoo.net",
  328. "video.ap.org",
  329. "apkpure.com",
  330. "archives.gov",
  331. "archive.is",
  332. "archive.is",
  333. "archive.fo",
  334. "archive.org",
  335. "bit.ly",
  336. "bit.ly",
  337. "bloombergview.com",
  338. "c-spanvideo.org",
  339. "c-spanvideo.org",
  340. "chinadigitaltimes.net",
  341. "cnn.com",
  342. "dm530.net",
  343. "share.dmhy.org",
  344. "dmm.co.jp",
  345. "dmm.com",
  346. "dropbox.com",
  347. "duckduckgo.com",
  348. "duckduckgo.com",
  349. "api.dropboxapi.com",
  350. "dropboxusercontent.com",
  351. "dw.com",
  352. "dw.com",
  353. "dw.de",
  354. "dw-world.com",
  355. "dw-world.com",
  356. "dw-world.de",
  357. "dw-world.de",
  358. "economist.com",
  359. "fanqianghou.com",
  360. "fc2.com",
  361. "flipboard.com",
  362. "gettyimages.com",
  363. "git.io",
  364. "gov.tw",
  365. "hulu.com",
  366. "huluim.com",
  367. "idv.tw",
  368. "ifanqiang.com",
  369. "j.mp",
  370. "kakao.com",
  371. "kakao.com",
  372. "kik.com",
  373. "imgur.com",
  374. "line.me",
  375. "line-apps.com",
  376. "line-scdn.net",
  377. "onedrive.live.com",
  378. "medium.com",
  379. "mobile01.com",
  380. "mobile01.com",
  381. "line.naver.jp",
  382. "nbc.com",
  383. "netflix.com",
  384. "nextmedia.com",
  385. "nflximg.com",
  386. "nflximg.net",
  387. "nflxext.com",
  388. "nflxso.net",
  389. "nflxvideo.net",
  390. "dynupdate.no-ip.com",
  391. "nyaa.si",
  392. "on.cc",
  393. "reuters.com",
  394. "pastebin.com",
  395. "video.pbs.org",
  396. "pinterest.com",
  397. "pinterest.com",
  398. "pixiv.net",
  399. "rfi.fr",
  400. "rfi.fr",
  401. "scmp.com",
  402. "shadowsocks.org",
  403. "shutterstock.com",
  404. "snapchat.com",
  405. "spotify.com",
  406. "static-economist.com",
  407. "t.co",
  408. "t.co",
  409. "theinitium.com",
  410. "tumblr.com",
  411. "tumblr.com",
  412. "forum.tvb.com",
  413. "news.tvb.com",
  414. "news.tvb.com",
  415. "news.tvbs.com.tw",
  416. "twimg.com",
  417. "twitter.com",
  418. "twitter.com",
  419. "vid.me",
  420. "vimeo.com",
  421. "vimeo.com",
  422. "w3schools.com",
  423. "wenxuecheng.com",
  424. "wikileaks.ch",
  425. "wikileaks.com",
  426. "wikileaks.de",
  427. "wikileaks.eu",
  428. "wikileaks.lu",
  429. "wikileaks.org",
  430. "wikileaks.org",
  431. "wikileaks.pl",
  432. "wikileaks-forum.com",
  433. "wikinews.org",
  434. "wuu.wikipedia.org",
  435. "m.wikipedia.org",
  436. "wikipedia.org",
  437. "zh-yue.wikipedia.org",
  438. "wsj.com",
  439. "x-art.com",
  440. "beeg.com",
  441. "pornhub.com",
  442. "t66y.com",
  443. "t66y.com",
  444. "xvideos.com",
  445. "youporn.com"
  446. ],
  447. "outboundTag": "proxy"
  448. }
  449. ]
  450. }
  451. }
  452. }

来自 大脸猪 写于 2020-02-13 12:45 -- 更新于2020-10-19 13:06 -- 0 条评论

0条评论

字体
字号


评论: