電訊茶室's Archiver

角色 發表於 2018-6-27 18:19

V2Ray Server Installed on Raspberry Pi 3B

[i=s] 本帖最後由 角色 於 2018-6-28 17:19 編輯 [/i]

因为最近大陆block VPN block得非常厉害,所以我们需要别的方便去翻墙,而我们尽量不用VPN,因为现在VPN非常给GFW识别,所以我们要有别的方案,但是大家也可以mod机,但是很多members都不会mod机,所以我在家里建议大家可以考虑使用Raspberry Pi(现在的model是3B+,我用是3B)。

[attach]4142[/attach]

请看上图,我们在大陆,如果在大街小巷和在大陆暂居之所,通过WiFi或者data能上网的,我们手机只要安装V2Ray的client就可以连到香港的V2Ray Server。经常要使用Whatsapp这类的软件与香港亲友联系,如果家里有个V2Ray server,这个server可以帮到你。而且安装非常简单,最重要不需要什么mod机(因为在mod机过程中,分分钟router变砖!!!),你server安装完,根本不需要调整就可以用。(一个账号,可以多个device使用)。

现在整个设计是用用TCP 443 port,所以香港的router也要做TCP 443 port forwarding to Raspberry Pi 3B box。

角色 發表於 2018-6-27 18:19

[i=s] 本帖最後由 角色 於 2018-6-29 12:22 編輯 [/i]

在香港你可以Element 14, 或者RS,如果你在大陆,可以考虑用下面一家:我选套装B(case + heat sink),我看过网页如果是3B+,没有套餐B。3B与3B+主要分别是3B+是gigbit LAN (300Mbps),而3B就是100Mbps。

Wiki Raspberry Pi
[url]https://en.wikipedia.org/wiki/Raspberry_Pi[/url]

[url]https://item.taobao.com/item.htm?spm=a1z09.2.0.0.25e02e8dwywfwj&id=535894042489&_u=r2opncndf7a[/url]

有了Raspberry Pi 3B or 3B+
[attach]4143[/attach]

1. Install  Raspbian
[url]https://www.raspberrypi.org/downloads/raspbian/[/url]

2. apt-get update[code]
apt-get update
[/code].

3. apt-get upgrade[code]
apt-get upgrade
[/code].

4. Download and install V2Ray[code]
bash <(curl -L -s https://install.direct/go.sh)
[/code].

5. Start the V2Ray Service[code]
service v2ray start
[/code].

整个安装过程非常简单,每次安装他都提供一组default的account,每一次都不一样,所以大家把刚安装贴出来也没有什么问题。

6. Set fixed IP address of Raspberry Pi 3B
7. Router needs port forwarding to the fixed IP Raspberry Pi 3B

角色 發表於 2018-6-27 18:20

[i=s] 本帖最後由 角色 於 2018-6-28 10:04 編輯 [/i]

因为我用RouterOS,tcp 443 port to 192.168.88.10 tcp port 443,CLI commands如下:[code]
/ip firewall nat
add action=dst-nat chain=dstnat dst-port=443 in-interface=ether1-gateway \
    protocol=tcp to-addresses=192.168.88.10 to-ports=443
[/code].

in-interface=ether1-gateway, 有的Routerboards可能是in-interface=ether1

角色 發表於 2018-6-27 18:20

备用帖子4

角色 發表於 2018-6-27 18:20

[i=s] 本帖最後由 角色 於 2018-6-28 20:20 編輯 [/i]

Other Applications:

Airplay
[url]https://blog.e9china.net/share/jiyushupairaspberrypi3bdeairplaygongnengshixian.html[/url]

角色 發表於 2018-6-27 18:25

可能很多members想,有了这个V2Ray Server后,怎样翻墙呢?

后面的工作就简单很多了!

角色 發表於 2018-6-27 18:31

How to change dhcp mode to fixed IP mode?

[url]https://blog.csdn.net/u011973222/article/details/72843127[/url]

colapig 發表於 2018-6-28 11:38

多謝角色師兄的分享。我都分享一下我現時用緊的方法:
Router: ASUS 68U (裝左ASUSWrt) 在上面裝左softether VPN
Server:淘寶買左個迷你工業用PC,i7,支持32GB DDR4 notebook RAM,1XMSATA,1XSATA。
上面裝ESXi 6.5+Vcenter 6.5 (lincense 在淘寶搵)
VM:
windows 7 64bit (裝V2Ray /Softether VPN(後備))
黑群暉 (DSM-61)用來BT,行Docker等app
Windows 7 (簡體)行微信,QQ等大陸軟件

現在手機用v2ray相對穩定,但行whatsapp會遲鈍些,每次用都顯示要連接。
softether基本穩定,前幾日試過用IP連吾到,轉成vpnazure.net就得番,現在又可以用IP了。
為左減少學習時間,我盡量用windows 軟件。

角色 發表於 2018-6-28 13:23

这里有很多高手,我呢?都是一般般,但是可以带领一些新的members入门,想起我在10年前,突然在大陆看不到太阳报开始学习网络,特别在VPN这方面,那么时候在EPC那里学到不少的东西,很多CHing都写了很多帖子。在EPC那里,如果你多写东西,EPC的版主不鼓励,而且老删走和改写你的帖子,动不动就ban members,所以我离开EPC,做CD-ROM。

在这里,有很多非常优秀的members都在这里写帖子,其实目的只有一个就是分享自己的心得,希望写出来的帖子能帮助其他members起步。还有这里没有什么利益关系,不会动不动改动或者删改你的帖子。(如果是搞破坏的就例外)。

你可以新开一副帖子,说说你怎样学工业PC,要注意什么,还有怎样起ESXi等等问题,估计有些members会朝着你的方向走。

这里虽然人数少,但是文章比较精辟。EPC那里就口水比较多,技术帖子几乎没有了!很多members因为写技术帖子而被ban死。

colapig 發表於 2018-6-28 13:44

我多數的時間都系做CD-ROM,好少好系統咁寫嘢,系其他forum通常會回答一下member的問題。有時間我會試試寫下簡短方案,拋磚引玉。希望引起大家分享多啲。

角色 發表於 2018-6-29 09:18

现在有了上面的Raspberry Pi 3B + V2Ray方案,起码可以解决一大批问题,特别是在大陆用WhatsAPP的members。而你有了香港的V2Ray Server,你notebook,或者其他devices都可以安装适当的V2Ray clients。

Qnewbie 發表於 2018-7-7 02:42

V2ray server installed successfully! Thanks C-hing!

Autorun v2ray server on re/boot:[code]systemctl enable v2ray[/code]Question: Could android phone with v2rayNG client pass thru the GFW with default settings like this [url]https://www.xzymoe.com/v2ray/v2rayng-setting/[/url]?

角色 發表於 2018-7-7 07:43

The answer is yes.

knightrider 發表於 2018-7-15 12:42

Thanks for CHing spending the time to share the valuable information. What is the maximum speed achieved so far?

角色 發表於 2018-7-15 13:38

The maximum download speed is 20Mbps, which is limited by the local system. The upload speed is not very satisfactory, which is around 1Mbps, which is abnormal as compared to the previous tests carried out.

knightrider 發表於 2018-7-15 17:01

Thanks! Sounds like it's the time to dig out my Raspberry Pi to give it a try!

Botti 發表於 2018-7-21 20:43

这个好
安装简单
出问题也不影响其他部份
想请问一下 : 对於大流量数据使用, 例如看电视, 会不会有断线问题 ?

角色 發表於 2018-7-21 21:41

如果没有大陆的干扰是没有问题的。

角色 發表於 2018-8-18 21:58

差不错运行2个月都非常稳定,所以RouterOS + V2Ray这个组合十非常好的。

gameplayer 發表於 2018-9-24 12:37

[quote]在香港你可以Element 14, 或者RS,如果你在大陆,可以考虑用下面一家:我选套装B(case + heat sink),我 ...
[size=2][color=#999999]角色 發表於 2018-6-27 18:19[/color] [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=45077&ptid=7202][img]http://www.telecom-cafe.com/forum/images/common/back.gif[/img][/url][/size][/quote]


    CHING ,有無一些指令可以看到v2ray狀態?
我裝完v2ray ,跳過左 port and UUID  果 part ,點樣可以看返?

角色 發表於 2018-9-24 14:13

service v2ray status

文件在/etc/v2ray/config.json

knightrider 發表於 2018-10-8 11:29

Thanks again for Ching sharing the info. Especially good for people like me without too much technical knowledge. Easy to get it up and running. With 3HK 100M & China Telecom 100M, maximum speed achieved around 10M down & up load at SZ. Since only use Whatsapp & Youtube with v2rayNG, just wonder how to setup the other apps to bypass it so that they can use local network instead of coming all the way to HK server? Thanks!

角色 發表於 2018-10-8 13:04

There are some settings in v2rayNG which allow you to direct the traffic locally or the remote gateway. For details, please take a look at the Setting of the rightmost top (three vertical dots) icon.

passby 發表於 2018-10-13 18:27

我想問各位有無因為用V2ray而被大陸block ip?

passby 發表於 2018-10-13 18:27

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=45455&ptid=7202]22#[/url] [i]knightrider[/i] [/b]


    V2ray用3hk 100M的流量速度如何?

角色 發表於 2018-10-13 19:58

我的PCCW 100M fibre, the ofca broadband test results are:

[attach]4198[/attach]

角色 發表於 2018-10-13 19:59

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=45499&ptid=7202]24#[/url] [i]passby[/i] [/b]

我遇过你说的问题,我需要更改WAN IP。

passby 發表於 2018-10-16 16:17

我發覺手機用V2rayNg有D奇怪。就算我把raspberry shutdown咗。手機client都會顯示連線成功,但又上不到網的!

lookforyou 發表於 2018-10-16 16:26

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=45499&ptid=7202]24#[/url] [i]passby[/i] [/b]


    用哪种方式都有被墙的风险,连接用户数过多,流量过大过于集中,翻墙用户有敏感的发言,就都会被干掉。所以最好的方式是一个梯子尽量少的人使用,每个用户自己动手丰衣足食

角色 發表於 2018-10-16 16:32

因为我香港的V2Ray server的WAN IP可以随意改,而且每天都更换IP,所以才share出来用。而香港另外的server和搬瓦工就没有,因为我也发现,如果流量大,还有在中国多个IP接国外某个IP多的话,如果没有登记的白名单里,阿爷会怀疑是proxy server,那么就block IP。

頁: [1] 2

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.