日本樱花的 Arukas 这个免费的 Docker。据说现在处于测试阶段,所以还免费。注册 Arukas 很简单,点击首页右上角的 “新规登录”,填写用户名、邮箱和密码之后,再点 “Sign up”,过一段时间(有人说一个小时,但是我等了19天)就能收到账号激活信息的邮件。
登录进去之后,点击 “Create”,填写相关信息,然后点击 “Create Application” ,再运行即可。我尝试了两种方式在 Arukas 上使用 V2Ray。
一种是直接使用官方镜像:
填写的信息如下:
App Name:V2Ray-Official(任意填写,合理即可)
Image:v2ray/official
Instances:1
Memory:512M
Endpoint:不必填写
Port:8001,TCP(参见这里)
ENV:不用勾选
CMD:不用填写,因为 Dockerfile 里面有 CMD 吧
运行成功之后,查看 “V2Ray-Official” 的详情,假设其中的 “Port” 一项为:
http://ohyeah-A-B-C-D.jp-tokyo-25.arukascloud.io:10086 (8001/tcp)
那么8001端口被映射到了10086端口,而 V2Ray 客户端配置文件中要填写的 IP就是 A.B.C.D。UUID 为 60ca58e9-003e-4c01-98de-c2223ae49153 ,alterId=64,仍然参见这里。
客户端配置文件是这样:
{
"log": {
"loglevel": "warning"
},
"inbound": {
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "A.B.C.D",
"port": 10086,
"users": [
{
"id": "60ca58e9-003e-4c01-98de-c2223ae49153",
"level": 1,
"alterId": 64,
"security": "auto"
}
]
}
]
}
},
"outboundDetour": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
],
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"routing": {
"strategy": "rules",
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"port": "1-52",
"outboundTag": "direct"
},
{
"type": "field",
"port": "54-79",
"outboundTag": "direct"
},
{
"type": "field",
"port": "81-442",
"outboundTag": "direct"
},
{
"type": "field",
"port": "444-65535",
"outboundTag": "direct"
},
{
"type": "chinasites",
"outboundTag": "direct"
},
{
"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",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "direct"
},
{
"type": "chinaip",
"outboundTag": "direct"
}
]
}
}
}
另一种是在 Debian 的 Docker 镜像中安装 V2Ray。
填写的信息如下:
App Name:Debian_Jessie(任意填写,合理即可)
Image:itscaro/debian-ssh (默认用户为 root,密码为 root)
Instances:1
Memory:512M
Endpoint:不必填写
Port:22(TCP),10086(TCP),10086(UDP),10010(TCP),
//22必须有,因为需要通过SSH来连接;添加 UDP 端口用于 mKCP;10010 用于SS。
ENV:不用勾选
CMD:不用填写,因为 Dockerfile 里面有 CMD 吧
运行成功之后,查看 “Debian_Jessie” 的详情,假设其中的 “Port” 一项为:
http://ohyeah-A-B-C-D.jp-tokyo-25.arukascloud.io:30001 (22/tcp)
http://ohyeah-A-B-C-D.jp-tokyo-25.arukascloud.io:30002 (10086/tcp)
http://ohyeah-A-B-C-D.jp-tokyo-25.arukascloud.io:30003 (10086/udp)
http://ohyeah-A-B-C-D.jp-tokyo-25.arukascloud.io:30004 (10010/tcp)
这样,就相当于有了一台免费的 VPS。可以通过 A.B.C.D:30001 来进行 SSH 连接,默认用户为 root,密码为 root。
需要注意的是:go.sh 默认按 Systemd 安装 V2Ray,但是貌似 systemd 的命令不能用,只能用 init.d。
SSH 上去之后,apt update && apt install curl 之后,使用 bash <(curl -L -s https://install.direct/go.sh) 安装 V2Ray,修改好配置文件(注意端口映射),将 Linux版本解压,将其中的 \v2ray-v2.17.1-linux-64\systemv\v2ray 上传到 /etc/init.d ,再chmod +x /etc/init.d/v2ray && update-rc.d v2ray defaults,就能 service v2ray start 了。
补充:如果用第二种方式,并且使用 mKCP(客户端应该填写 UDP 端口),会有问题(比如能打开谷歌,却不能打开 FB 和 Twitter,而且似乎不稳定),所以用第二种方式的话,还是不用 mKCP,也直接用 Vmess (这样就可以不要 10086(UDP)了)比较好吧。
关于刚才提到的这个问题,可能去掉端口 10086(TCP),保留 10086(UDP)就能正常使用 mKCP 了吧?事实证明这样还是不行。也许是我知识有限,没找到正确的解决方法吧。。。
--
Guests 于 2/18/2017 04:35:00 下午 发布在
翻牆網 ATGFW.ORG 上