forked from qiubaiying/qiubaiying.github.io
-
Notifications
You must be signed in to change notification settings - Fork 10
/
xrayr审计和禁止BT和端口.html
1 lines (1 loc) · 20.6 KB
/
xrayr审计和禁止BT和端口.html
1
<!DOCTYPE html><html lang="zh-CN" data-default-color-scheme="auto"><head><meta charset="UTF-8"><link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.webp"><link rel="icon" href="/img/favicon.webp"><link rel="canonical" href="https://jichangtuijian.com/xrayr审计和禁止bt和端口.html"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=5,shrink-to-fit=no"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"><meta name="theme-color" content="#2f4154"><meta name="author" content=""><meta name="keywords" content="机场推荐"><meta name="description" content="XrayR审计样例:包括屏蔽端口、禁止BT、迅雷:是因为版权,Spam是避免滥发邮件,屏蔽轮子网站是因为轮系媒体是被重点关注的网站,屏蔽了避免客户被钓鱼抓拖累机场主。360会上报机场ip; 本人Telegram电报频道:科学上网观察与机场测速频道:最新机场推荐与机场评测,掌握最新机场优惠折扣通知,最新科学上网相关新闻与消息,各种想法等,欢迎关注。 XrayR审计规则说明默认屏蔽这些端口22,23,"><meta property="og:type" content="article"><meta property="og:title" content="XrayR审计规则禁止BT禁止端口和网站等"><meta property="og:url" content="https://jichangtuijian.com/xrayr%E5%AE%A1%E8%AE%A1%E5%92%8C%E7%A6%81%E6%AD%A2bt%E5%92%8C%E7%AB%AF%E5%8F%A3.html"><meta property="og:site_name" content="机场推荐与机场评测"><meta property="og:description" content="XrayR审计样例:包括屏蔽端口、禁止BT、迅雷:是因为版权,Spam是避免滥发邮件,屏蔽轮子网站是因为轮系媒体是被重点关注的网站,屏蔽了避免客户被钓鱼抓拖累机场主。360会上报机场ip; 本人Telegram电报频道:科学上网观察与机场测速频道:最新机场推荐与机场评测,掌握最新机场优惠折扣通知,最新科学上网相关新闻与消息,各种想法等,欢迎关注。 XrayR审计规则说明默认屏蔽这些端口22,23,"><meta property="og:locale" content="zh_CN"><meta property="article:published_time" content="2023-06-21T12:00:25.930Z"><meta property="article:modified_time" content="2024-10-22T12:57:06.551Z"><meta property="article:tag" content="审计"><meta name="twitter:card" content="summary_large_image"><title>XrayR审计规则禁止BT禁止端口和网站等 - 机场推荐与机场评测</title><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/bootstrap/4.6.0/css/bootstrap.min.css"><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/github-markdown-css/4.0.0/github-markdown.min.css"><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/hint.css/2.6.0/hint.min.css"><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/fancybox/3.5.7/jquery.fancybox.min.css"><link rel="stylesheet" href="//at.alicdn.com/t/c/font_1749284_5i9bdhy70f8.css"><link rel="stylesheet" href="//at.alicdn.com/t/c/font_1736178_k526ubmyhba.css"><link rel="stylesheet" href="/css/main.css"><script id="fluid-configs">var Fluid=window.Fluid||{};Fluid.ctx=Object.assign({},Fluid.ctx);var CONFIG={hostname:"jichangtuijian.com",root:"/",version:"1.9.8",typing:{enable:!1,typeSpeed:70,cursorChar:"_",loop:!1,scope:[]},anchorjs:{enable:!1,element:"h1,h2,h3,h4,h5,h6",placement:"left",visible:"hover",icon:""},progressbar:{enable:!0,height_px:3,color:"#29d",options:{showSpinner:!1,trickleSpeed:100}},code_language:{enable:!0,default:"TEXT"},copy_btn:!1,image_caption:{enable:!0},image_zoom:{enable:!0,img_url_replace:["",""]},toc:{enable:!0,placement:"right",headingSelector:"h1,h2,h3,h4,h5,h6",collapseDepth:0},lazyload:{enable:!0,loading_img:"/img/loading.svg",onlypost:!1,offset_factor:2},web_analytics:{enable:!1,follow_dnt:!0,baidu:null,google:{measurement_id:null},tencent:{sid:null,cid:null},leancloud:{app_id:null,app_key:null,server_url:null,path:"window.location.pathname",ignore_local:!1},umami:{src:null,website_id:null,domains:null,start_time:"2024-01-01T00:00:00.000Z",token:null,api_server:null}},search_path:"/local-search.xml",include_content_in_search:!0};if(CONFIG.web_analytics.follow_dnt){var dntVal=navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack;Fluid.ctx.dnt=dntVal&&(dntVal.startsWith("1")||dntVal.startsWith("yes")||dntVal.startsWith("on"))}</script><script src="/js/utils.js"></script><script src="/js/color-schema.js"></script><meta name="generator" content="Hexo 7.0.0"></head><body><header><div class="header-inner" style="height:70vh"><nav id="navbar" class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar"><div class="container"><a class="navbar-brand" href="/"><strong>机场推荐</strong> </a><button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><div class="animated-icon"><span></span><span></span><span></span></div></button><div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav ml-auto text-center"><li class="nav-item"><a class="nav-link" href="/" target="_self"><i class="iconfont icon-home-fill"></i> <span>首页</span></a></li><li class="nav-item"><a class="nav-link" href="/archives/" target="_self"><i class="iconfont icon-archive-fill"></i> <span>归档</span></a></li><li class="nav-item" id="color-toggle-btn"><a class="nav-link" target="_self" href="javascript:;" rel="external nofollow noreferrer" aria-label="Color Toggle"><i class="iconfont icon-dark" id="color-toggle-icon"></i></a></li></ul></div></div></nav><div id="banner" class="banner" parallax="true" style="background:url(/img/default.webp) no-repeat center center;background-size:cover"><div class="full-bg-img"><div class="mask flex-center" style="background-color:rgba(0,0,0,.3)"><div class="banner-text text-center fade-in-up"><div class="h2"><span id="subtitle">XrayR审计规则禁止BT禁止端口和网站等</span></div><div class="mt-3"></div><div class="mt-1"></div></div></div></div></div></div></header><main><div class="container-fluid nopadding-x"><div class="row nomargin-x"><div class="side-col d-none d-lg-block col-lg-2"></div><div class="col-lg-8 nopadding-x-md"><div class="container nopadding-x-md" id="board-ctn"><div id="board"><article class="post-content mx-auto"><h1 id="seo-header">XrayR审计规则禁止BT禁止端口和网站等</h1><p id="updated-time" class="note note-info">本文最后更新于 2024年10月22日 晚上</p><div class="markdown-body"><p>XrayR审计样例:包括屏蔽端口、禁止BT、迅雷:是因为版权,Spam是避免滥发邮件,屏蔽轮子网站是因为轮系媒体是被重点关注的网站,屏蔽了避免客户被钓鱼抓拖累机场主。360会上报机场ip;</p><p>本人Telegram电报频道:<a href="https://t.me/jichangtj" rel="external nofollow noreferrer">科学上网观察与机场测速频道</a>:最新机场推荐与机场评测,掌握最新机场优惠折扣通知,最新科学上网相关新闻与消息,各种想法等,欢迎关注。</p><h2 id="XrayR审计规则说明"><a href="#XrayR审计规则说明" class="headerlink" title="XrayR审计规则说明"></a>XrayR审计规则说明</h2><p>默认屏蔽这些端口22,23,24,25,107,194,445,465,587,992,3389,6665-6669,6679,6697,6881-6999,7000,10000-65535</p><p>route.json<br></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br></pre></td><td class="code"><pre><span class="line">{</span><br><span class="line"> "domainStrategy": "IPOnDemand",</span><br><span class="line"> "rules": [</span><br><span class="line"> {</span><br><span class="line"> "type": "field",</span><br><span class="line"> "outboundTag": "block",</span><br><span class="line"> "ip": [</span><br><span class="line"> "geoip:private"</span><br><span class="line"> ]</span><br><span class="line"> },</span><br><span class="line"> {</span><br><span class="line"> "type": "field",</span><br><span class="line"> "outboundTag": "block",</span><br><span class="line"> "domain": [</span><br><span class="line"> "regexp:(api|ps|sv|offnavi|newvector|ulog.imap|newloc)(.map|).(baidu|n.shifen).com",</span><br><span class="line"> "regexp:(.+.|^)(360|so).(cn|com)",</span><br><span class="line"> "regexp:(Subject|HELO|SMTP)",</span><br><span class="line"> "regexp:(torrent|.torrent|peer_id=|info_hash|get_peers|find_node|BitTorrent|announce_peer|announce.php?passkey=)",</span><br><span class="line"> "regexp:(^.@)(guerrillamail|guerrillamailblock|sharklasers|grr|pokemail|spam4|bccto|chacuo|027168).(info|biz|com|de|net|org|me|la)",</span><br><span class="line"> "regexp:(.?)(xunlei|sandai|Thunder|XLLiveUD)(.)",</span><br><span class="line"> "regexp:(..||)(dafahao|mingjinglive|botanwang|minghui|dongtaiwang|falunaz|epochtimes|ntdtv|falundafa|falungong|wujieliulan|zhengjian).(org|com|net)",</span><br><span class="line"> "regexp:(ed2k|.torrent|peer_id=|announce|info_hash|get_peers|find_node|BitTorrent|announce_peer|announce.php?passkey=|magnet:|xunlei|sandai|Thunder|XLLiveUD|bt_key)",</span><br><span class="line"> "regexp:(.+.|^)(360|speedtest|fast|so).(cn|com|net)",</span><br><span class="line"> "regexp:(.*.||)(guanjia.qq.com|qqpcmgr|QQPCMGR)",</span><br><span class="line"> "regexp:(.*.||)(rising|kingsoft|duba|xindubawukong|jinshanduba).(com|net|org)",</span><br><span class="line"> "regexp:(.*.||)(netvigator|torproject).(com|cn|net|org)",</span><br><span class="line"> "regexp:(..||)(visa|mycard|mastercard|gov|gash|beanfun|bank).",</span><br><span class="line"> "regexp:(.*.||)(gov|12377|12315|talk.news.pts.org|creaders|zhuichaguoji|efcc.org|cyberpolice|aboluowang|tuidang|epochtimes|nytimes|zhengjian|110.qq|mingjingnews|inmediahk|xinsheng|breakgfw|chengmingmag|jinpianwang|qi-gong|mhradio|edoors|renminbao|soundofhope|xizang-zhiye|bannedbook|ntdtv|12321|secretchina|dajiyuan|boxun|chinadigitaltimes|dwnews|huaglad|oneplusnews|epochweekly|cn.rfi).(cn|com|org|net|club|net|fr|tw|hk|eu|info|me)",</span><br><span class="line"> "regexp:(.*.||)(miaozhen|cnzz|talkingdata|umeng).(cn|com)",</span><br><span class="line"> "regexp:(.*.||)(mycard).(com|tw)",</span><br><span class="line"> "regexp:(.*.||)(gash).(com|tw)",</span><br><span class="line"> "regexp:(.bank.)",</span><br><span class="line"> "regexp:(.*.||)(pincong).(rocks)",</span><br><span class="line"> "regexp:(.*.||)(taobao).(com)"</span><br><span class="line"> ]</span><br><span class="line"> },</span><br><span class="line"> {</span><br><span class="line"> "type": "field",</span><br><span class="line"> "outboundTag": "block",</span><br><span class="line"> "ip": [</span><br><span class="line"> "127.0.0.1/32",</span><br><span class="line"> "10.0.0.0/8",</span><br><span class="line"> "fc00::/7",</span><br><span class="line"> "fe80::/10",</span><br><span class="line"> "172.16.0.0/12"</span><br><span class="line"> ]</span><br><span class="line"> },</span><br><span class="line"> {</span><br><span class="line"> "type": "field",</span><br><span class="line"> "outboundTag": "block",</span><br><span class="line"> "protocol": ["bittorrent"]</span><br><span class="line"> },</span><br><span class="line"> {</span><br><span class="line"> "type": "field",</span><br><span class="line"> "outboundTag": "block",</span><br><span class="line"> "port": "22,23,24,25,107,194,445,465,587,992,3389,6665-6669,6679,6697,6881-6999,7000,10000-65535"</span><br><span class="line"> }</span><br><span class="line"> ]</span><br><span class="line">}</span><br></pre></td></tr></table></figure><p></p><p>custom_outbound.json</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">[</span><br><span class="line"> {</span><br><span class="line"> "tag": "IPv4_out",</span><br><span class="line"> "protocol": "freedom",</span><br><span class="line"> "settings": {}</span><br><span class="line"> },</span><br><span class="line"> {</span><br><span class="line"> "tag": "IPv6_out",</span><br><span class="line"> "protocol": "freedom",</span><br><span class="line"> "settings": {</span><br><span class="line"> "domainStrategy": "UseIPv6"</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> {</span><br><span class="line"> "protocol": "blackhole",</span><br><span class="line"> "tag": "block"</span><br><span class="line"> }</span><br><span class="line">]</span><br></pre></td></tr></table></figure><p>config.yml</p><p>RouteConfigPath和OutboundConfigPath 后面的#号去除</p><h2 id="其它规则"><a href="#其它规则" class="headerlink" title="其它规则"></a>其它规则</h2><p><a href="https://github.com/Rakau/blockList" rel="external nofollow noreferrer">https://github.com/Rakau/blockList</a></p><h3 id="Soga用法"><a href="#Soga用法" class="headerlink" title="Soga用法"></a>Soga用法</h3><p>以Root权限运行之后重启你的Soga<br></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget https://raw.githubusercontent.com/Rakau/blockList/main/blockList -O /etc/soga/blockList</span><br></pre></td></tr></table></figure><p></p><h3 id="XrayR用法"><a href="#XrayR用法" class="headerlink" title="XrayR用法"></a>XrayR用法</h3><p>以Root权限运行之后,编辑/etc/XrayR/config.yml找到RuleListPath这一项,去掉#和无用语句后保存重启XrayR</p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget https://raw.githubusercontent.com/Rakau/blockList/main/blockList -O /etc/XrayR/rulelis</span><br></pre></td></tr></table></figure></div><hr><div><div class="post-metas my-3"><div class="post-meta"><i class="iconfont icon-tags"></i> <a href="/tags/%E5%AE%A1%E8%AE%A1/" class="print-no-link">#审计</a></div></div><div class="post-prevnext my-3"><article class="post-prev col-6"><a href="/v2board%E5%AF%B9%E6%8E%A5soga%E8%A7%84%E5%88%99%E5%AE%A1%E8%AE%A1.html" title="v2board对接soga规则审计"><i class="iconfont icon-arrowleft"></i> <span class="hidden-mobile">v2board对接soga规则审计</span> <span class="visible-mobile">上一篇</span></a></article><article class="post-next col-6"><a href="/%E6%9C%BA%E5%9C%BA%E5%B8%B8%E8%A7%81%E5%AE%A1%E8%AE%A1%E8%A7%84%E5%88%99.html" title="机场常见审计规则"><span class="hidden-mobile">机场常见审计规则</span> <span class="visible-mobile">下一篇</span> <i class="iconfont icon-arrowright"></i></a></article></div></div></article></div></div></div><div class="side-col d-none d-lg-block col-lg-2"><aside class="sidebar" style="margin-left:-1rem"><div id="toc"><p class="toc-header"><i class="iconfont icon-list"></i> <span>目录</span></p><div class="toc-body" id="toc-body"></div></div></aside></div></div></div><a id="scroll-top-button" aria-label="TOP" href="#" role="button"><i class="iconfont icon-arrowup" aria-hidden="true"></i></a></main><footer><div class="footer-inner"><div class="footer-content"><a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a></div></div></footer><script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/nprogress/0.2.0/nprogress.min.js"></script><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/nprogress/0.2.0/nprogress.min.css"><script>NProgress.configure({showSpinner:!1,trickleSpeed:100}),NProgress.start(),window.addEventListener("load",(function(){NProgress.done()}))</script><script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/jquery/3.6.0/jquery.min.js"></script><script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/bootstrap/4.6.0/js/bootstrap.min.js"></script><script src="/js/events.js"></script><script src="/js/plugins.js"></script><script src="/js/img-lazyload.js"></script><script>Fluid.utils.createScript("https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/tocbot/4.12.3/tocbot.min.js",(function(){var t=jQuery("#toc");if(0!==t.length&&window.tocbot){var o=jQuery("#board-ctn").offset().top;window.tocbot.init(Object.assign({tocSelector:"#toc-body",contentSelector:".markdown-body",linkClass:"tocbot-link",activeLinkClass:"tocbot-active-link",listClass:"tocbot-list",isCollapsedClass:"tocbot-is-collapsed",collapsibleClass:"tocbot-is-collapsible",scrollSmooth:!0,includeTitleTags:!0,headingsOffset:-o},CONFIG.toc)),t.find(".toc-list-item").length>0&&t.css("visibility","visible"),Fluid.events.registerRefreshCallback((function(){if("tocbot"in window){tocbot.refresh();var t=jQuery("#toc");if(0===t.length||!tocbot)return;t.find(".toc-list-item").length>0&&t.css("visibility","visible")}}))}}))</script><script>Fluid.plugins.codeWidget()</script><script>Fluid.utils.createScript("https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/fancybox/3.5.7/jquery.fancybox.min.js",(function(){Fluid.plugins.fancyBox()}))</script><script>Fluid.plugins.imageCaption()</script><script src="/js/boot.js"></script><noscript><div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div></noscript></body></html>