Skip to content

tanpengsccd/onekey-install-shell

Repository files navigation

onekey-install-shell

Linux 常自用shell脚本.

由于大陆地方访问GitHub有间接性阻断,所以使用镜像加速地址 https://iilog.com , 如不放心代码可自行替换替换URL地址 "https://iilog.com" -> "https://raw.github.com/tanpengsccd/onekey-install-shell/master" .

更改服务器的出栈优先级为IPv4/IPv6

  1. 设置为IPv4优先
bash <(wget --no-check-certificate -qO- 'https://iilog.com/set-ip-priority.sh') -4
  1. 设置为IPv6优先
bash <(wget --no-check-certificate -qO- 'https://iilog.com/set-ip-priority.sh') -6
  1. 恢复默认
bash <(wget --no-check-certificate -qO- 'https://iilog.com/set-ip-priority.sh') -reset

ssh key 登陆配置

来自 https://github.com/P3TERX/SSH_Key_Installer, 具体使用说明见其网站.

bash <(curl -fsSL https://iilog.com/ssh_pub_key_installer.sh) -g tanpengsccd -d -p10022  # -g github的帐户名 -d 删除密码登录 -p 设置ssh开放端口

ddns 脚本

改自 https://github.com/yulewang/cloudflare-api-v4-ddns

curl -s https://iilog.com/cf-v4-ddns.sh | bash -s  f87a1025822be51556071ef68f1e8af10fb32 tanpengcd@gmail.com  baidu.com mynode.baidu.com # -s后跟四个参数  [CF_Global_API_KEY] [CF_Email] [二级域名] [具体域名]

设置 dns

bash <(curl -fsSL 'https://iilog.com/set-dns.sh') 1.1.1.1 8.8.8.8 2606:4700:4700::1111 2001:4860:4860::8888 -p # -p 为永久设置;否则为临时设置,重启后失效

设置CloudFlare的安全等级

如设置站点 5秒盾

bash <(wget --no-check-certificate -qO- 'https://iilog.com/cf-security-level.sh') admin@badiu.com yourCfApiKey yourZoneId under_attack

Releases

No releases published

Packages

No packages published