OpenWrt/KMS

OpenWrt/KMS

openwrt-vlmcsd

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
  2. Add the following line to /etc/dnsmasq.conf:
#  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: 2020-09-08 02:09:42 UTC | Redirect from KMS/Server/OpenWrt