静看光阴荏苒
不管不顾不问不说也不念

v2rayA:支持全局透明代理的V2Ray Linux客户端

在Linux下想弄个真全局代理真的特别不方便,要配置一大堆东西还要写iptables规则。

这个v2rayA简直就是神器,安装配置都特别简单,让你可以轻松在Linux下实现真全局代理。

v2rayA还有一个WEB面板,如果是部署在NAS或者软路由上也特别方便,总而言之就是极大的降低了透明代理部署的难度!!!

安装直接用docker就行了:

docker run -d \
	--restart=always \
	--privileged \
	--network=host \
	--name v2raya \
	-v /etc/resolv.conf:/etc/resolv.conf \
	-v /etc/v2raya:/etc/v2raya \
	mzz2017/v2raya

其他安装方法可以看官方的wiki:

https://github.com/v2rayA/v2rayA/wiki/Usage

打开WEB界面:

http://localhost:2017

添加节点:

在设置里面启用就行了:

如果是部署在NAS或者软路由上面,开启局域网共享,其他电脑的网关设置为这台部署v2rayA的机器ip就能实现透明代理了。

堪称史上最简单的透明代理配置!233

赞(12)
未经允许不得转载:荒岛 » v2rayA:支持全局透明代理的V2Ray Linux客户端
分享到: 更多 (0)

评论 20

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    拉拉出品,必属精品!永远的拉拉女神

    男神3年前 (2021-04-18) Google Chrome 88.0.4324.182 Google Chrome 88.0.4324.182 Windows 10 x64 Edition Windows 10 x64 Edition回复
  2. #2

    用openwrt太奔溃了,出现各种稀奇古怪问题,一直在找在debian中代替的,试过qv2ray,clash,都不太理想,这个试了下还不错

    hen ni3年前 (2021-04-20) Google Chrome 90.0.4430.72 Google Chrome 90.0.4430.72 Windows 10 x64 Edition Windows 10 x64 Edition回复
  3. #3

    我感觉大鸟博客一直在抄你的东西,lala分享什么程序他就出什么程序。

    hofaeair3年前 (2021-04-20) Microsoft Edge 90.0.818.41 Microsoft Edge 90.0.818.41 Windows 10 x64 Edition Windows 10 x64 Edition回复
  4. #4

    我用这做网关好像不行

    hen ni3年前 (2021-04-20) Google Chrome 90.0.4430.72 Google Chrome 90.0.4430.72 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 我这没啥问题,这个其实也是用iptables的,只不过它自动写好了规则,如果你机器上没有iptables的话就用不了透明代理。

      LALA3年前 (2021-04-21) Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 我用的debian10该怎么设置

        hen ni3年前 (2021-04-25) Google Chrome 90.0.4430.85 Google Chrome 90.0.4430.85 Windows 10 x64 Edition Windows 10 x64 Edition回复
        • 这评论里面说不清楚,你要是遇到什么问题了,建议保留日志信息然后到作者的项目页面提个issue。。。

          LALA3年前 (2021-04-30) Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition回复
  5. #5

    大佬,https://github.com/Snipa22/nodejs-pool 这个有没有兴趣研究一下

    蛤蛤3年前 (2021-04-24) Google Chrome 88.0.4324.190 Google Chrome 88.0.4324.190 Windows 7 x64 Edition Windows 7 x64 Edition回复
    • 可以,有空研究一下。。。

      LALA3年前 (2021-04-30) Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition回复
  6. #6

    大神,可以在OPENWRT下安装吗,试了下他官方的DOCKER好像不兼容OPENWRT

    可烦我哦哦3年前 (2021-05-19) Google Chrome 90.0.4430.212 Google Chrome 90.0.4430.212 Mac OS X  10.15.7 Mac OS X 10.15.7回复
    • 目前应该还不支持,openwrt本身就有很多iptables规则,可能会有冲突。

      LALA3年前 (2021-05-20) Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition回复
  7. #7

    不错呢,我也一直在用这个,不过我是直接用在电脑上的,本身我电脑就是linux,之前用qv2ray,发现全局代理方面有问题,后来换成v2raya了,各种规则的编辑很方便啊。 :mrgreen:

    jayden3年前 (2021-05-21) Firefox 88.0 Firefox 88.0 GNU/Linux x64 GNU/Linux x64回复
    • 我也是直接用在电脑上,偶尔切到linux下就用v2raya,这个确实方便,用这个的话git,包管理器等等都不需要配置代理了。

      LALA3年前 (2021-05-24) Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition回复
  8. #8

    大哥你好,我在群晖nas 的docker 搭建好了,但是不知道怎么使用这个玩意,比如我的手机怎么连接上这个网络呢?

    泡泡2年前 (2021-11-19) Safari 15.1 Safari 15.1 iPhone iOS 15.1.1 iPhone iOS 15.1.1回复
    • v2rayA设置里面打开局域网共享,然后手机连v2rayA提供的socks5/http。或者把手机的网关改为群晖nas的ip。

      LALA2年前 (2021-11-24) Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition回复
  9. #9

    一定要另一台机子设置网关吗?单机里怎么设置代理呀?

    Kevin2年前 (2022-01-21) Google Chrome 97.0.4692.98 Google Chrome 97.0.4692.98 Android 11 Android 11回复
    • 不需要啊,本机直接在v2raya里面连接你添加的节点就是全局代理了,v2raya会自动配置iptables规则,不需要额外做设置。

      LALA2年前 (2022-01-26) Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition回复
  10. #10

    大佬你好,我在ikuai的docker中运行这个的时候,启动代理就会提示:failed to start v2ray-core: not support “redirect” mode of transparent proxy: ExecCommands: iptables-legacy -w 2 -t nat -N TP_OUT iptables v1.8.9 (legacy): can’t initialize iptables table `nat’: Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. : exit status 3.请问此时应该如何提升权限呢

    Wayne7个月前 (09-14) Google Chrome 116.0.0.0 Google Chrome 116.0.0.0 Windows 10 x64 Edition Windows 10 x64 Edition回复

分享创造快乐

广告合作资源投稿