博文

手动申请安装Let's Encrypt免费SSL/TLS证书相关命令小结

本次成功实践操作系统,DigitalOcean上的debian9.7系统 安装常用软件包 curl $apt-get update -y && apt-get install curl -y sudo $apt-get install sudo 安装socat $sudo apt-get install socat 安装curl $ curl  https://get.acme.sh | sh 安装成功后执行 $source ~/.bashrc 以确保脚本所设置的命令别名生效。 建立证书目录 $mkdir /etc/v2ray/ 生成ECC证书: $sudo ~/.acme.sh/acme.sh --issue -d china007.tk --standalone -k ec-256 将ECC证书和密钥安装到 /etc/v2ray 中 $sudo ~/.acme.sh/acme.sh --installcert -d china007.tk --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray.key --ecc 证书位置/etc/v2ray/v2ray.crt 密钥位置/etc/v2ray/v2ray.key 参考网址 https://toutyrater.github.io/advanced/tls.html https://github.com/Neilpang/acme.sh

搭建v2ray服务器双剑合一科学上网相关命令小结参考

安装 Curl :  apt-get update -y&&apt-get install curl -y 安装sudo apt-get install sudo 以前fork的 233脚本 安装三件套V2ray  bash <(curl -Ls  https://raw.githubusercontent.com/mikewubox/tvonekey/master/v2ray.sh ) debian9.7安装docker 首先,更新现有的包列表: sudo apt update 安装一些必备软件包,这些软件包允许通过HTTPS使用软件包: sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common 然后将官方Docker存储库的GPG密钥添加到您的系统: curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - 将Docker存储库添加到APT源: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" 接下来,使用新添加的repo中的Docker包更新包数据库: sudo apt update 确保您要从Docker repo而不是默认的Debian repo安装: apt-cache policy docker-ce 最后,安装Docker: sudo apt install docker-ce 现在应该安装Docker,守护进程启动,并启用进程启动进程。 检查它是否正在运行: sudo systemctl status docker Docker安装V2ray服务器 $ docker pull v2ray/official 上传配置文件config.json $ sudo docker run -d --name v2ray -v ...

caddy官方脚本手工安装HSTS强制安全策略的谷歌反向代理服务器参考命令

caddy英文官方文档https://caddyserver.com/docs caddy中文文档https://dengxiaolong.com/caddy/zh/ 安装环境VPS-digitalOcean OS--debian9.7  64位 安装 Curl :  apt-get update -y  apt-get install curl -y caddy官方安装脚本 $ curl https://getcaddy.com | bash -s personal  or #$ wget -qO- https://getcaddy.com | bash -s personal 文件位置 caddyfile   /etc/caddy caddy       /usr/local/bin TLS证书,自动 启动  caddy -conf ../etc/Caddyfile 查看证书位置 find / -name *gcpXX7.ml* 配置内容 gcpXX7.ml {     gzip     basicauth / mikeXXtv 1234     header / Strict-Transport-Security "max-age=31536000;"     tls mikeXXtv@gmail.com     proxy / https://www.google.com.hk     }

反DNS域名劫持污染6大方法小结,哪个最简单有效还免费

1,修改hosts文件,简单,但需要长期维护 2、修该本地电脑DNS服务器地址,目前已失效 3、安装软件,github上的      Pcap_DNSProxy AuroraDNS.GUI dnscrypt-proxy 等等,需要软件设置,占用电脑资源。 4、自己架设DNS服务器,成本高,技术难度高。 5、firefox浏览器,设置,      Firefox 地址栏中执行  about:config  打开浏览器配置选项       network.proxy.socks_remote_dns           true        network.proxy.socks_over_tls                 true     network.trr.mode   ,将该首选项的值设置为  2       network.trr.uri   , 设置为 https://cloudflare-dns.com/dns-query       network.trr.bootstrapAddress    设置为 1.1.1.1 6、Yandex       设置--》protect--》安全连接--》使用DNS服务器进行DNSCrypt加密 最简单,有效,还免费

当github挂了,手动安装V2ray服务器用到的相关命令

查看时间 $ date -R 时间设置为UTC+8 首先执行 rm /etc/localtime 然后执行 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime $ date -R 时间同步;误差在90秒之内 debian: apt-get install ntpdate centos: yum install ntpdate ntpdate [ntp时间服务器地址] ntpdate time.nuri.net ntpdate 0.asia.pool.ntp.org ntpdate 1.asia.pool.ntp.org ntpdate 2.asia.pool.ntp.org ntpdate 3.asia.pool.ntp.org ntpdate time.nist.gov 安装bash go.sh --local ./v2ray-linux-64.zip 删除bash go.sh --remove service v2ray start service v2ray stop service v2ray status service v2ray reload service v2ray restart service v2ray force-reload 安装wget yum -y install wget wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 yum install firewalld systemctl unmask firewalld systemctl enable firewalld systemctl start firewalld systemctl stop firewalld 查看防火墙状态 firewall-cmd --state 查看已经开放的端口: firewall-cmd --l...

谷歌云Ubuntu19.04安装Docker+Portainer用到的命令

一、安装Docker sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test" sudo apt update sudo apt install docker-ce 二、检测Docker是否安装成功 docker -v 三、启动Docker及系统重启后能自动启动 systemctl start docker.service systemctl enable docker.service 四、安装Potainer docker volume create portainer_data docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

最新版Fedora30+V2ray服务器搭建用到的相关命令

一、查看时间 $ date -R 时间设置为UTC+8 首先执行 rm /etc/localtime 然后执行 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 二、官方安装脚本https://www.v2ray.com/chapter_00/install.html bash <(curl -L -s https://install.direct/go.sh) 此脚本会自动安装以下文件: /usr/bin/v2ray/v2ray:V2Ray 程序; /usr/bin/v2ray/v2ctl:V2Ray 工具; /etc/v2ray/config.json:配置文件; /usr/bin/v2ray/geoip.dat:IP 数据文件 /usr/bin/v2ray/geosite.dat:域名数据文件 三、安装initscripts    yum install initscripts 四、启动V2ray 运行 service v2ray start 来启动 V2Ray 进程 其他相关命令 service v2ray stop service v2ray status service v2ray reload service v2ray restart service v2ray force-reload 五、查看BBR状态 lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 六、防火墙相关 查看防火墙状态 firewall-cmd --state 查看所有打开的端口: firewall-cmd --zone=public --list-ports 开启端口 firewall-cmd --zone=public --add-port=63589/udp --permanent firewall-cmd --zone=public --add-port=22/tcp --permanent 重启防火墙 firewall-cmd --reload 开机启动,启动,停止 systemctl enable firewalld systemctl start...