2023-3-23 myluzh
RouterOS
0x01 需求
目前出口有两条:1.pppoe-out-yd(移动pppoe出口)2.pppoe-out-dx(电信pppoe出口)
需要源地址172.16.20.0/24 无线网络网段 走移动出口,不走电信默认出口。其他走电信出口。
0x02 实现
方案一、通过mangle表实现
(1)添加标记
IP->Firewall->Mangle->+->Mangle Rule->
General 选项卡:Chain选择“prerouting”,Src.Address选择“172.16.20.0/24”
Action选项卡:Action选择“mark routing”,New Routing Mark输入一个标记“wifi”
(2)添加路由
IP->Routes->+
Det.Address填写“0.0.0.0/0”,Routing Mark选择刚刚的标记“wifi”,Gateway选择"pppoe-out-yd"
方案二、通过route rule实现
1.在IP->Roue->Rules下新建,匹配Src.A...
阅读全文>>
标签: routeros 策略路由
评论(0)
(636)
2023-3-14 myluzh
H3C
The new password is too short. It must contain at least 10 characters.
password-control length 4
password-control composition type-number 1 type-length 1
undo password-control complexity user-name check
阅读全文>>
标签: h3c
评论(0)
(881)
2023-3-8 myluzh
Linux
官方文档传送门:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html#plugins-in-ansible-builtin
ping模块 (检查主机连通性)
[root@master ansibleProject]# ansible -i ./inventory -m ping all
shell模块( 批量执行shell命令)
ansible 指定主机清单 主机组 指定模块 指定动作[参数]
ansible -i inventory node -m shell -a "hostname"
[root@master ansibleProject]# ansible -i inventory node -m shell -a "hostname"
...
阅读全文>>
标签: ansible
评论(0)
(339)
2023-3-8 myluzh
Linux
#创建inventory文件,vim /root/ansibleProject/inventory
[node134]
#手动在主机清单中指定这台机子的用户名密码
192.168.253.134 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="cisco123"
[node133]
192.168.253.133
[node130]
192.168.253.130
#把node130 133 134添加到 node组中
[node:children]
node130
node133
node134
#给node这个组设置账号密码
[node:vars]
ansible_ssh_port=22
ansible_ssh_user=root
ansible_ssh_pass="cisco123"
#使用-i 指定inventory文件位置,使用ping模块,指定主机node133
[root@master ansibleProject]# ansible -i ./inventory -m ping...
阅读全文>>
标签: ansible
评论(0)
(320)
2023-3-8 myluzh
Linux
https://blog.csdn.net/m0_64496909/article/details/124913290
#yum安装ansible需要先启动EPEL仓库,具体方法自行百度。
[root@master ~]# yum install ansible --nogpgcheck
#安装完成后使用--version 查看默认配置文件
[root@master ~]# ansible --version
ansible [core 2.14.2]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /r...
阅读全文>>
标签: ansible
评论(0)
(356)
2023-3-8 myluzh
Linux
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
或者...
阅读全文>>
标签: yum epel repo
评论(0)
(580)