Scaleway星尘#无限流量月付0.38欧IPv6-Only小鸡 + 75G对象存储

date
May 3, 2022
slug
vps-scaleway-ipv6-less-than-5o
status
Published
summary
新vps
tags
vps
type
Post
URL
 

结论

  • 本地有可能是ssh不上的,这就要找一台有native ipv6的vps作为跳转机,把key拷过去,从挑战机再ssh到目标机
  • 安装的aapanel可能无法用8080,改成8880就好了

Acquisition

notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image

下载CLI

    #curl -o /usr/local/bin/scw -L "https://github.com/scaleway/scaleway-cli/releases/download/v2.4.0/scw-2.4.0-linux-x86_64"
    curl -o ~/bin/scw -L "https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_darwin_amd64"
    chmod +x ~/bin/scw
    
    # 开荷兰
    scw instance server create type=STARDUST1-S zone=nl-ams-1 image=ubuntu_focal root-volume=l:10G name=ams038 ip=none ipv6=true
    
    # 开法国
    scw instance server create type=STARDUST1-S zone=fr-par-1 image=ubuntu_focal root-volume=l:10G name=fr038 ip=none ipv6=true
    
    # fix firewall
    
    # ssh - 一定要到有native ipv6的机器上
    ssh root@2001:bc8:xxx:277::1
    notion image
    notion image
     

    CFWarp for IPv6 Only

    
    wget -N https://raw.githubusercontents.com/kkkyg/CFwarp/main/CFwarp.sh && bash CFwarp.sh

    CloudFlare - 设立AAAA,并打开Proxy(小云朵)

     

    各种测试

    机器配置 + 测速

    ----------------------------------------------------------------------
    # 国内机器最多
    wget -qO- git.io/superbench.sh | bash
    ----------------------------------------------------------------------
    ## bench.sh是秋水逸冰写的一个VPS测试脚本,全面适用于各种 Linux 发行版的网络(下行)和 IO 测试 - 4个都一样
    wget -qO- bench.sh | bash 
    curl -Lso- bench.sh | bash 
    wget -qO- 86.re/bench.sh | bash 
    curl -so- 86.re/bench.sh | bash
    ----------------------------------------------------------------------
    curl -fsSL https://ilemonra.in/LemonBenchIntl | bash -s fast
    wget -qO- https://ilemonra.in/LemonBenchIntl | bash -s fast
    curl -fsSL https://ilemonra.in/LemonBenchIntl | bash -s full
    wget -qO- https://ilemonra.in/LemonBenchIntl | bash -s full
    ----------------------------------------------------------------------

    yabs - cpu测试

    curl -sL yabs.sh | bash
    notion image

    流媒体

    wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.01/nf_2.01_linux_amd64 && chmod +x nf && clear && ./nf
    # ==
    wget -O nf https://file.10244201.xyz/pub/netflix_check_1 && chmod +x nf && clear && ./nf
    
    ### 或者最全面的测试
    docker run --rm --net=host lmc999/regioncheck
    notion image
    notion image

    回程

    wget -qO- git.io/besttrace | bash
    curl http://tutu.ovh/bash/returnroute/test.sh | bash

    可选

    Youtube

     

    Speedtest测速

    ## html5 speedtest - 带测速历史
    curl -sSL https://get.docker.com/ | sh
    docker run -d -p 9001:80 --name speedtestx -e SAME_IP_MULTI_LOGS=true --restart=always badapple9/speedtest-x
    ## html5 speedtest - 不带测速历史
    apt install -y docker.io && docker run -d -p 9080:80 --name speedtest --restart=always ilemonrain/html5-speedtest:alpine

    下午4点

    notion image
    notion image

    夜里3点

    夜里3点
    夜里3点

    75G对象存储

    • (2022_05_03) 3种类型 - Stanford 不免费,OneZone_IA有75G免费,Glacier也有75G免费,外网出口流量75G免费;内网流量全免费
    # 在~/.config/rclone/rclone.conf中添加这些项即可
    
    [scaleway_oss1_standardnotfree]
    type = s3
    provider = Scaleway
    access_key_id = SCWP6DHP8-Your-Access-key
    secret_access_key = 3192d379-5139-4abc-Your-Secret-Key
    region = fr-par
    endpoint = s3.fr-par.scw.cloud
    acl = private
    storage_class = STANDARD
    
    
    # STANDARD / ONEZONE_IA / GLACIER
    
    
    RCLONE_NAME='scaleway_free75_oss1'
    mkdir /drive/$RCLONE_NAME && cd /drive/$RCLONE_NAME
    
    cat > /etc/systemd/system/rclone_$RCLONE_NAME.service <<EOF
    [Unit]
    Description=rclone_$RCLONE_NAME
    
    [Service]
    User=root
    # mount root folder of remote drive
    # 根据磁盘大小设定 cache size (--vfs-cache-max-size 1G --vfs-cache-max-age 1h) 也可以只设定 max-age
    # 如果用于bt下载和小硬盘的话, 建议比如Aria2当中concurrent download 变成12
    
    # 本地硬盘如果够大的话
    ExecStart=/usr/bin/rclone mount $RCLONE_NAME: /drive/$RCLONE_NAME --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --vfs-cache-mode writes --vfs-read-chunk-size 16M --vfs-cache-max-size 512M --vfs-cache-max-age 2h 
    # --daemon-timeout 30m
    # --daemon
    
    [Install]
    WantedBy=multi-user.target
    EOF
    
    systemctl daemon-reload
    systemctl enable --now rclone_$RCLONE_NAME.service
    notion image
    notion image
    notion image
    notion image
    notion image

    © Ying Bun 2021 - 2022