From c36198862241f06e15f321b7da654a3a90387485 Mon Sep 17 00:00:00 2001 From: Aaron Chen Date: Tue, 26 Jul 2022 09:25:43 +0800 Subject: [PATCH] =?UTF-8?q?docker=E5=AE=B9=E5=99=A8=E8=87=AA=E5=90=AF?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8Csip=E7=9A=84ip=E9=BB=91=E5=90=8D?= =?UTF-8?q?=E5=8D=95=EF=BC=8C=E4=BF=AE=E6=94=B9stun=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E6=90=AD=E5=BB=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- freeswitch/IP黑名单.md | 69 ++++++++++++++++++++++++++++++++++++++ freeswitch/搭建STUN服务.md | 18 ++++++++-- linux/docker操作.md | 31 +++++++++++++++++ 3 files changed, 115 insertions(+), 3 deletions(-) create mode 100644 freeswitch/IP黑名单.md create mode 100644 linux/docker操作.md diff --git a/freeswitch/IP黑名单.md b/freeswitch/IP黑名单.md new file mode 100644 index 0000000..1dde89d --- /dev/null +++ b/freeswitch/IP黑名单.md @@ -0,0 +1,69 @@ +# 针对SIP协议的IP黑名单(持续更新) + +--- + +- 103.145.13.152 +- 103.145.13.249 +- 13.64.199.47 +- 13.71.209.198 +- 134.119.178.63 +- 134.119.223.166 +- 141.94.119.172 +- 141.98.10.20 +- 141.98.11.91 +- 143.244.57.69 +- 143.244.57.86 +- 146.0.32.162 +- 151.106.27.151 +- 162.244.32.51 +- 162.244.33.16 +- 172.107.196.242 +- 178.239.21.117 +- 178.239.21.140 +- 178.239.21.66 +- 178.239.21.79 +- 185.159.82.22 +- 185.167.96.138 +- 185.209.162.207 +- 185.209.162.21 +- 185.246.211.81 +- 185.53.90.125 +- 192.99.232.191 +- 193.107.216.135 +- 193.107.216.141 +- 193.107.216.147 +- 193.107.216.232 +- 193.107.216.62 +- 193.46.255.163 +- 193.46.255.253 +- 20.106.123.29 +- 20.106.171.142 +- 20.206.66.152 +- 20.213.250.164 +- 20.216.2.135 +- 20.227.142.53 +- 212.83.145.185 +- 23.148.145.240 +- 23.148.145.54 +- 23.148.145.83 +- 23.148.145.94 +- 23.254.36.131 +- 37.19.217.75 +- 37.221.123.90 +- 45.134.144.10 +- 45.134.144.169 +- 45.134.144.47 +- 45.134.144.86 +- 45.159.188.57 +- 45.93.16.61 +- 45.95.147.9 +- 51.12.91.47 +- 51.132.241.252 +- 51.142.145.184 +- 51.142.145.87 +- 84.247.51.246 +- 85.114.130.103 +- 87.119.220.202 +- 87.119.220.250 +- 92.118.39.12 +- 92.118.39.59 diff --git a/freeswitch/搭建STUN服务.md b/freeswitch/搭建STUN服务.md index af95f42..8dbc9e3 100644 --- a/freeswitch/搭建STUN服务.md +++ b/freeswitch/搭建STUN服务.md @@ -18,18 +18,30 @@ http://www.stunprotocol.org/ ## 部署过程 +* 如果是centos系统: + ```bash # 安装依赖 yum install -y gcc gcc-c++ make boost-devel openssl-devel -# 下载安装包 cd /usr/local/src -curl -OL http://www.stunprotocol.org/stunserver-1.2.16.tgz +``` + +* 如果是debian系统: + +```bash +apt install -y libboost1.74-all-dev +cd /usr/src +``` + +```bash +# 下载安装包 +wget http://www.stunprotocol.org/stunserver-1.2.16.tgz # 解压 tar xvf stunserver-1.2.16.tgz # 转移目录 mv stunserver /usr/local/ -# 安装 cd /usr/local/stunserver +# 安装 make # 校验 ./stuntestcode diff --git a/linux/docker操作.md b/linux/docker操作.md new file mode 100644 index 0000000..5a6c261 --- /dev/null +++ b/linux/docker操作.md @@ -0,0 +1,31 @@ +# docker操作 + +--- + +## docker容器设置开机自启动 + +> 前提是docker服务先被设置成开机自启 + +- 新建容器时配置自启参数 + +```bash +docker run --restart=always <容器id> 或 <容器名称> +``` + +- 已经存在的容器配置自启 + +```bash +docker update --restart=always <容器id> 或 <容器名称> +``` + +- 取消容器自启 + +```bash +docker update --restart=no <容器id> 或 <容器名称> +``` + +- 批量设置所有容器自启 + +```bash +docker update --restart=always $(docker ps -aq) +```