2019年12月

no comments yet
07 Dec 2019

WIN7远程桌面提示“发生身份验证错误,要求的函数不受支持”

在WIN7环境下用远程桌面登录服务器时,提示发生身份验证错误,要求的函数不受支持,可以通过修改注册表(新增注册表键值)来解决:

  • 开始>>运行>>输入regedit打开注册表编辑器
  • 打开文件路径[HKEY_LOCAL_MACHINE]\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters
    一般情况下,到了System之后就没了,缺少的可以自己创建文件夹。
  • 在Parameters文件夹里面新建 DWORD(32)位的。文件名 "AllowEncryptionOracle",值:2

批处理脚本:

REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters /v "AllowEncryptionOracle" /t reg_DWORD /d 2 /f
no comments yet
07 Dec 2019

centos7配置端口转发

#!/bin/bash
#开启系统路由模式功能
echo net.ipv4.ip_forward=1>>/etc/sysctl.conf
#运行这个命令会输出上面添加的那一行信息,意思是使内核修改生效
sysctl -p
#开启firewalld
systemctl start firewalld
#开启4650端口监听tcp请求
firewall-cmd --zone=public --add-port=4650/tcp --permanent
#设置IP地址伪装
firewall-cmd --add-masquerade --permanent
#设置端口映射
firewall-cmd --add-forward-port=port=4650:proto=tcp:toaddr=211.211.211.211:toport=3389 --permanent
firewall-cmd --add-masquerade --permanent
#重启firewall
firewall-cmd --reload

如果提示firewall-cmd: command not found错误,

yum install firewalld -y