Setup site to site VPN in OpenWRT

lesca | Tutorials | 2017-11-13
Setup site to site VPN in OpenWRT
Environment I use OpenWRT as a VPN client connecting to another site as illustrated below: Problem The OpenWRT can initiate the VPN connection, but I can only reach site A from within OpenWRT shell. Ping to remote site A from my PC, phone, or other devices connected to OpenWRT is not possible. Locate the cause When pinging... [阅读全文]
ė浏览 345 次 6没有评论 0,

本站已迁移至容器 (Docker Container)

lesca | Azure, Tutorials | 2017-11-04
本站已迁移至容器 (Docker Container)
如题,本站正在使用Azure提供的docker container服务。 架构 采用单主机同时运行两个容器:wordpress和mysql。由于docker的特性,后期可以轻易的扩展前端节点数量。 配置 配置文件仅供参考: Dockerfile for wplesca image 当前最新wordpress镜像默认未开启SSL支持,需要通过Dockerfile建立新的镜像并启用SSL支持。 #Dockerfile FROM wordpress:lat... [阅读全文]
ė浏览 584 次 62条评论 0,

树莓派 Raspbian 家长控制

lesca | RaspberryPi, Tutorials | 2017-10-17
功能说明 该脚本能够监控指定网络设备,如网络电视、机顶盒等,访问树莓派,不限服务(包括SMB, NFS等)。典型场景是机顶盒访问树莓派文件共享服务。 该脚本使网络设备只能在一段时间内,默认1小时,访问树莓派,之后冷却1小时,以防止过度访问。 该脚本需要经过需改,才可以部署到OpenWRT等依赖ash的网络设备中。 准备工作 改下面两个文件: 一是将... [阅读全文]
ė浏览 699 次 63条评论 0

Windows 10 1709 那些值得注意的变化

lesca | Tutorials, Windows | 2017-10-16
Win10 1709的 Get-WindowsUpdateLog 不再需要联网获取符号库 Win10 1703默认全新安装时不含SMB v1服务器端和客户端: [阅读全文]
ė浏览 850 次 61条评论 0

Authorized client is forbidden when using ADRMS MDE with ADFS

lesca | ADRMS, Tutorials | 2017-08-13
Problem You are deploying AD RMS with Mobile Device Extension, and thus you also need to deploy AD FS infrastructure. The AD FS server is on Windows Server 2016, i.e. AD FS version 4. You are following steps or using PowerShell scripts from the link below to setup ADFS Relying Party Trust for ADRMS Mobile Device Extension A... [阅读全文]
ė浏览 748 次 6没有评论 0,

screenrc configuration example

lesca | CentOS, Tutorials | 2017-08-10
This is an example of .screenrc configuration file. Just for your reference. .screenrc # Bind F11 and F12 (NOT F1 and F2) to previous and next screen window bindkey -k F1 prev bindkey -k F2 next startup_message off # Screens screen -t Init screen -t Work screen -t OpenWRT ssh -i /root/key select 0 ... [阅读全文]
ė浏览 717 次 6没有评论 0

AD RMS – Office client could not connect to the Internet to check permission

lesca | RMS, Tutorials | 2017-08-07
Situation Your AD RMS client is a workgroup client, you installed Office 2013 or 2016, and setup the discovery service by registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC\ServiceLocation\EnterpriseCertification HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC\ServiceLocation\EnterprisePublishing However, you encountered ... [阅读全文]
ė浏览 947 次 6没有评论 0,

PowerShell: 批量导入Hyper-V虚拟机

lesca | Hyper-V, Tutorials | 2017-07-24
前提条件 本文所介绍的方法要求以下目录保持原有的相对关系、目录结构及所在盘符不能改变。 Virtual Machines Snapshots VHD文件夹(可以是多个) 导入方法 $path = 'D:\Hyper-V\Virtual Machines' # Get the VM configuration files Get-ChildItem $path -Recurse -Filter *.vmcx # Check VM import / register Get-ChildItem $path -Rec... [阅读全文]
ė浏览 621 次 6没有评论 0

How to restart a SCCM OSD Task Sequence within WinPE

lesca | SCCM, Tutorials | 2017-07-23
Introduction 本文介绍如何在不重启的情况下,重新加载SCCM OSD任务序列(Task Sequence) This article describes how to restart SCCM OSD task sequence within PE without restarting the computer. Steps: del X:\SMS\data\variables.dat TsmBootstrap.exe /env:WinPE /configpath:x:\sms\data Notes: 如果之前由于任务序列出错导致任务终止,需... [阅读全文]
ė浏览 725 次 6没有评论 0

Powershell: 用New-SelfSignedCertificate命令创建自签名证书

lesca | Powershell | 2017-07-06
1.创建根证书 $cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature ` -Subject "CN=P2SRootCert" -KeyExportPolicy Exportable ` -HashAlgorithm sha256-KeyLength2048 ` -CertStoreLocation "Cert:\CurrentUser\My" ` -KeyUsageProperty Sign -KeyUsage CertSign 2.获取证书引用(可选步骤) 将下面的THUMBPRINT替换成所需证... [阅读全文]
ė浏览 1,125 次 6没有评论 0,