Myluzh Blog

Strive to become a dream architect.

HCIP-dhcp snooping

2023-2-14 myluzh Huawei

解释:防止非法dhcp服务器。 接入交换机上启用dhcp snooping功能后,所有的接口默认都是非信任接口,通过非信任接口的dhcp回应报文,交换机会直接丢弃掉。所以需要指定上联接口为信任接口。一般在接入交换机才做dhcp snooping功能。 #开启dhcp snooping [Huawei]dhcp enable  [Huawei]dhcp snooping enable  #将上联口设置成可信接口 [Huawei]int GigabitEthernet 0/0/1 [Huawei-GigabitEthernet0/0/1]dhcp snooping trusted 

阅读全文>>

标签: hcip dhcp snooping

评论(0) (228)

L2TP客户端连不上报错解决

2023-2-9 myluzh NETWORK

Windows 错误 809 错误 809:无法建立计算机与 VPN 服务器之间的网络连接,因为远程服务器未响应。这可能是因为未将计算机与远程服务器之间的某种网络设备(如防火墙、NAT、路由器等)配置为允许 VPN 连接。请与管理员或服务提供商联系以确定哪种设备可能产生此问题。 注: 仅当你使用 IPsec/L2TP 模式连接到 VPN 时,才需要进行下面的注册表更改。对于 IKEv2 和 IPsec/XAuth 模式,不需要 进行此更改。 要解决此错误,在首次连接之前需要修改一次注册表,以解决 VPN 服务器 和/或 客户端与 NAT (比如家用路由器)的兼容问题。请下载并导入下面的 .reg 文件,或者打开 提升权限命令提示符 并运行以下命令。完成后必须重启计算机。 适用于 Windows Vista, 7, 8, 10 和 11  REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f 仅适用于 Win...

阅读全文>>

标签: l2tp

评论(0) (1019)

Xshell突出显示集代码高亮

2023-2-6 myluzh NOTE

另存为switch.hls 放到\Xshell\HighlightSet Files目录下面,然后进入Xshell->工具->突出显示集 [Keyword_0] TermBackColor=1 Underline=1 Bold=0 Strikeout=0 Keyword=[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)* Description=Email address BackColorIndex=286 UseRegex=1 Italic=0 Enable=0 TextColorIndex=286 CaseSens=0 [Keyword_1] TermBackColor=1 Underline=0 Bold=1 Strikeout=0 Keyword=(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))\s* Description=IP...

阅读全文>>

标签: xshell 突出显示集 代码高亮

评论(0) (227)

OpenVPN设置账号密码登陆

2023-2-4 myluzh OpenVPN

1、配置OpenVPN vim /etc/openvpn/checkpsw.sh #!/bin/sh ########################################################### # checkpsw.sh (C) 2004 Mathias Sundman # # This script will authenticate OpenVPN users against # a plain text file. The passfile should simply contain # one row per user with the username first followed by # one or more space(s) or tab(s) and then the password. PASSFILE="/etc/openvpn/psw-file" LOG_FILE="/etc/openvpn/openvpn-password.log" TIME_STAMP=`date "+%Y-%m-%d %T"` ###################...

阅读全文>>

标签: openvpn

评论(0) (199)

OpenVPN客户端证书合并到配置文件中

2023-2-3 myluzh OpenVPN

1.编辑client.ovpn客户端配置文件: 2.删除在这里我把它们注释掉: ca ca.crt  改为:#ca ca.crtcert client.crt  改为:#cert client.crtkey client.key   改为:#key client.key tls-auth ta.key 1  改为:#tls-auth ta.key 1 3.在最后面添加以下内容: <ca> ca.crt文件内容 </ca> <cert> client.crt文件内容 </cert> <key> client.key文件内容 </key> key-direction 1 <tls-auth> ta.key文件内容 </tls-auth>

阅读全文>>

标签: openvpn

评论(0) (345)

CentOS7搭建OpenVPN Server

2023-2-2 myluzh OpenVPN

0x01 安装OpenVPN #临时关闭selinux setenforce 0 #添加epel yum源 wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo yum clean yum makecache #yum安装包 yum install openvpn -y 0x02 证书制作 # 下载安装easy-rsa wget https://github.com/OpenVPN/easy-rsa/releases/download/v3.1.2/EasyRSA-3.1.2.tgz tar xf EasyRSA-3.1.2.tgz mkdir -p /etc/openvpn/easy-rsa3 cp -r EasyRSA-3.1.2/* /etc/openvpn/easy-rsa3 # 进入easy-rsa3目录 cd /etc/openvpn/easy-rsa3/ #初始化目录 ./easyrsa init-pki # 复制vars文件模板 cp /etc/open...

阅读全文>>

标签: centos openvpn easy-rsa

评论(0) (255)