本帖最後由 张无忌 於 2025-9-9 13:17 編輯

为什么说起MikroTik container?

主要原因MikroTik本身不能安装非MikroTik的东西,大家如果看到有多applicants在电脑运行,例如Clash,它本身行AMD64, ARM64,ARMv7等Linux下工作,MikroTik也是在Lunix下运行,MikroTik与Clash怎样结合?某些MikroTik routers里有USB interface,有插入USB modem。又可以插入USB drive,变成container!!!

当如MikroTik engineers接好Docker[1] container,在接入Dokerhub images[2]其中就是Clash,放入container,变成为MikroTik-container-Clash[3]。

这个设备放在大陆,还要带上机场。

References:
[1] https://hub.docker.com/
[2] https://hub.docker.com/r/tinyserve/clash
[3] 在RouterOS中通过container安装clash,把RB5009变成二合一的翻墙路由器,省掉openwrt旁路由(clash、ROS、container、docker、openwrt)

目录帖子GL.iNet and OpenWrt Contents

TOP

我係香港
點樣可以睇到內地野?

TOP

淘寶版 MT6000 係咪刷 OpenWRT official 原版就唔洗理改區問題?

TOP

本帖最後由 张无忌 於 2025-9-9 13:15 編輯

ImmortalWrt WireGuard client/PassWall连不到香港网站的历程

现场情况:
1. 中国电信ISP->GL-MT6000->ImmortalWrt->PassWall->Windows。
2. 用ImmortalWrt就是PassWall and OpenClash都在ImmortalWrt里有packages,不用去四处找。
3. 平时用ImmortalWrt都没问题,什么都正常。

第一种发生情况:在六月头
1. 在PassWall里连香港家里MikroTik router(WireGuard server)有问题,用机场节点没有;是什么原因?是否自己安装很多packages?
2. 于是重新安装ImmortalWrt,再安装PassWall and OpenClash。
3. 正常使用。

第二种发生情况:
1. 平时画面有时突然闪了一下,不知原因?平时都没有过。
2. 以为天气热,于是我把风扇风着它,都有经常发生。
3. 我再system reboot,系统又好了,但是过来一两天后,我突然屏幕一闪,等几秒后又亮起来。

第三种发生情况:6月26日
1. 在ImmortalWrt PassWall得香港家里WireGuard server又问题,用机场没有问题。
2. 机场节点用大陆转国外,所以没有问题。
3. 我用Windows WireGuard client测试,大陆的WireGuard servers都没有问题,连香港的WireGuard servers就不行。

找出原因:
1. Windows V2rayN连香港家里MikroTik WireGuard servers不成功,其他香港的WireGuard servers都不成功,连接大陆WireGuard servers就成功。
2. 机场节点是大陆先,然后转国外,所以连接国外没有问题。
3. 手机连ImmortalWrt的Wi-Fi,WireGuard client连香港不行。
4. 手机连Huawei普通Wi-Fi->中国电信ISP,WireGuard client连香港都成功!!!
5. 手机连移动5G,WireGuard client连香港都成功!!!
6. 把ImmortalWrt换OpenWrt后,在OpenWrt里的PassWall WireGuard连香港WireGuard client都能成功!!!在Windows里的WireGuard client都能连香港。

继续观测:
1. 现在六月27日开始,改用OpenWrt后,看看怎样。
2. 已经到了六月30号都没有发现问题,OpenWrt是稳定和使用正常。
3. 到了8月1日,OpenWrt是稳定和使用正常。

目录帖子GL.iNet and OpenWrt Contents

TOP

本帖最後由 张无忌 於 2025-5-29 08:04 編輯
我係香港
點樣可以睇到內地野?
黑馬過林 發表於 2025-5-29 01:59


你在香港想收看大陆节目(需要有大陆IP),你香港router最好要有WireGuard client。香港版的ASUS,GL.iNet GL-TM6000,如果大陆版的GL.iNet GL-TM6000要用OpenWrt或改机CN转US,在GL.iNet Admin Panel可以有VPN版面,里有WireGuard server。

大陆方面就要有公网IP,朋友的家里有WireGuard server,或者用大陆的互联网(如阿里云,腾讯云)也可以,但是VPS建立WireGuard server,或者MikroTik CHR。

TOP

淘寶版 MT6000 係咪刷 OpenWRT official 原版就唔洗理改區問題?
真.飛鳥 發表於 2025-5-29 02:24


如果大陆GL-MT6000可以直接刷official OpenWrt版。

TOP

淘寶版 MT6000 係咪刷 OpenWRT official 原版就唔洗理改區問題?
真.飛鳥 發表於 2025-5-29 10:24



    YES

TOP

你在香港想收看大陆节目(需要有大陆IP),你香港router最好要有WireGuard client。香港版的ASUS,GL.iNe ...
张无忌 發表於 2025-5-29 13:45


如果無內地朋友呢

TOP

本帖最後由 张无忌 於 2025-9-9 13:17 編輯

MikroTik container + V2Ray in HK connected to mainland China

In the past I used V2Ray [1,2] in Raspberry Pi Hong Kong. Now V2Ray is in Docker image form and stocked in a USB container in MikroTik hAP ac3 in Hong Kong and connected to mainland China.

HK MikroTik hAP ac3  + USB container (V2Ray) <---> mainland China (PassWall / V2RayN)

The basic network of the container
  1. /interface/bridge add name=dockers
  2. /ip/address add address=172.16.77.1 interface=dockers
  3. /interface/veth add name=veth3 address=172.16.77.4/24 gateway=172.16.77.1
  4. /interface/bridge/port add bridge=dockers interface=veth3
  5. /ip/firewall/nat add chain=scrnat action=masquerade src-address=172.16.77.0/24
複製代碼
Docker configuration
  1. /container config
  2. add registry-url=https//registry-1.docker.to tmpdir=disk1/pull
複製代碼
Loading Docker image
  1. /container add remote-image=teddysun/v2ray:latest interface=veth3 root-dir=disk1/v2ray

  2. /container print
  3. 2 ... status=extracting

  4. /container print
  5. 2 ... status=stopped
複製代碼
Entering V2Ray shell
  1. /container shell 2
  2. / #
  3. / # cat /etc/v2ray/config.json
  4. {
  5.   "inbounds": [{
  6.     "port": 9000,
  7.     "protocol": "vmess",
  8.     "settings": {
  9.       "clients": [
  10.         {
  11.           "id": "11c2a696-0366-4524-b8f0-9a9c21512b02",
  12.           "level": 1,
  13.           "alterId": 64
  14.         }
  15.       ]
  16.     }
  17.   }],
  18.   "outbounds": [{
  19.     "protocol": "freedom",
  20.     "settings": {}
  21.   }]
  22. }
複製代碼
V2Ray to operate with network, input packet from ether1 tcp-port=38566 converting 172.16.77.4 to-ports=9000
  1. /ip/firewall/nat add chain=dstnat action=dst-nat protocol=tcp to-address=172.16.77.4 to-ports=9000 in-interface=ether1 dst-port=38566
複製代碼
Container image start
  1. /container start 2
複製代碼
A Windows V2RayN was used in mainland China and followed "config.json" to adjust the settings.
  1. 别名(remarks)=veth3
  2. 地址(address)=abc.xyz.org
  3. 端口(port)=38566
  4. 用户 ID(id)=11c2a696-0366-4524-b8f0-9a9c21512b02
複製代碼
PassWall on OpenWrt
  1. Node Remarks=veth3
  2. Type=Sing-Box
  3. Protocol=Vmess
  4. Address (Support Domain Name)=abc.xyz.org
  5. Port=38566
  6. ID=11c2a696-0366-4524-b8f0-9a9c21512b02
複製代碼
香港的hAP ac3 container安装V2Ray了,而大陆可以用Windows V2RayN和PassWall on OpenWrt连接上。用现在config.json只是很简单的,需要改做比较复杂的,效果更加好 [3]。

References:
[1] teddysun/v2ray
[2] v2ray-examples
[3] How to choose a V2Ray plan?

目录帖子GL.iNet and OpenWrt Contents

TOP

回覆 108# 黑馬過林


   我在内地,你要干嘛???

TOP