docker容器自启方法,sip的ip黑名单,修改stun服务器搭建内容

This commit is contained in:
Aaron Chen 2022-07-26 09:25:43 +08:00
parent 7389b17cc5
commit c361988622
3 changed files with 115 additions and 3 deletions

69
freeswitch/IP黑名单.md Normal file
View File

@ -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

View File

@ -18,18 +18,30 @@ http://www.stunprotocol.org/
## 部署过程 ## 部署过程
* 如果是centos系统
```bash ```bash
# 安装依赖 # 安装依赖
yum install -y gcc gcc-c++ make boost-devel openssl-devel yum install -y gcc gcc-c++ make boost-devel openssl-devel
# 下载安装包
cd /usr/local/src 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 tar xvf stunserver-1.2.16.tgz
# 转移目录 # 转移目录
mv stunserver /usr/local/ mv stunserver /usr/local/
# 安装
cd /usr/local/stunserver cd /usr/local/stunserver
# 安装
make make
# 校验 # 校验
./stuntestcode ./stuntestcode

31
linux/docker操作.md Normal file
View File

@ -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)
```