vlmcsd/OpenWrt

vlmcsd/OpenWrt

openwrt-vlmcsd

安装在 OpenWrt 路由器可以自动激活局域网里所有 Windows 设备(即 Windows 安装后自动为已激活状态)。但 Office 好像不会自动激活,需要手工输入命令指定 KMS 服务器地址以激活

Downloads

luci-app-vlmcsd

opkg install vlmcsd luci-app-vlmcsd

# 之后刷新web界面,在网络中找到vlmcsd设置
# 勾选自动激活
# 系统就会在/etc/dnsmasq.conf 添加当前路由器主机名的SRV记录
# 这样就不需要任何设置就可以自动激活系统了

Using without luci-app-vlmcsd

  1. Install openwrt-vlmcsd ipk (opkg install vlmcsd_svn1112-1_mipsel_24kc.ipk)
  2. /etc/init.d/vlmcsd start (optional?)
  3. Add the following line to /etc/dnsmasq.conf: (这个是允许局域网Windows自动发现并使用该 KMS 服务器激活)
#  192.168.1.1 is lan IP (or use lan hostname, like 'OpenWrt.lan')
srv-host=_vlmcs._tcp.lan,192.168.1.1,1688,0,100

The response should be your router's IP.

/etc/init.d/vlmcsd enable && /etc/init.d/vlmcsd start && /etc/init.d/dnsmasq restart

Verify

You can check if the dnsmasq setting works with the following cammand in Windows:

nslookup -type=srv _vlmcs._tcp.lan

Sample output:

C:\Users\user>nslookup -type=srv _vlmcs._tcp.lan
Server:  dns.google
Address:  8.8.8.8

_vlmcs._tcp.lan SRV service location:
          priority       = 0
          weight         = 100
          port           = 1688
          svr hostname   = 192.168.1.1
_vlmcs._tcp.lan SRV service location:
          priority       = 0
          weight         = 100
          port           = 1688
          svr hostname   = OpenWrt.lan

Last update: 2022-08-08 07:26:40 UTC | Redirect from OpenWrt/KMS