1.PVE使用lxc模板创建debian 12

安装时一定把非特权容器前面的勾去掉,去掉,去掉。我们需要一个特权的容器。完成后不要启动

screenshot-1729169846486

2.映射tun网卡

screenshot-1729169721255

screenshot-1729169739249

1
/dev/net/tun

3.ssh连接安装ShellCrash

开启root登入

1
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && service ssh restart

安装ShellCrash

1
bash && export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && bash /tmp/install.sh && source /etc/profile &> /dev/null

控制后台

1
crash

配置文件备份

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
versionsh_l=1.9.1rc7
firewall_mod=nftables
update_url=https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master
userguide=1
redir_mod=Tun模式
dns_nameserver='https://223.5.5.5/dns-query, https://doh.pub/dns-query, tls://dns.rubyfish.cn:853'
dns_fallback='https://1.0.0.1/dns-query, https://8.8.4.4/dns-query, https://doh.opendns.com/dns-query'
Https='http://192.168.10.5:2200/config.yaml'
dns_mod=redir_host
hostdir=':9999/ui'
authentication='admin:password'
secret=password
crashcore=meta
cpucore=amd64
core_v=v1.18.7
ipv6_dns=未开启
multiport=80,143,194,443,465,587,853,993,995,5222,8080,8443
common_ports=已开启
Url=
public_mixport=已开启
mix_port=7890

Copyright © 2024 | 基于Stellar 主题
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。