
10

盒子怪永不服输 – NFS+小盘机刷流量
source link: https://www.taterli.com/8465/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

盒子怪永不服输 – NFS+小盘机刷流量
目前知道的国内标记盒子的有大站馒头,这个还好,限速基本过了,另一个PTHome,其中PTHome更严格,HostHatch等大流量大盘的都挂了,而挂代理的方法又比较麻烦,依赖软件,比如QB可以设置SOCKS5代理,TR这个还真没研究过,有没有一个通用方法呢?
答案,有!
NFS不但能在内网用,也能在公网用,比如客户端(小盘但是没标盒子)的IP是2001:db8:1000::1,而服务器端(大盘但是标记盒子)是2001:db8:2000::1,如果有IPv6,可以考虑IPv6,当然隧道就没必要了,原生IPv6,如果两端都支持MTU=9000,传输效率是大大提升.
然后服务器端设置:
root@debian:~# apt install nfs-kernel-server
root@debian:~# cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/mnt 2001:db8:1000::1(rw,no_root_squash,insecure,no_subtree_check,async)
root@debian:~# systemctl restart nfs-kernel-server
然后客户端配置:
mount -t nfs4 [2001:db8:2000::1]:/mnt /mnt
另外如果客户端流量用完了怎么办?别怕,另外的机器继续启动,继续用/mnt下的配置文件,就继续续杯了,比如我在QB一般如此配置的.
docker run -d \
--name=qbittorrent \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
-e WEBUI_PORT=8080 \
--network=host \
-v /mnt/config:/config \
-v /mnt/downloads:/downloads \
--restart unless-stopped \
--restart unless-stopped \
ghcr.io/linuxserver/qbittorrent
这样就算上一个机器没流量了,下一个就继续续杯,当然NFS服务器端要放行机器才行.
实际配置效果:
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK