H3C新建用户并设置系统最高权限

1.配置登录管理的用户名、认证级别、口令 local-user admin password simple satelit service-type telnet level 3 save 2.H3C提权 超级终端(基础密码system) super 3 sys local-user admin password simple system #设置密码为system level 3 service-type telnet save 3.修改H3C的默认密码 telnet 172.21.100.1 password: #输入原密码 super 3 system user-int vty 0 4 #改telnet密码 user-int console 0 #改console口密码 user-int aux 0 #改aux口密码 set aut pass cip abcde #设置密码

2023年1月13日 · 1 分钟 · 54 字 · AIHugoBlog

华为防火墙配置跨三层MAC识别

华为防火墙配置跨三层MAC识别 1.需求 FW作为企业的出口网关,内网用户通过三层交换机与FW相连,并通过FW访问Internet。FW需要以MAC地址为匹配条件配置安全策略、策略路由、带宽策略等来控制内网流量。 拓扑图 2. S5700交换机为例 开启snmp [Switch] snmp-agent [Switch] snmp-agent sys-info version v2c [Switch] snmp-agent community read Public@123 3. 防护墙配置 配置FW的接口IP地址。 [FW] interface GigabitEthernet 1/0/2 [FW-GigabitEthernet1/0/2] ip address 192.168.2.100 24 [FW-GigabitEthernet1/0/2] quit [FW] firewall zone trust [FW-zone-trust] add interface GigabitEthernet 1/0/2 配置Local到Trust区域的安全策略,允许防火墙向交换机发送SNMP报文。 [FW] security-policy [FW-policy-security] rule name policy_sec [FW-policy-security-rule-policy_sec] source-zone local [FW-policy-security-rule-policy_sec] destination-zone trust [FW-policy-security-rule-policy_sec] destination-address 192.168.2.110 32 [FW-policy-security-rule-policy_sec] action permit 配置跨三层MAC识别。 [FW] snmp-server arp-sync enable [FW] snmp-server target-host arp-sync address 192.168.2.110 community Public@123 v2c [FW] snmp-server arp-sync interval 5 timeout 3

2023年1月13日 · 1 分钟 · 83 字 · AIHugoBlog

华为防火墙和三层交换机对接上网配置

1.需求 公司拥有多个部门且位于不同网段,各部门均有访问Internet需求。现要求用户通过三层交换机和防火墙访问外部网络,且要求三层交换机作为用户的网关。 拓扑图 2. 配置交换机 配置连接用户的接口和对应的VLANIF接口。 <HUAWEI> system-view [HUAWEI] sysname Switch [Switch] vlan batch 2 3 [Switch] interface gigabitethernet 0/0/2 [Switch-GigabitEthernet0/0/2] port link-type access //配置接口接入类型为access [Switch-GigabitEthernet0/0/2] port default vlan 2 //配置接口加入VLAN 2 [Switch-GigabitEthernet0/0/2] quit [Switch] interface gigabitethernet 0/0/3 [Switch-GigabitEthernet0/0/3] port link-type access [Switch-GigabitEthernet0/0/3] port default vlan 3 [Switch-GigabitEthernet0/0/3] quit [Switch] interface vlanif 2 [Switch-Vlanif2] ip address 192.168.1.1 24 [Switch-Vlanif2] quit [Switch] interface vlanif 3 [Switch-Vlanif3] ip address 192.168.2.1 24 配置连接防火墙的接口和对应的VLANIF接口。 [Switch] vlan batch 100 [Switch] interface gigabitethernet 0/0/1 [Switch-GigabitEthernet0/0/1] port link-type access [Switch-GigabitEthernet0/0/1] port default vlan 100 [Switch-GigabitEthernet0/0/1] quit [Switch] interface vlanif 100 [Switch-Vlanif100] ip address 192.168.100.2 24 配置缺省路由。 [Switch] ip route-static 0.0.0.0 0.0.0.0 192.168.100.1 //缺省路由的下一跳是防火墙接口的IP地址192.168.100.1 配置DHCP服务器。 [Switch] dhcp enable [Switch] interface vlanif 2 [Switch-Vlanif2] dhcp select interface //DHCP使用接口地址池的方式为用户分配IP地址 [Switch-Vlanif2] dhcp server dns-list 114.114.114.114 223.5.5.5 //配置的DNS-List 114.114.114.114是公用的DNS服务器地址,是不区分运营商的。在实际应用中,请根据运营商分配的DNS进行配置 [Switch-Vlanif2] quit [Switch] interface vlanif 3 [Switch-Vlanif3] dhcp select interface [Switch-Vlanif3] dhcp server dns-list 114.114.114.114 223.5.5.5 [Switch-Vlanif3] quit 3.配置防火墙 配置连接交换机的接口对应的IP地址。 <USG6600> system-view [USG6600] interface gigabitethernet 1/0/1 [USG6600-GigabitEthernet1/0/1] ip address 192.168.100.1 255.255.255.0 配置连接公网的接口对应的IP地址。 [USG6600] interface gigabitethernet 1/0/2 [USG6600-GigabitEthernet1/0/2] ip address 1.1.1.2 255.255.255.0 //配置连接公网接口的IP地址和公网的IP地址在同一网段 配置缺省路由和回程路由。 [USG6600] ip route-static 0.0.0.0 0.0.0.0 1.1.1.1 //配置静态缺省路由的下一跳指向公网提供的IP地址1.1.1.1 [USG6600] ip route-static 192.168.0.0 255.255.0.0 192.168.100.2 //配置回程路由的下一跳就指向交换机上行接口的IP地址192.168.100.2 配置安全策略 [USG6600] firewall zone trust //配置trust域 [USG6600-zone-trust] add interface gigabitethernet 1/0/1 [USG6600-zone-trust] quit [USG6600] firewall zone untrust //配置untrust域 [USG6600-zone-untrust] add interface gigabitethernet 1/0/2 [USG6600-zone-untrust] quit 配置安全策略,允许域间互访。 [USG6600] security-policy [USG6600-policy-security] rule name policy1 [USG6600-policy-security-rule-policy1] source-zone trust [USG6600-policy-security-rule-policy1] destination-zone untrust [USG6600-policy-security-rule-policy1] source-address 192.168.0.0 mask 255.255.0.0 [USG6600-policy-security-rule-policy1] action permit [USG6600-policy-security-rule-policy1] quit [USG6600-policy-security] quit 配置PAT地址池,开启允许端口地址转换。 [USG6600] nat address-group addressgroup1 [USG6600-address-group-addressgroup1] mode pat [USG6600-address-group-addressgroup1] route enable [USG6600-address-group-addressgroup1] section 0 1.1.1.2 1.1.1.2 //转换的公网IP地址 [USG6600-address-group-addressgroup1] quit 配置源PAT策略,实现私网指定网段访问公网时自动进行源地址转换。 [USG6600] nat-policy [USG6600-policy-nat] rule name policy_nat1 [USG6600-policy-nat-rule-policy_nat1] source-zone trust [USG6600-policy-nat-rule-policy_nat1] destination-zone untrust [USG6600-policy-nat-rule-policy_nat1] source-address 192.168.0.0 mask 255.255.0.0 //允许进行PAT转换的源IP地址 [USG6600-policy-nat-rule-policy_nat1] action nat address-group addressgroup1 [USG6600-policy-nat-rule-policy_nat1] quit

2023年1月13日 · 2 分钟 · 279 字 · AIHugoBlog

chrome解决http自动跳转https问题

地址栏输入: chrome://net-internals/#hsts 找到底部Delete domain security policies一栏,输入想处理的域名,点击delete。

2023年1月13日 · 1 分钟 · 6 字 · AIHugoBlog

黑苹果Config.plist文件常用修改项

###1.修改启动选项时间Root–>Misc—>Boot–>timeout项的number值改为想要等待的时间,单位秒###2.取消开机日志Root–>Misc—>Debug–>Target项的number值改为0即为关闭开机日志###3.声卡I

2023年1月13日 · 1 分钟 · 20 字 · AIHugoBlog

Mac 模拟鼠标点击工具Cliclick

1.安装 brew install cliclick 2.使用 # 打印当前鼠标位置 $ /usr/local/bin/cliclick p # 点击指定位置坐标 $ /usr/local/bin/cliclick c:x,y (x横坐标,y纵坐标) 3.python代码 import os import time cmd1 = "/usr/local/bin/cliclick c:3451,392" for i in range(5): mess1 = os.system(cmd1) print(mess1) time.sleep(1) print('----' + str(i+1) + '------')

2023年1月13日 · 1 分钟 · 39 字 · AIHugoBlog

MacOS 常用命令

MacOS 常用命令汇总:查看EFI分区、挂载分区、允许任意安装源、查找端口进程、强制刷新DNS、WARP优选IP。

2023年1月13日 · 1 分钟 · 73 字 · AIHugoBlog

Mac苹果笔记本重新安装

1.comand + R 进入recover模式 2.清除格式化硬盘 3.reinstall mac 4.注意: 出现 this item is temporarily unavailable 开启mac按住:comand + option + r + p 重启多次后,再进入recovere模式

2023年1月13日 · 1 分钟 · 22 字 · AIHugoBlog

Mac常用快捷键

截图 command + shift + 4 休眠 command + option + power 复制 command + c 粘帖 command + v 剪切 command + option + v 搜索 command + 空格 访问网络共享 command + k 网页刷新 command + r 网页强制刷新 command + shift + r 应用退出全屏 command + ctrl + f

2023年1月13日 · 1 分钟 · 50 字 · AIHugoBlog

oracle数据库相关

1.解决中文乱码问题 export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8" 2.环境变量设置 $ export ORACLE_SID=XE $ export ORAENV_ASK=NO $ . /opt/oracle/product/18c/dbhomeXE/bin/oraenv

2023年1月13日 · 1 分钟 · 14 字 · AIHugoBlog