電訊茶室's Archiver

角色 發表於 2019-2-6 15:07

【Raspberry Pi + V2Ray】—— 翻墙懒人包!在大陆可以看到香港新闻、用到WhatsApp、Facebook、YouTube

[i=s] 本帖最後由 角色 於 2019-3-10 16:53 編輯 [/i]

最新Jump starter package可以让members下载, [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&ptid=7326&pid=46122]Link[/url]

------------------------------------------------------
因为有不少香港人准备或者已经在大陆工作的members,估计他们一定需要看香港新闻、看Whatsapp、Facebook和YouTube等等。坊间有不少的方法,例如

1)香港购买漫游卡、
2)或者购买VPN服务、
3)用免费的VPN软件、
4)mod机安装V2Ray,
5)家里的NAS有Virtualisation Station,
6)家里安装电脑run V2Ray,
7)或者购买海外VPS安装V2Ray这样的服务器等等不同方式,
8)就是家里安装一个Raspberry Pi + V2Ray server。

前面三种方式不太适合长期在大陆工作的members,经常突然间VPN就不能工作,而第四种mod机,估计也有不少人做过这样方式,例如安装OpenWRT+其他package,或者其他third-party firmwares,mod机分分钟把router mod死;第5、6种都大有人在,但是成本比较高;第七种就是购买海外的VPS,这个有它的好处,就是不需要硬件的维护,但是要收费,每年大约是300-500元之前,但是也可以用暂时免费的谷歌云。

现在本帖介绍第8种的低成本的Raspberry Pi (现在已经是3b+版本)了,整个费用大约是400港元附近。Raspberry Pi可以安装非常多的软件,例如现在比较常用的V2Ray。

[attach]4287[/attach]

上面描述,如果家里安装好V2Ray server后,在大陆就可以用BifrostV App(Android)或iPhone安装Shadowrockets就可以连接香港的V2Ray server。一个V2Ray account可以多个devices同时使用,非常方便。

Raspberry Pi 3b+ 购买信息 [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7321]Link[/url],如果Raspberry Pi 3b+在香港RS买大约300元,而MicroSD card大约30元,再加上外壳(在大陆买便宜)整个加起来才400元附近,那么在大陆工作的member就有自己的V2Ray server可以独享,十分经济。

关于V2Ray 基本原理 可以参考下面帖子:
[url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7377&extra=page%3D1]《Project V:入學編》[/url]
[url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7275&extra=page%3D1]《V2Ray User‘s Guide 使用手册》[/url]


有很多关于Raspberry Pi的信息,可以看Raspberry的portal
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7297&extra=page%3D1[/url]

角色 發表於 2019-2-6 15:08

[i=s] 本帖最後由 角色 於 2019-3-4 21:50 編輯 [/i]

希望有兴趣人士去download,再修改部分参数。

1、购买Raspberry Pi3b+ 和有关setup设备 [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7321]Link[/url]

2、Download rpi_v2ray_x.xx.zip [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&ptid=7326&pid=46122]Link[/url]

3、用Etcher 把下载直接rpi_v2ray_x.xx.zip写入MicroSD card(不需要解压) [url=https://www.balena.io/etcher/]Link[/url]

4、用nano修改static ip address for the LAN port, default,Raspberry Pi LAN port IP address=192.168.55.22,gateway=192.168.55.1,nameservers=192.168.55.1,8.8.8.8[code]
sudo nano /etc/dhcpcd.conf
[/code],[code]
# Example static IP configuration:
interface eth0
static ip_address=192.168.55.22/24
static routers=192.168.55.1
static domain_name_servers=192.168.55.1 8.8.8.8
[/code].

If your Raspberry Pi LAN address= 192.168.1.100, gateway=192.168.1.1, nameservers=192.168.1.1, 8.8.8.8, then as follows:[code]
# Example static IP configuration:
interface eth0
static ip_address=192.168.1.100/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8
[/code].

Using the following command to reload the above parameters without reboot[code]
systemctl restart dhcpcd
[/code].

Check the interface eth0 if it has the new ip address of 192.168.1.100,gateway=192.168.1.1[code]
ip add
[/code].

5. 输入下面指令,看看cat /etc/v2ray/config.json里的port number(line 04) 和 UUID(line09)[code]
root@raspberrypi:~# cat /etc/v2ray/config.json
{
  "inbounds": [{
    "port": 22905,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "5668a2b4-ddad-4f36-8792-f8645c35395e",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  },{
    "protocol": "blackhole",
    "settings": {},
    "tag": "blocked"
  }],
  "routing": {
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}
root@raspberrypi:~#
[/code].

6、改port number, 10000-60000之间 (eg,随机选一个不让别人猜到的,例如39812)

7、改UUID, 可以点击 [url=https://www.uuidgenerator.net/]Link[/url],去generate一个新的。

8、修改 /etc/v2ray/config.json,用nano command,把上面新的port number和UUID填上去[code]
sudo nano /etc/v2ray/config.json
[/code]。

9、改Router的port forward TCP port 39812 to你的Raspberry LAN port address,在这里例子是192.168.1.100

10、reboot Raspberry pi

11、用BifrostV安装 (主机:你的Router WAN hostname or IP,端口:39812,用户ID=UUID,AlterID=64),其他default。

12、check延迟(如果有xxxxms)说起你的服务器可以用。(不连接Proxy,在BifrostV首页,点击右上角的三点,然后弹出延迟测试)

角色 發表於 2019-2-6 15:08

[i=s] 本帖最後由 角色 於 2019-3-8 09:57 編輯 [/i]

Collection of V2Ray Jump Starters

rpi_v2ray_v4.15.zip [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&ptid=7326&pid=46228]Link[/url]
rpi_v2ray_v4.16.zip [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&ptid=7326&pid=46244]Link[/url]
rpi_v2ray_v4.18.zip [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&ptid=7326&pid=46395]Link[/url]

角色 發表於 2019-2-6 15:08

[i=s] 本帖最後由 角色 於 2019-3-8 10:02 編輯 [/i]

Procedures for making jump starter for V2Ray server (for internal use only)

1. Mount QNAP drive
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7341&extra=page%3D1[/url]

2. Copy SD card, shrink, and zip file for distribution
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7310&extra=page%3D1[/url]

3. Install v2ray via proxy curl command
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7358&extra=page%3D1[/url]

角色 發表於 2019-2-6 15:08

备用帖子5

角色 發表於 2019-2-6 15:09

备用帖子6

角色 發表於 2019-2-6 15:09

备用帖子7

角色 發表於 2019-2-6 15:10

备用帖子8

角色 發表於 2019-2-6 15:10

备用帖子9

角色 發表於 2019-2-6 15:12

备用帖子10

角色 發表於 2019-2-6 15:12

备用帖子11

角色 發表於 2019-2-6 15:13

备用帖子12

角色 發表於 2019-2-6 15:13

备用帖子13

角色 發表於 2019-2-6 15:13

备用帖子14

角色 發表於 2019-2-6 15:14

备用帖子15

角色 發表於 2019-2-13 22:21

[i=s] 本帖最後由 角色 於 2019-2-15 19:37 編輯 [/i]

Jump Starter for V2ray Server using Raspberry Pi 3b+

Dropbox download link:
[url]https://www.dropbox.com/s/ysewjm835vq9znx/rpi_v2ray_v4.15.zip?dl=0[/url]

Features:
V2Ray version 4.15
sshd enabled

Errata:
1、在/etc/dhdcpcd.conf里的”# interface eth0”,应该为“interface eth0”,但是不影响功能,修改时可以把“#”号去掉。

角色 發表於 2019-2-15 19:37

[i=s] 本帖最後由 角色 於 2019-2-16 15:00 編輯 [/i]

Jump Starter for V2ray Server using Raspberry Pi 3b+

Features:
- V2Ray  version 4.16
- applied the most update and upgrade packages

Dropbox download link:
[url]https://www.dropbox.com/s/0aa5hf84ywlsjmd/rpi_v2ray_v4.16.zip?dl=0[/url]

角色 發表於 2019-3-6 16:09

因为香港人要吃“快餐”,所以我做了这个懒人包,有兴趣的members,可以按照我这幅帖子的内容购买Raspberry Pi 3b+,然后下载“懒人包”,再改一下参数就搞定!!!那么你就可以大陆看香港新闻,看看Facebook,WhatsApp,YouTube等等。

如果你在安装上遇到什么问题,可以跟帖讨论。如果你的账号还在审批中,你可以给我PM,我会跟坛主说一下。

角色 發表於 2019-3-8 09:55

Jump Starter for V2ray Server using Raspberry Pi 3b+

File name: rpi_v2ray_v4.18.zip

Dropbox download link:
[url]https://www.dropbox.com/s/p0a2u4wxc2hklyc/rpi_v2ray_v4.18.zip?dl=0[/url]

Features:
- V2Ray  version 4.18
- applied the most update and upgrade packages
- change the Raspbian and Debian sources from China to Singapore

slemon 發表於 2019-3-21 16:06

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46395&ptid=7326]19#[/url] [i]角色[/i] [/b]
可否做到WS +TLS?  我裝梅林V2ray 基本。開始有斷線和被Qos現象。  Thanks.

角色 發表於 2019-3-22 16:31

[i=s] 本帖最後由 角色 於 2019-3-22 16:33 編輯 [/i]

因为我没有架设网站的经验,所以还在学习中,不过我会朝着这个目标走!就如Kingwilliam那样,他已经写了不少的帖子关于这方面,你可以参考一下。

还有这个是懒人包,弄得比较简单一点,不然新的members不太会用。

kingwilliam 發表於 2019-3-22 17:13

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46446&ptid=7326]20#[/url] [i]slemon[/i] [/b]

C hing 你梅林是server定client? 想如何設定 可一齊研究。

slemon 發表於 2019-3-22 18:54

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46450&ptid=7326]22#[/url] [i]kingwilliam[/i] [/b]
我用梅林做Server.  跟著企業號首3頁設定的。很簡單。之前都穩定的,現在有時會被封。要轉IP.

kingwilliam 發表於 2019-3-22 19:30

[i=s] 本帖最後由 kingwilliam 於 2019-3-22 21:19 編輯 [/i]

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46455&ptid=7326]23#[/url] [i]slemon[/i] [/b]

c hing 以下代碼是server side ws+tls config 給參考, cert.crt and cert.key 就是證書和密匙.

domain :
最好有一個 domain, 退一步 dyndns, no-ip 都可以.

certificate :
- 證書可以用 Let's Encrypt, 可到 [url=https://www.sslforfree.com/]SSL For Free[/url] 申請, 如真的不能提供 http / ftp. 可退一步用self sign cert.
- cert.crt and cert.key 可放到/etc/v2ray/ folder, 即config.json同一個folder

self sign cert :
可到以下 [url=https://helpcenter.gsx.com/hc/en-us/articles/115015960428-How-to-Generate-a-Self-Signed-Certificate-and-Private-Key-using-OpenSSL]網址[/url] 參考

Remarks :
如用merlin, 建議準備 u盘 (8g已可以), 用作 swap
參考 [url=https://www.enterpr1se.info/2017/10/v2ray-gfw-asuswrt-merlin/7/]網址[/url]

server side ws+tls config[code]//ws-tls main port 443
{
        "protocol": "vmess",
        "port": 443,
        "settings": {
                "clients": [
                        {
                                "id": "id",
                                "alterId": 64
                        }
                ]
        },
        "streamSettings": {
                "network": "ws",
                "wsSettings": {
                        "path": "/vpath2/"
                },
                "security": "tls",
                "tlsSettings": {
                        "certificates": [
                                {
                                        "certificateFile": "/etc/v2ray/cert.crt",
                                        "keyFile": "/etc/v2ray/cert.key"
                                }
                        ]
                }
        }
}[/code]

slemon 發表於 2019-3-23 11:34

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46456&ptid=7326]24#[/url] [i]kingwilliam[/i] [/b]
師兄,用咗Let's Encrypt Cert., 改咗config.json.  整個V2ray load唔起。Reboot, 改回原本設定都唔得。結果整個V2ray 要重裝。未知原因 XD.

kingwilliam 發表於 2019-3-23 11:37

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46459&ptid=7326]25#[/url] [i]slemon[/i] [/b]


    有冇有試過 v2ray -test, 有沒有error. 或可否post config.json 上來一齊研究(記得先清除 id)

slemon 發表於 2019-3-23 11:59

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46460&ptid=7326]26#[/url] [i]kingwilliam[/i] [/b]
V2ray load完,正常Error log 會記寫V2ray started.  但改完, reboot 和 load V2ray,Error log 和 access log files 都消失咗.  出咗街,遲D一步步試。Thanks.

slemon 發表於 2019-3-23 23:50

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46460&ptid=7326]26#[/url] [i]kingwilliam[/i] [/b]
師兄,我用這個config.json.  請幫忙睇睇,Let's Encrypt是梅林DDNS自設更新的。 謝謝!
"log" : {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbound": {
    "port": 443,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "user1 id",
          "level": 1,
          "alterId": 64
        },
        {
          "id": "user2 id",
          "alterId": 64
        },
        {
          "id": "user3 id",
          "alterId": 64
        },
        {
          "id": "user4 id",
          "alterId": 64
        }
      ]
    },
    "streamSettings": {
       "network": "ws"
       "wsSettings": {
          "path": "/jffs"
                },
       "security": "tls",
       "tlsSettings": {
          "certificates": [
                {
                 "certificateFile": "/jffs/.le/xxxxx.asuscomm.com/cert.pem",
                 "keyFile": "/jffs/.le/xxxxx.asuscomm.com/domain.key"
                }
              ]
            }
          }
  },
  "outbound": {
    "protocol": "freedom",
    "settings": {}
  },
  "outboundDetour": [
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "routing": {
    "strategy": "rules",
    "settings": {
      "rules": [
        {
          "type": "field",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "outboundTag": "blocked"
        }
      ]
    }
  }
}

kingwilliam 發表於 2019-3-23 23:54

[i=s] 本帖最後由 kingwilliam 於 2019-3-24 06:36 編輯 [/i]

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=46469&ptid=7326]28#[/url] [i]slemon[/i] [/b][code]"streamSettings": {
       "network": "ws"
       "wsSettings": {[/code]"ws" 後小了 "豆號"  加後試試正常否[code]"streamSettings": {
       "network": "ws",
       "wsSettings": {[/code]

角色 發表於 2019-3-24 00:02

不知道效果怎眼?

頁: [1] 2 3 4

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