<article class="post-content line-numbers" id="article-container" lg-uid="lg0"><p><a target="_blank"
rel="noopener noreferrer nofollow"
class="hover:text-gray-600"
href="https://www.v2cross.com/archives/1680104902581"><strong>搭建最新的Vision和Reality防止VPS端口封禁</strong></a>
</p>
<p></p>
<h1 id="heading-1">特性</h1>
<ul>
<li><p>支持<a target="_blank" rel="noopener noreferrer nofollow" href="https://github.com/XTLS/Xray-core">Xray-core[XTLS]</a>、<a
target="_blank" rel="noopener noreferrer nofollow"
href="https://github.com/v2fly/v2ray-core">v2ray-core</a>、<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://github.com/apernet/hysteria">hysteria</a>
</p></li>
<li><p>支持不同核心之间的配置文件互相读取</p></li>
<li><p>支持 <a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">VLESS</a>/<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">VMess</a>/<a
target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">Trojan</a>/<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">hysteria</a>
协议</p></li>
<li><p>支持<a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">Debian</a>、<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">Ubuntu</a>、<a
target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">Centos</a>系统,支持主流的<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">cpu</a>架构。
</p></li>
<li><p>支持<a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">任意组合</a>安装、支持<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">多用户管理</a>、支持<a
target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">DNS流媒体解锁</a>、支持<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">添加多端口</a>、<a
target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/li-yong-ren-yi-men-dokodemo-door-jin-xing-liu-mei-ti-jie-suo">支持任意门转发流量,可用于解锁Netflix、Google人机验证等</a>
</p></li>
<li><p>支持卸载后保留tls证书</p></li>
<li><p>支持IPv6,<a target="_blank" rel="noopener noreferrer nofollow"
href="https://github.com/mack-a/v2cross/blob/master/documents/ipv6_help.md">IPv6注意事项</a>
</p></li>
<li><p>支持<a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">WARP分流</a>、<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">IPv6分流</a>、<a
target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">任意门分流</a></p></li>
<li><p>支持<strong>BT下载管理</strong>、<strong>日志管理</strong>、<strong>域名黑名单管理</strong>、<strong>核心管理</strong>、<a
target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">伪装站点管理</a>、<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">路由规则文件管理</a>
</p></li>
<li><p><a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677"><strong>支持多VPS联合订阅</strong></a></p></li>
<li><p><a target="_blank" rel="noopener noreferrer nofollow"
href="https://github.com/mack-a/v2cross/blob/master/documents/install_tls.md">支持自定义证书安装</a></p>
</li>
</ul>
<p></p>
<h1 id="heading-2">脚本安装目录</h1>
<ul>
<li><p>根目录</p>
<div class="code-toolbar">
<pre class="language-bash" tabindex="0"><code class="hljs language-bash">/etc/v2cross</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span>
</button>
</div>
</div>
</div>
</li>
</ul>
<ul>
<li><p>Xray-core配置目录</p>
<div class="code-toolbar">
<pre class="language-bash" tabindex="0"><code
class="hljs language-bash">/etc/v2cross/xray/conf</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span>
</button>
</div>
</div>
</div>
</li>
<li><p>证书目录</p>
<div class="code-toolbar"><pre class="language-bash" tabindex="0"><code class="hljs language-bash">/etc/v2cross/tls
/root/.acme.sh</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span>
</button>
</div>
</div>
</div>
</li>
<li><p>warp目录</p>
<div class="code-toolbar">
<pre class="language-bash" tabindex="0"><code
class="hljs language-bash">/etc/v2cross/warp</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span>
</button>
</div>
</div>
</div>
</li>
<li><p>tuic</p>
<div class="code-toolbar">
<pre class="language-bash" tabindex="0"><code
class="hljs language-bash">/etc/v2cross/tuic</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span>
</button>
</div>
</div>
</div>
</li>
<li><p>hysteria</p>
<div class="code-toolbar">
<pre class="language-bash" tabindex="0"><code
class="hljs language-bash">/etc/v2cross/hysteria</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span>
</button>
</div>
</div>
</div>
</li>
</ul>
<h1 id="heading-3">支持的协议类型</h1>
<ul>
<li><p>VLESS+TCP+Reality+uTLS+Vision【<a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">推荐</a>】</p>
</li>
<li><p>VLESS+gRPC+Reality+uTLS【<a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">推荐</a>】</p></li>
<li><p>VLESS+TCP+TLS_Vision【<a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">推荐</a>】</p></li>
<li><p><strong>Hysteria+端口跳跃</strong>【<a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1681804748677">推荐</a>】</p>
</li>
<li><p>VLESS+gRPC+TLS【支持CDN、IPv6、延迟低】</p></li>
<li><p>VLESS+WS+TLS【支持CDN、IPv6】</p></li>
<li><p>Trojan+TCP+TLS</p></li>
<li><p>Trojan+gRPC+TLS【支持CDN、IPv6、延迟低】</p></li>
<li><p>VMess+WS+TLS【支持CDN、IPv6】</p></li>
</ul>
<h1 id="heading-4">安装脚本</h1>
<ul>
<li><p>支持快捷方式启动,安装完毕后,shell输入【<strong>cross</strong>】即可打开脚本,脚本执行路径[<strong>/etc/v2cross/install.sh</strong>]
</p></li>
<li><p>GitHub</p></li>
</ul>
<div class="code-toolbar">
<pre class="language-bash" tabindex="0"><code class="hljs language-bash"><span
class="token function">wget</span> <span class="token parameter variable">-P</span> /root <span
class="token parameter variable">-N</span> --no-check-certificate <span class="token string">"https://raw.githubusercontent.com/mack-a/v2cross/master/install.sh"</span> <span
class="token operator">&&</span> <span class="token function">chmod</span> <span
class="token number">700</span> /root/install.sh <span class="token operator">&&</span> /root/install.sh</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span></button>
</div>
</div>
</div>
<ul>
<li><p>官方网站【备用】</p></li>
</ul>
<div class="code-toolbar">
<pre class="language-bash" tabindex="0"><code class="hljs language-bash"><span
class="token function">wget</span> <span class="token parameter variable">-P</span> /root <span
class="token parameter variable">-N</span> --no-check-certificate <span class="token string">"https://www.v2cross.com/v2cross/install.sh"</span> <span
class="token operator">&&</span> <span class="token function">chmod</span> <span
class="token number">700</span> /root/install.sh <span class="token operator">&&</span> /root/install.sh</code></pre>
<div class="toolbar">
<div class="toolbar-item"><span>Bash</span></div>
<div class="toolbar-item">
<button class="copy-to-clipboard-button" type="button" data-copy-state="copy"><span>Copy</span></button>
</div>
</div>
</div>
<p></p>
<h1 id="heading-5">使用注意事项</h1>
<ul>
<li><p><strong>修改Cloudflare->SSL/TLS->Overview->Full</strong></p></li>
<li><p><strong>Cloudflare ---> A记录解析的云朵必须为灰色【如非灰色,会影响到定时任务自动续签证书】</strong></p></li>
<li><p><strong>如用CDN又同时使用直连,关闭云朵+自选IP,自选IP参考上方的</strong><a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/cloudflarezi-xuan-ip"><strong>Cloudflare
优化方案</strong></a></p></li>
<li><p><strong>使用纯净系统安装,如使用其他脚本安装过并且自己无法修改错误,请重新安装系统后再次尝试安装</strong></p></li>
<li><p>wget: command not found [<strong>这里需要自己手动安装下wget</strong>] ,如未使用过Linux,<a target="_blank"
rel="noopener noreferrer nofollow"
href="https://github.com/mack-a/v2cross/tree/master/documents/install_tools.md">点击查看</a>安装教程
</p></li>
<li><p>不支持非root账户</p></li>
<li><p><strong>如发现Nginx相关问题,请卸载掉自编译的nginx或者重新安装系统</strong></p></li>
<li><p><strong>为了节约时间,反馈请带上详细截图或者按照模版规范,无截图或者不按照规范的issue会被直接关闭</strong></p></li>
<li><p><strong>不推荐GCP用户使用</strong></p></li>
<li><p><strong>不推荐使用Centos以及低版本的系统,如果Centos安装失败,请切换至Debian10重新尝试,脚本不再支持Centos6、Ubuntu 16.x</strong></p></li>
<li><p><a target="_blank" rel="noopener noreferrer nofollow"
href="https://www.v2cross.com/archives/1679107451697"><strong>如有使用不明白的地方请先查看脚本使用指南</strong></a>
</p></li>
<li><p><strong>Oracle Cloud有一个额外的防火墙,需要手动设置</strong></p></li>
<li><p><strong>Oracle Cloud仅支持Ubuntu</strong></p></li>
<li><p><strong>如果使用gRPC通过cloudflare转发,需要在cloudflare设置允许gRPC,路径:cloudflare Network->gRPC</strong></p></li>
<li><p><strong>gRPC目前处于测试阶段,可能对你使用的客户端不兼容,如不能使用请忽略</strong></p></li>
</ul>
<h1 id="heading-6"></h1></article>
About The Author