vlmcsd.8.html 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171
  1. <!-- Creator : groff version 1.22.3 -->
  2. <!-- CreationDate: Sat Oct 20 09:49:39 2018 -->
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  4. "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta name="generator" content="groff -Thtml, see www.gnu.org">
  8. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  9. <meta name="Content-Style" content="text/css">
  10. <style type="text/css">
  11. p { margin-top: 0; margin-bottom: 0; vertical-align: top }
  12. pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
  13. table { margin-top: 0; margin-bottom: 0; vertical-align: top }
  14. h1 { text-align: center }
  15. </style>
  16. <title>VLMCSD</title>
  17. </head>
  18. <body>
  19. <h1 align="center">VLMCSD</h1>
  20. <a href="#NAME">NAME</a><br>
  21. <a href="#SYNOPSIS">SYNOPSIS</a><br>
  22. <a href="#DESCRIPTION">DESCRIPTION</a><br>
  23. <a href="#OPTIONS">OPTIONS</a><br>
  24. <a href="#SIGNALS">SIGNALS</a><br>
  25. <a href="#SUPPORTED OPERATING SYSTEMS">SUPPORTED OPERATING SYSTEMS</a><br>
  26. <a href="#SUPPORTED PRODUCTS">SUPPORTED PRODUCTS</a><br>
  27. <a href="#FILES">FILES</a><br>
  28. <a href="#EXAMPLES">EXAMPLES</a><br>
  29. <a href="#BUGS">BUGS</a><br>
  30. <a href="#AUTHOR">AUTHOR</a><br>
  31. <a href="#CREDITS">CREDITS</a><br>
  32. <a href="#SEE ALSO">SEE ALSO</a><br>
  33. <hr>
  34. <h2>NAME
  35. <a name="NAME"></a>
  36. </h2>
  37. <p style="margin-left:11%; margin-top: 1em">vlmcsd - a
  38. fully Microsoft compatible KMS server</p>
  39. <h2>SYNOPSIS
  40. <a name="SYNOPSIS"></a>
  41. </h2>
  42. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b> [
  43. <i>options</i> ]</p>
  44. <h2>DESCRIPTION
  45. <a name="DESCRIPTION"></a>
  46. </h2>
  47. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  48. is a fully Microsoft compatible KMS server that provides
  49. product activation services to clients. It is meant as a
  50. drop-in replacement for a Microsoft KMS server (Windows
  51. computer with KMS key entered). It currently supports KMS
  52. protocol versions 4, 5 and 6.</p>
  53. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  54. is designed to run on POSIX compatible operating systens. It
  55. only requires a basic C library with a BSD-style sockets API
  56. and either <b>fork</b>(2) or <b>pthreads</b>(7). That allows
  57. it to run on most embedded systems like routers, NASes,
  58. mobile phones, tablets, TVs, settop boxes, etc. Some efforts
  59. have been made that it also runs on Windows.</p>
  60. <p style="margin-left:11%; margin-top: 1em">Although
  61. <b>vlmcsd</b> does neither require an activation key nor a
  62. payment to anyone, it is not meant to run illegal copies of
  63. Windows. Its purpose is to ensure that owners of legal
  64. copies can use their software without restrictions, e.g. if
  65. you buy a new computer or motherboard and your key will be
  66. refused activation from Microsoft servers due to hardware
  67. changes.</p>
  68. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  69. may be started via an internet superserver like
  70. <b>inetd</b>(8) or <b>xinetd</b>(8) as well as an advanced
  71. init system like <b>systemd</b>(8) or <b>launchd</b>(8)
  72. using socket based activation. If <b>vlmcsd</b> detects that
  73. <b>stdin</b>(3) is a socket, it assumes that there is
  74. already a connected client on stdin that wants to be
  75. activated.</p>
  76. <p style="margin-left:11%; margin-top: 1em">All options
  77. that control setting up listening sockets will be ignored
  78. when in inetd mode. The sockets will be set up by your
  79. internet superserver. You also cannot limit the number of
  80. simultanous clients (option <b>-m</b>). You need to
  81. configure the limit in your internet superserver.</p>
  82. <p style="margin-left:11%; margin-top: 1em">The followong
  83. features that require that vlmcsd is permanently loaded will
  84. not work if started from an internet superserver:</p>
  85. <p style="margin-left:22%; margin-top: 1em">You cannot
  86. maintain a client list (option <b>-M1</b>)</p>
  87. <p style="margin-left:22%; margin-top: 1em">EPID
  88. Randomization Level 1 (option <b>-r1</b>) works like Level 2
  89. (<b>-r2</b>). You may want to use Level 0 (<b>-r0</b>) or
  90. custom EPIDs (options <b>-w</b>, <b>-G</b>, <b>-0</b>,
  91. <b>-3</b> and <b>-6</b>) instead.</p>
  92. <h2>OPTIONS
  93. <a name="OPTIONS"></a>
  94. </h2>
  95. <p style="margin-left:11%; margin-top: 1em">Since vlmcsd
  96. can be configured at compile time, some options may not be
  97. available on your system.</p>
  98. <p style="margin-left:11%; margin-top: 1em">All options
  99. that do no require an argument may be combined with a single
  100. dash, for instance &quot;vlmcsd -D -e&quot; is identical to
  101. &quot;vlmcsd -De&quot;. For all options that require an
  102. argument a space between the option and the option argument
  103. is optional. Thus &quot;vlmcsd -r 2&quot; and &quot;vlmcsd
  104. -r2&quot; are identical too. <b><br>
  105. -h</b> or <b>-?</b></p>
  106. <p style="margin-left:22%;">Displays help.</p>
  107. <table width="100%" border="0" rules="none" frame="void"
  108. cellspacing="0" cellpadding="0">
  109. <tr valign="top" align="left">
  110. <td width="11%"></td>
  111. <td width="3%">
  112. <p><b>-V</b></p></td>
  113. <td width="8%"></td>
  114. <td width="78%">
  115. <p>Displays extended version information. This includes the
  116. compiler used to build vlmcsd, the intended platform and
  117. flags (compile time options) to build vlmcsd. If you have
  118. the source code of vlmcsd, you can type <b>make help</b> (or
  119. <b>gmake help</b> on systems that do not use the GNU version
  120. of <b>make</b>(1) by default) to see the meaning of those
  121. flags.</p> </td></tr>
  122. </table>
  123. <p style="margin-left:11%;"><b>-L</b>
  124. <i>ipaddress</i>[:<i>port</i>]</p>
  125. <p style="margin-left:22%;">Instructs vlmcsd to listen on
  126. <i>ipaddress</i> with optional <i>port</i> (default 1688).
  127. You can use this option more than once. If you do not
  128. specify <b>-L</b> at least once, IP addresses 0.0.0.0 (IPv4)
  129. and :: (IPv6) are used. If the IP address contains colons
  130. (IPv6) you must enclose the IP address in brackets if you
  131. specify the optional port, e.g.
  132. [2001:db8::dead:beef]:1688.</p>
  133. <p style="margin-left:22%; margin-top: 1em">If no port is
  134. specified, vlmcsd uses the default port according to a
  135. preceding <b>-P</b> option. If you specify a port, it can be
  136. a number (1-65535) or a name (usually found in /etc/services
  137. if not provided via LDAP, NIS+ or another name service).</p>
  138. <p style="margin-left:22%; margin-top: 1em">If you specify
  139. a link local IPv6 address (fe80::/10, usually starting with
  140. fe80::), it must be followed by a percent sign (%) and a
  141. scope id (=network interface name or number) on most unixoid
  142. OSses including Linux, Android, MacOS X and iOS, e.g.
  143. fe80::1234:56ff:fe78:9abc<b>%eth0</b> or
  144. [fe80::1234:56ff:fe78:9abc<b>%2</b>]:1688. Windows
  145. (including cygwin) does not require a scope id unless the
  146. same link local address is used on more than one network
  147. interface. Windows does not accept a name and the scope id
  148. must be a number.</p>
  149. <p style="margin-left:11%;"><b>-o</b> <i>level</i></p>
  150. <p style="margin-left:22%;">Sets the <i>level</i> of
  151. protection against activations from public IP addresses. The
  152. default is <b>-o0</b> for no protection.</p>
  153. <p style="margin-left:22%; margin-top: 1em"><b>-o1</b>
  154. causes vlmcsd not to listen on all IP addresses but on
  155. private IP addresses only. IPv4 addresses in the
  156. 100.64.0.0/10 range (see RFC6598) are not treated as private
  157. since they can be reached from other users of your ISP.
  158. Private IPv4 addresses are 10.0.0.0/8, 172.16.0.0/12,
  159. 192.168.0.0/16, 169.254.0.0/16 and 127.0.0.0/8. vlmcsd
  160. treats all IPv6 addresses not within 2000::/3 as private
  161. addresses.</p>
  162. <p style="margin-left:22%; margin-top: 1em">If <b>-o1</b>
  163. is combined with <b>-L</b>, it will listen on all private IP
  164. addresses plus the ones specified by one or more <b>-L</b>
  165. statements. If <b>-o1</b> is combined with <b>-P</b>, only
  166. the last <b>-P</b> statement will be used.</p>
  167. <p style="margin-left:22%; margin-top: 1em">Using
  168. <b>-o1</b> does not protect you if you enable NAT port
  169. forwarding on your router to your vlmcsd machine. It is
  170. identical to using multiple -L statements with all of your
  171. private IP addresses. What <b>-o1</b> does for you, is
  172. automatically enumerating your private IP addresses.</p>
  173. <p style="margin-left:22%; margin-top: 1em"><b>-o2</b> does
  174. not affect the interfaces, vlmcsd is listening on. When a
  175. clients connects, vlmcsd immediately drops the connection if
  176. the client has a public IP address. Unlike <b>-o1</b>
  177. clients will be able to establish a TCP connection but it
  178. will be closed without a single byte sent over the
  179. connection. This protects against clients with public IP
  180. addresses even if NAT port forwarding is used. While
  181. <b>-o2</b> offers a higher level of protection than
  182. <b>-o1</b>, the client sees that the KMS TCP port (1688 by
  183. default) is actually accepting connections.</p>
  184. <p style="margin-left:22%; margin-top: 1em">If vlmcsd is
  185. compiled to use MS RPC, <b>-o2</b> can only offer very poor
  186. protection. Control is passed from MS RPC to vlmcsd after
  187. the KMS protocol has already been negotiated. Thus a client
  188. can always verify that the KMS protocol is available even
  189. though it receives an RPC_S_ACCESS_DENIED error message.
  190. vlmcsd will issue a warning if <b>-o2</b> is used with MS
  191. RPC. <b>For adaequate protection do not use a MS RPC build
  192. of vlmcsd with -o2</b>.</p>
  193. <p style="margin-left:22%; margin-top: 1em"><b>-o3</b>
  194. combines <b>-o1</b> and <b>-o2</b>. vlmcsd listens on
  195. private interfaces only and if a public client manages to
  196. connect anyway due to NAT port forwarding, it will be
  197. immediately dropped.</p>
  198. <p style="margin-left:22%; margin-top: 1em">If you use any
  199. form of TCP level port forwarding (e.g. <b>nc</b>(1),
  200. <b>netcat</b>(1), <b>ssh</b>(1) port forwarding or similar)
  201. to redirect KMS requests to vlmcsd, there will be no
  202. protection even if you use <b>-o2</b> or <b>-o3</b>. This is
  203. due to the simple fact that vlmcsd sees the IP address of
  204. the redirector and not the IP address of the client.</p>
  205. <p style="margin-left:22%; margin-top: 1em"><b>-o1</b> (and
  206. thus <b>-o3</b>) is not (yet) available in some
  207. scenarios:</p>
  208. <p style="margin-left:29%; margin-top: 1em">FreeBSD: There
  209. is a longtime unfixed
  210. <a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178881">bug</a>
  211. in the 32-bit ABI of the 64-bit kernel. If you have a 64-bit
  212. FreeBSD kernel, you must run the 64-bit version of vlmcsd if
  213. you use <b>-o1</b> or <b>-o3</b>. The 32-bit version causes
  214. undefined behavior up to crashing vlmcsd. Other BSDs
  215. (NetBSD, OpenBSD, Dragonfly and Mac OS X) work
  216. correctly.</p>
  217. <p style="margin-left:29%; margin-top: 1em">If vlmcsd was
  218. started by an internet superserver or was compiled to use
  219. Microsoft RPC (Windows only) or simple sockets, <b>-o1</b>
  220. and <b>-o3</b> are not available by design.</p>
  221. <p style="margin-left:11%;"><b>-P</b> <i>port</i></p>
  222. <p style="margin-left:22%;">Use TCP <i>port</i> for all
  223. subsequent <b>-L</b> statements that do not include an
  224. optional port. If you use <b>-P</b> and <b>-L</b>, <b>-P</b>
  225. must be specified before <b>-L</b>.</p>
  226. <p style="margin-left:11%;"><b>-O</b>
  227. <i>vpn-adapter-name</i>[=<i>ipv4-address</i>][/<i>cidr-mask</i>][:<i>dhcp-lease-duration</i>]</p>
  228. <p style="margin-left:22%;">Enables a compatible VPN
  229. adapter to create additional local IPv4 addresses (like
  230. 127.0.0.1) that appear as remote IPv4 addresses to the
  231. system. This allows product activation using a local
  232. instance of vlmcsd. This feature is only available in
  233. Windows and Cygwin builds of vlmcsd since it is not of any
  234. use on other operating systems. Compatible VPN adapters are
  235. Tap-windows version 8.2 or higher (from OpenVPN) and the
  236. TeamViewer VPN adapter. There are two special
  237. <i>vpn-adapter-name</i>s. A single period (.) instructs
  238. vlmcsd to use the first available compatible VPN adapter. A
  239. single dash (-) disables the use of a VPN adapter if one has
  240. been configured in <b>vlmcsd.ini</b>(5). The
  241. <i>vpn-adapter-name</i> is <b>not</b> case-sensitive. If the
  242. <i>vpn-adapter-name</i> contains spaces (e.g. Ethernet 3),
  243. you must enclose it in quotes.</p>
  244. <p style="margin-left:22%; margin-top: 1em">The default
  245. <i>ipv4-address</i> is 10.10.10.9 and the default
  246. <i>cidr-mask</i> is 30. If you are using the default values,
  247. your VPN adapter uses an IPv4 address of 10.10.10.9 and you
  248. can set your activation client to use the easy to remember
  249. address 10.10.10.10 (e.g. slmgr /skms 10.10.10.10 or cscript
  250. ospp.vbs /sethst:10.10.10.10).</p>
  251. <p style="margin-left:22%; margin-top: 1em">The
  252. <i>dhcp-lease-duration</i> is a number optionally followed
  253. by s, m, h, d or w to indicate seconds, minutes, hours, days
  254. or weeks. The default <i>dhcp-lease-duration</i> is 1d (one
  255. day). It is normally not required to change this value.</p>
  256. <p style="margin-left:22%; margin-top: 1em">It is advised
  257. not to manually configure your OpenVPN TAP or TeamViewer VPN
  258. adapter in &quot;Network Connections&quot;. If you set the
  259. IPv4 configuration manually anyway, the IPv4 address and the
  260. subnet mask must match the <b>-O</b> parameter. It is safe
  261. leave the IPv4 configuration to automatic (DHCP). vlmcsd
  262. will wait up to four seconds for the DHCP configuration to
  263. complete before binding to and listenin on any
  264. interfaces.</p>
  265. <p style="margin-left:22%; margin-top: 1em">You should be
  266. aware that only one program can use a VPN adapter at a time.
  267. If you use the TeamViewer VPN adapter for example, you will
  268. not be able to use the VPN feature of TeamViewer as long as
  269. vlmcsd is running. The same applies to OpenVPN TAP adapters
  270. that are in use by other programs (for example OpenVPN,
  271. QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid
  272. conflicts is to install Tap-Windows from OpenVPN, cd to
  273. C:\Program Files\TAP-Windows\bin and run addtap.bat to
  274. install an additional TAP adapter. Go to &quot;Network
  275. Connections&quot; and rename the new adapter to
  276. &quot;vlmcsd&quot; and specify <b>-O vlmcsd</b> to use
  277. it.</p>
  278. <p style="margin-left:22%; margin-top: 1em">Example: <b>-O
  279. &quot;Ethernet 7&quot;=192.168.123.1/24</b> (uses VPN
  280. adapter Ethernet 7 with IPv4 address 192.168.123.1 and have
  281. 192.168.123.2 to 192.168.123.254 as additional local (but
  282. apparently remote) IPv4 addresses.</p>
  283. <p style="margin-left:11%;"><b>-x0</b> and <b>-x1</b></p>
  284. <p style="margin-left:22%;">Controls under what
  285. circumstances vlmcsd will exit. Using the default of
  286. <b>-x0</b> vlmcsd stays active as long as it can perform
  287. some useful operations. If vlmcsd is run by any form of a
  288. watchdog, e.g. NT service manager (Windows), systemd (Linux)
  289. or launchd (Mac OS / iOS), it may be desirable to end vlmcsd
  290. and let the watchdog restart it. This is especially true if
  291. some pre-requisites are not yet met but will be some time
  292. later, e.g. network is not yet fully setup.</p>
  293. <p style="margin-left:22%; margin-top: 1em">By using
  294. <b>-x0</b> vlmcsd will</p>
  295. <p style="margin-left:29%; margin-top: 1em">exit if none of
  296. the listening sockets specified with <b>-L</b> can be used.
  297. It continues if at least one socket can be setup for
  298. listening.</p>
  299. <p style="margin-left:29%; margin-top: 1em">exit any TAP
  300. mirror thread (Windows version only) if there is an error
  301. condition while reading or writing from or to the VPN
  302. adapter but continue to work without utilizing a VPN
  303. adapter.</p>
  304. <p style="margin-left:22%; margin-top: 1em">By using
  305. <b>-x1</b> vlmcsd will</p>
  306. <p style="margin-left:29%; margin-top: 1em">exit if not all
  307. listening sockets specified with <b>-L</b> can be used.</p>
  308. <p style="margin-left:29%; margin-top: 1em">exit completely
  309. if there is a problem with a VPN adapter it is using. This
  310. can happen for instance if the VPN adapter has been disabled
  311. using &quot;Control Panel - Network - Adapter Settings&quot;
  312. while vlmcsd is using it.</p>
  313. <p style="margin-left:22%; margin-top: 1em">Please note
  314. that <b>-x1</b> is kind of a workaround option. While it may
  315. help under some circumstances, it is better to solve the
  316. problem at its origin, e.g. properly implementing
  317. dependencies in your startup script to ensure all network
  318. interfaces and the VPN adapter you will use are completely
  319. setup before you start vlmcsd.</p>
  320. <p style="margin-left:11%;"><b>-F0</b> and <b>-F1</b></p>
  321. <p style="margin-left:22%;">Allow (<b>-F1</b>) or disallow
  322. (<b>-F0</b>) binding to IP addresses that are currently not
  323. configured on your system. The default is <b>-F0</b>.
  324. <b>-F1</b> allows you to bind to an IP address that may be
  325. configured after you started <b>vlmcsd</b>. <b>vlmcsd</b>
  326. will listen on that address as soon as it becomes available.
  327. This feature is only available under Linux (IPv4 and IPv6)
  328. and FreeBSD (IPv4 only). FreeBSD allows this feature only
  329. for the root user (more correctly: processes that have the
  330. PRIV_NETINET_BINDANY privilege). Linux does not require a
  331. capability for this.</p>
  332. <p style="margin-left:11%;"><b>-t</b> <i>seconds</i></p>
  333. <p style="margin-left:22%;">Timeout the TCP connection with
  334. the client after <i>seconds</i> seconds. After sending an
  335. activation request. RPC keeps the TCP connection for a
  336. while. The default is 30 seconds. You may specify a shorter
  337. period to free ressources on your device faster. This is
  338. useful for devices with limited main memory or if you used
  339. <b>-m</b> to limit the concurrent clients that may request
  340. activation. Microsoft RPC clients disconnect after 30
  341. seconds by default. Setting <i>seconds</i> to a greater
  342. value does not make much sense.</p>
  343. <p style="margin-left:11%;"><b>-m</b>
  344. <i>concurrent-clients</i></p>
  345. <p style="margin-left:22%;">Limit the number of clients
  346. that will be handled concurrently. This is useful for
  347. devices with limited ressources or if you are experiencing
  348. DoS attacks that spawn thousands of threads or forked
  349. processes. If additional clients connect to vlmcsd, they
  350. need to wait until another client disconnects. If you set
  351. <i>concurrent-clients</i> to a small value ( &lt;10 ), you
  352. should also select a reasonable timeout of 2 or 3 seconds
  353. with <b>-t</b>. The default is no limit.</p>
  354. <table width="100%" border="0" rules="none" frame="void"
  355. cellspacing="0" cellpadding="0">
  356. <tr valign="top" align="left">
  357. <td width="11%"></td>
  358. <td width="3%">
  359. <p><b>-d</b></p></td>
  360. <td width="8%"></td>
  361. <td width="78%">
  362. <p>Disconnect each client after processing one activation
  363. request. This is a direct violation of DCE RPC but may help
  364. if you receive malicous fake RPC requests that block your
  365. threads or forked processes. Some other KMS emulators (e.g.
  366. py-kms) behave this way.</p></td></tr>
  367. <tr valign="top" align="left">
  368. <td width="11%"></td>
  369. <td width="3%">
  370. <p><b>-k</b></p></td>
  371. <td width="8%"></td>
  372. <td width="78%">
  373. <p>Do not disconnect clients after processing an activation
  374. request. This selects the default behavior. <b>-k</b> is
  375. useful only if you used an ini file (see
  376. <b>vlmcsd.ini</b>(5) and <b>-i</b>). If the ini file
  377. contains the line &quot;DisconnectClientsImmediately =
  378. true&quot;, you can use this switch to restore the default
  379. behavior.</p> </td></tr>
  380. </table>
  381. <p style="margin-left:11%;"><b>-N0</b> and <b>-N1</b></p>
  382. <p style="margin-left:22%;">Disables (<b>-N0</b>) or
  383. enables (<b>-N1</b>) the use of the NDR64 transfer syntax in
  384. the RPC protocol. Unlike Microsoft vlmcsd supports NDR64 on
  385. 32-bit operating systems. Microsoft introduced NDR64 in
  386. Windows Vista but their KMS servers started using it with
  387. Windows 8. Thus if you choose random ePIDs, vlmcsd will
  388. select ePIDs with build numbers 9200 and 9600 if you enable
  389. NDR64 and build numbers 6002 and 7601 if you disable NDR64.
  390. The default is to enable NDR64.</p>
  391. <p style="margin-left:11%;"><b>-B0</b> and <b>-B1</b></p>
  392. <p style="margin-left:22%;">Disables (<b>-B0</b>) or
  393. enables (<b>-B1</b>) bind time feature negotiation (BTFN) in
  394. the RPC protocol. All Windows operating systems starting
  395. with Vista support BTFN and try to negotiate it when
  396. initiating an RPC connection. Thus consider turning it off
  397. as a debug / troubleshooting feature only. Some older
  398. firewalls that selectively block or redirect RPC traffic may
  399. get confused when they detect NDR64 or BTFN.</p>
  400. <p style="margin-left:11%;"><b>-l</b> <i>filename</i></p>
  401. <p style="margin-left:22%;">Use <i>filename</i> as a log
  402. file. The log file records all activations with IP address,
  403. Windows workstation name (no reverse DNS lookup), activated
  404. product, KMS protocol, time and date. If you do not specify
  405. a log file, no log is created. For a live view of the log
  406. file type tail -f <i>file</i>.</p>
  407. <p style="margin-left:22%; margin-top: 1em">If you use the
  408. special <i>filename</i> &quot;syslog&quot;, vlmcsd uses
  409. <b>syslog</b>(3) for logging. If your system has no syslog
  410. service (/dev/log) installed, logging output will go to
  411. /dev/console. Syslog logging is not available in the native
  412. Windows version. The Cygwin version does support syslog
  413. logging.</p>
  414. <p style="margin-left:11%;"><b>-T0</b> and <b>-T1</b></p>
  415. <p style="margin-left:22%;">Disable (<b>-T0</b>) or enable
  416. (<b>-T1</b>) the inclusion of date and time in each line of
  417. the log. The default is <b>-T1</b>. <b>-T0</b> is useful if
  418. you log to <b>stdout</b>(3) which is redirected to another
  419. logging mechanism that already includes date and time in its
  420. output, for instance <b>systemd-journald</b>(8). If you log
  421. to <b>syslog</b>(3), <b>-T1</b> is ignored and date and time
  422. will never be included in the output sent to
  423. <b>syslog</b>(3).</p>
  424. <table width="100%" border="0" rules="none" frame="void"
  425. cellspacing="0" cellpadding="0">
  426. <tr valign="top" align="left">
  427. <td width="11%"></td>
  428. <td width="3%">
  429. <p><b>-D</b></p></td>
  430. <td width="8%"></td>
  431. <td width="78%">
  432. <p>Normally vlmcsd daemonizes and runs in background
  433. (except the native Windows version). If <b>-D</b> is
  434. specified, vlmcsd does not daemonize and runs in foreground.
  435. This is useful for testing and allows you to simply press
  436. &lt;Ctrl-C&gt; to exit vlmcsd.</p></td></tr>
  437. </table>
  438. <p style="margin-left:22%; margin-top: 1em">The native
  439. Windows version never daemonizes and always behaves as if
  440. <b>-D</b> had been specified. You may want to install vlmcsd
  441. as a service instead. See <b>-s</b>.</p>
  442. <table width="100%" border="0" rules="none" frame="void"
  443. cellspacing="0" cellpadding="0">
  444. <tr valign="top" align="left">
  445. <td width="11%"></td>
  446. <td width="3%">
  447. <p style="margin-top: 1em"><b>-e</b></p></td>
  448. <td width="8%"></td>
  449. <td width="78%">
  450. <p style="margin-top: 1em">If specified, vlmcsd ignores
  451. <b>-l</b> and writes all logging output to <b>stdout</b>(3).
  452. This is mainly useful for testing and debugging and often
  453. combined with <b>-D</b>.</p></td></tr>
  454. <tr valign="top" align="left">
  455. <td width="11%"></td>
  456. <td width="3%">
  457. <p><b>-v</b></p></td>
  458. <td width="8%"></td>
  459. <td width="78%">
  460. <p>Use verbose logging. Logs every parameter of the base
  461. request and the base response. It also logs the HWID of the
  462. KMS server if KMS protocol version 6 is used. This option is
  463. mainly for debugging purposes. It only has an effect if some
  464. form of logging is used. Thus <b>-v</b> does not make sense
  465. if not used with <b>-l</b>, <b>-e</b> or <b>-f</b>.</p></td></tr>
  466. <tr valign="top" align="left">
  467. <td width="11%"></td>
  468. <td width="3%">
  469. <p><b>-q</b></p></td>
  470. <td width="8%"></td>
  471. <td width="78%">
  472. <p>Do not use verbose logging. This is actually the default
  473. behavior. It only makes sense if you use vlmcsd with an ini
  474. file (see <b>-i</b> and <b>vlmcsd.ini</b>(5)). If the ini
  475. file contains the line &quot;LogVerbose = true&quot; you can
  476. use <b>-q</b> to restore the default behavior.</p></td></tr>
  477. </table>
  478. <p style="margin-left:11%;"><b>-p</b> <i>filename</i></p>
  479. <p style="margin-left:22%;">Create pid file
  480. <i>filename</i>. This has nothing to do with KMS ePIDs. A
  481. pid file is a file where vlmcsd writes its own process id.
  482. This is used by standard init scripts (typically found in
  483. /etc/init.d). The default is not to write a pid file.</p>
  484. <p style="margin-left:11%;"><b>-u</b> <i>user</i> and
  485. <b>-g</b> <i>group</i></p>
  486. <p style="margin-left:22%;">Causes vlmcsd to run in the
  487. specified <i>user</i> and <i>group</i> security context. The
  488. main purpose for this is to drop root privileges after it
  489. has been started from the root account. To use this feature
  490. from cygwin you must run cyglsa-config and the account from
  491. which vlmcsd is started must have the rights &quot;Act as
  492. part of the operating system&quot; and &quot;Replace a
  493. process level token&quot;. The native Windows version does
  494. not support these options.</p>
  495. <p style="margin-left:22%; margin-top: 1em">The actual
  496. security context switch is performed after the TCP sockets
  497. have been created. This allows you to use privileged ports
  498. (&lt; 1024) when you start vlmcsd from the root account.</p>
  499. <p style="margin-left:22%; margin-top: 1em">However if you
  500. use an ini, pid or log file, you must ensure that the
  501. unprivileged user has access to these files. You can always
  502. log to <b>syslog</b>(3) from an unprivileged account on most
  503. platforms (see <b>-l</b>).</p>
  504. <p style="margin-left:11%;"><b>-a</b> <i>CSVLK</i> =
  505. <i>ePID</i> [ / <i>HwId</i> ]</p>
  506. <p style="margin-left:22%;">Use <i>ePID</i> and <i>HwId</i>
  507. for a specific <i>CSVLK</i>. When you use it, <b>-r</b> is
  508. disregarded for this <i>CSVLK</i>. If vlmcsd uses the
  509. default vlmcsd.kmd database, you can use the following
  510. <i>CSVLK</i>s: Windows, WinChinaGov, Office2010, Office2013,
  511. Office2016 and Office2019. The <b>-a</b> option requires
  512. that database version 1.6 or later is used.</p>
  513. <p style="margin-left:22%; margin-top: 1em"><i>HwId</i>
  514. must be specified as 16 hex digits that are interpreted as a
  515. series of 8 bytes (big endian). Any character that is not a
  516. hex digit will be ignored. This is for better
  517. readability.</p>
  518. <p style="margin-left:11%;"><b>-i</b> <i>filename</i></p>
  519. <p style="margin-left:22%;">Use configuration file (aka ini
  520. file) <i>filename</i>. Most configuration parameters can be
  521. set either via the command line or an ini file. The command
  522. line always has precedence over configuration items in the
  523. ini file. See <b>vlmcsd.ini</b>(5) for the format of the
  524. configuration file.</p>
  525. <p style="margin-left:22%; margin-top: 1em">If vlmcsd has
  526. been compiled to use a default configuration file (often
  527. /etc/vlmcsd.ini), you may use <b>-i-</b> to ignore the
  528. default configuration file.</p>
  529. <p style="margin-left:11%;"><b>-j</b> <i>filename</i></p>
  530. <p style="margin-left:22%;">Use KMS data file
  531. <i>filename</i>. By default vlmcsd only contains the minimum
  532. product data that is required to perform all operations
  533. correctly. You may use a more complete KMS data file that
  534. contains all detailed product names. This is especially
  535. useful if you are logging KMS requests. If you don&rsquo;t
  536. log, there is no need to load an external KMS data file.</p>
  537. <p style="margin-left:22%; margin-top: 1em">If vlmcsd has
  538. been compiled to use a default KMS data file, you may use
  539. <b>-j-</b> to ignore the default configuration file.</p>
  540. <p style="margin-left:11%;"><b>-r0</b>, <b>-r1</b>
  541. (default) and <b>-r2</b></p>
  542. <p style="margin-left:22%;">These options determine how
  543. ePIDs are generated if</p>
  544. <p style="margin-left:22%; margin-top: 1em">- you did not
  545. sprecify an ePID in the command line and <br>
  546. - you haven&rsquo;t used <b>-i</b> or <br>
  547. - the file specified by <b>-i</b> cannot be opened or <br>
  548. - the file specified by <b>-i</b> does not contain an ePID
  549. for the KMS request</p>
  550. <p style="margin-left:22%; margin-top: 1em"><b>-r0</b>
  551. means there are no random ePIDs. vlmcsd simply issues
  552. default ePIDs that are built into the binary at compile
  553. time. <b>Pro:</b> behaves like real KMS server that also
  554. always issues the same ePID. <b>Con:</b> Microsoft may start
  555. blacklisting again and the default ePID may not work any
  556. longer.</p>
  557. <p style="margin-left:22%; margin-top: 1em"><b>-r1</b>
  558. instructs vlmcsd to generate random ePIDs when the program
  559. starts or receives a SIGHUP signal and uses these ePIDs
  560. until it is stopped or receives another SIGHUP. Most other
  561. KMS emulators generate a new ePID on every KMS request. This
  562. is easily detectable. Microsoft could just modify sppsvc.exe
  563. in a way that it always sends two identical KMS requests in
  564. two RPC requests but over the same TCP connection. If both
  565. KMS responses contain the different ePIDs, the KMS server is
  566. not genuine. <b>-r1</b> is the default mode. <b>-r1</b> also
  567. ensures that all three ePIDs (Windows, Office 2010 and
  568. Office 2013) use the same OS build number and LCID (language
  569. id).</p>
  570. <p style="margin-left:22%; margin-top: 1em">If vlmcsd has
  571. been started by an internet superserver, <b>-r1</b> works
  572. almost identically to <b>-r2</b>. The only exception occurs
  573. if you send more than one activation request over the same
  574. TCP connection. This is simply due to the fact that vlmcsd
  575. is started upon a connection request and does not stay in
  576. memory after servicing a KMS request. Consider using
  577. <b>-r0</b> or <b>-w</b>, <b>-G</b>, <b>-0</b>, <b>-3</b> and
  578. <b>-6</b> when starting vlmcsd by an internet
  579. superserver.</p>
  580. <p style="margin-left:22%; margin-top: 1em"><b>-r2</b>
  581. behaves like most other KMS server emulators with random
  582. support and generates a new random ePID on every request.
  583. <b>-r2</b> should be treated as debugging option only
  584. because it allows very easy emulator detection.</p>
  585. <p style="margin-left:11%;"><b>-C</b> <i>LCID</i></p>
  586. <p style="margin-left:22%;">Do not randomize the locale id
  587. part of the ePID and use <i>LCID</i> instead. The
  588. <i>LCID</i> must be specified as a decimal number, e.g. 1049
  589. for &quot;Russian - Russia&quot;. This option has no effect
  590. if the ePID is not randomized at all, e.g. if it is selected
  591. from the command line or an ini file.</p>
  592. <p style="margin-left:22%; margin-top: 1em">By default
  593. vlmcsd generates a valid locale id that is recognized by
  594. .NET Framework 4.0. This may lead to a locale id which is
  595. unlikely to occur in your country, for instance 2155 for
  596. &quot;Quecha - Ecuador&quot;. You may want to select the
  597. locale id of your country instead. See
  598. <a href="http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx">MSDN</a>
  599. for a list of valid <i>LCID</i>s. Please note that some of
  600. them are not recognized by .NET Framework 4.0.</p>
  601. <p style="margin-left:22%; margin-top: 1em">Most other KMS
  602. emulators use a fixed <i>LCID</i> of 1033 (English - US). To
  603. achive the same behavior in vlmcsd use <b>-C 1033</b>.</p>
  604. <p style="margin-left:11%;"><b>-H</b> <i>HostBuild</i></p>
  605. <p style="margin-left:22%;">Do not randomize the host build
  606. number in the ePID and use <i>HostBuild</i> instead, for
  607. instance 17763 for Windows Server 2019 / Windows 10
  608. 1809.</p>
  609. <p style="margin-left:11%;"><b>-K0</b>, <b>-K1</b>,
  610. <b>-K2</b> and <b>-K3</b></p>
  611. <p style="margin-left:22%;">Sets the whitelisting level to
  612. determine which products vlmcsd activates or refuses. The
  613. default is <b>-K0</b>.</p>
  614. <p style="margin-left:29%; margin-top: 1em"><b>-K0</b>:
  615. activate all products with an unknown, retail or
  616. beta/preview KMS ID. <b><br>
  617. -K1</b>: activate products with a retail or beta/preview KMS
  618. ID but refuse to activate products with an unknown KMS ID.
  619. <b><br>
  620. -K2</b>: activate products with an unknown KMS ID but refuse
  621. products with a retail or beta/preview KMS ID. <b><br>
  622. -K3</b>: activate only products with a known volume license
  623. RTM KMS ID and refuse all others.</p>
  624. <table width="100%" border="0" rules="none" frame="void"
  625. cellspacing="0" cellpadding="0">
  626. <tr valign="top" align="left">
  627. <td width="22%"></td>
  628. <td width="78%">
  629. <p>The SKU ID is not checked. Like a genuine KMS server
  630. vlmcsd activates a product that has a random or unknown SKU
  631. ID. If you select <b>-K1</b> or <b>-K3</b>, vlmcsd also
  632. checks the Application ID for correctness. If Microsoft
  633. introduces a new KMS ID for a new product, you cannot
  634. activate it if you used <b>-K1</b> or <b>-K3</b> until a new
  635. version of vlmcsd is available.</p></td></tr>
  636. </table>
  637. <p style="margin-left:11%;"><b>-c0</b> and <b>-c1</b></p>
  638. <p style="margin-left:22%;"><b>-c1</b> causes vlmcsd to
  639. check if the client time differs no more than four hours
  640. from the system time. <b>-c0</b> (the default) disables this
  641. check. <b>-c1</b> is useful to prevent emulator detection. A
  642. client that tries to detect an emulator could simply send
  643. two subsequent request with two time stamps that differ more
  644. than four hours from each other. If both requests succeed,
  645. the server is an emulator. If you specify <b>-c1</b> on a
  646. system with no reliable time source, activations will fail.
  647. It is ok to set the correct system time after you started
  648. vlmcsd.</p>
  649. <p style="margin-left:11%;"><b>-M0</b> and <b>-M1</b></p>
  650. <p style="margin-left:22%;">Disables (<b>-M0</b>) or
  651. enables (<b>-M1</b>) maintaining a list of client machine
  652. IDs (CMIDs). The default is <b>-M0</b>. <b>-M1</b> is useful
  653. to prevent emulator detection. By maintaing a CMID list,
  654. vlmcsd reports current active clients exactly like a genuine
  655. KMS emulator. This includes bug compatibility to the extent
  656. that you can permanently kill a genuine KMS emulator by
  657. sending an &quot;overcharge request&quot; with a required
  658. client count of 376 or more and then request activation for
  659. 671 clients. vlmcsd can be reset from this condition by
  660. restarting it. If <b>-M0</b> is used, vlmcsd reports current
  661. active clients as good as possible. If no client sends an
  662. &quot;overcharge request&quot;, it is not possible to detect
  663. vlmcsd as an emulator with <b>-M0</b>. <b>-M1</b> requires
  664. the allocation of a buffer that is about 50 kB in size. On
  665. hardware with few memory resources use it only if you really
  666. need it.</p>
  667. <p style="margin-left:22%; margin-top: 1em">If you start
  668. vlmcsd from an internet superserver, <b>-M1</b> cannot be
  669. used. Since vlmcsd exits after each activation, it cannot
  670. maintain any state in memory.</p>
  671. <p style="margin-left:11%;"><b>-E0</b> and <b>-E1</b></p>
  672. <p style="margin-left:22%;">These options are ignored if
  673. you do not also specify <b>-M1</b>. If you use <b>-E0</b>
  674. (the default), vlmcsd starts up as a fully
  675. &quot;charged&quot; KMS server. Clients activate
  676. immediately. <b>-E1</b> lets you start up vlmcsd with an
  677. empty CMID list. Activation will start when the required
  678. minimum clients (25 for Windows Client OSses, 5 for Windows
  679. Server OSses and Office) have registered with the KMS
  680. server. As long as the minimum client count has not been
  681. reached, clients end up in HRESULT 0xC004F038 &quot;The
  682. count reported by your Key Management Service (KMS) is
  683. insufficient. Please contact your system
  684. administrator&quot;. You may use <b>vlmcs</b>(1) or another
  685. KMS client emulator to &quot;charge&quot; vlmcsd. <b>-E1</b>
  686. does not improve emulator detection prevention. It&rsquo;s
  687. primary purpose is to help developers of KMS clients to test
  688. &quot;charging&quot; a KMS server.</p>
  689. <p style="margin-left:11%;"><b>-R</b>
  690. <i>renewal-interval</i></p>
  691. <p style="margin-left:22%;">Instructs clients to renew
  692. activation every <i>renewal-interval</i>. The
  693. <i>renewal-interval</i> is a number optionally immediately
  694. followed by a letter indicating the unit. Valid unit letters
  695. are s (seconds), m (minutes), h (hours), d (days) and w
  696. (weeks). If you do not specify a letter, minutes is
  697. assumed.</p>
  698. <p style="margin-left:22%; margin-top: 1em"><b>-R3d</b> for
  699. instance instructs clients to renew activation every 3 days.
  700. The default <i>renewal-interval</i> is 10080 (identical to
  701. 7d and 1w).</p>
  702. <p style="margin-left:22%; margin-top: 1em">Due to poor
  703. implementation of Microsofts KMS Client it cannot be
  704. guaranteed that activation is renewed on time as specfied by
  705. the -R option. Don&rsquo;t care about that. Renewal will
  706. happen well before your activation expires (usually 180
  707. days).</p>
  708. <p style="margin-left:22%; margin-top: 1em">Even though you
  709. can specify seconds, the granularity of this option is 1
  710. minute. Seconds are rounded down to the next multiple of
  711. 60.</p>
  712. <p style="margin-left:11%;"><b>-A</b>
  713. <i>activation-interval</i></p>
  714. <p style="margin-left:22%;">Instructs clients to retry
  715. activation every <i>activation-interval</i> if it was
  716. unsuccessful, e.g. because it could not reach the server.
  717. The default is 120 (identical to 2h).
  718. <i>activation-interval</i> follows the same syntax as
  719. <i>renewal-interval</i> in the <b>-R</b> option.</p>
  720. <table width="100%" border="0" rules="none" frame="void"
  721. cellspacing="0" cellpadding="0">
  722. <tr valign="top" align="left">
  723. <td width="11%"></td>
  724. <td width="3%">
  725. <p><b>-s</b></p></td>
  726. <td width="8%"></td>
  727. <td width="78%">
  728. <p>Installs vlmcsd as a Windows service. This option only
  729. works with the native Windows version and Cygwin. Combine
  730. <b>-s</b> with other command line options. These will be in
  731. effect when you start the service. The service automatically
  732. starts when you reboot your machine. To start it manually,
  733. type &quot;net start vlmcsd&quot;.</p></td></tr>
  734. </table>
  735. <p style="margin-left:22%; margin-top: 1em">If you use
  736. Cygwin, you must include your Cygwin system DLL directory
  737. (usually C:\Cygwin\bin or C:\Cygwin64\bin) into the PATH
  738. environment variable or the service will not start.</p>
  739. <p style="margin-left:22%; margin-top: 1em">You can
  740. reinstall the service anytime using vlmcsd -s again, e.g.
  741. with a different command line. If the service is running, it
  742. will be restarted with the new command line.</p>
  743. <p style="margin-left:22%; margin-top: 1em">When using
  744. <b>-s</b> the command line is checked for basic syntax
  745. errors only. For example &quot;vlmcsd -s -L 1.2.3.4&quot;
  746. reports no error but the service will not start if 1.2.3.4
  747. is not an IP address on your system.</p>
  748. <table width="100%" border="0" rules="none" frame="void"
  749. cellspacing="0" cellpadding="0">
  750. <tr valign="top" align="left">
  751. <td width="11%"></td>
  752. <td width="3%">
  753. <p style="margin-top: 1em"><b>-S</b></p></td>
  754. <td width="8%"></td>
  755. <td width="78%">
  756. <p style="margin-top: 1em">Uninstalls the vlmcsd service.
  757. Works only with the native Windows version and Cygwin. All
  758. other options will be ignored if you include -S in the
  759. command line.</p></td></tr>
  760. </table>
  761. <p style="margin-left:11%;"><b>-U</b>
  762. [<i>domain</i>\]<i>username</i></p>
  763. <p style="margin-left:22%;">Can only be used together with
  764. <b>-s</b>. Starts the service as a different user than the
  765. local SYSTEM account. This is used to run the service under
  766. an account with low privileges. If you omit the domain, an
  767. account from the local computer will be used.</p>
  768. <p style="margin-left:22%; margin-top: 1em">You may use
  769. &quot;NT AUTHORITY\NetworkService&quot;. This is a pseudo
  770. user with low privileges. You may also use &quot;NT
  771. AUTHORITY\LocalService&quot; which has more privileges but
  772. these are of no use for running vlmcsd.</p>
  773. <p style="margin-left:22%; margin-top: 1em">Make sure that
  774. the user you specify has at least execute permission for
  775. your executable. &quot;NT AUTHORITY\NetworkService&quot;
  776. normally has no permission to run binaries from your home
  777. directory.</p>
  778. <p style="margin-left:22%; margin-top: 1em">For your
  779. convenience you can use the special username &quot;/l&quot;
  780. as a shortcut for &quot;NT AUTHORITY\LocalService&quot; and
  781. &quot;/n&quot; for &quot;NT AUTHORITY\NetworkService&quot;.
  782. &quot;vlmcsd&nbsp;-s&nbsp;-U&nbsp;/n&quot; installs the
  783. service to run as &quot;NT
  784. AUTHORITY\NetworkService&quot;.</p>
  785. <p style="margin-left:11%;"><b>-W</b> <i>password</i></p>
  786. <p style="margin-left:22%;">Can only be used together with
  787. <b>-s</b>. Specifies a <i>password</i> for the corresponding
  788. username you use with -U. SYSTEM, &quot;NT
  789. AUTHORITY\NetworkService&quot;, &quot;NT
  790. AUTHORITY\LocalService&quot; do not require a password.</p>
  791. <p style="margin-left:22%; margin-top: 1em">If you specify
  792. a user with even lower privileges than &quot;NT
  793. AUTHORITY\NetworkService&quot;, you must specify its
  794. password. You also have to grant the &quot;Log on as a
  795. service&quot; right to that user.</p>
  796. <h2>SIGNALS
  797. <a name="SIGNALS"></a>
  798. </h2>
  799. <p style="margin-left:11%; margin-top: 1em">The following
  800. signals differ from the default behavior: <b><br>
  801. SIGTERM</b>, <b>SIGINT</b></p>
  802. <p style="margin-left:22%;">These signals cause vlmcsd to
  803. exit gracefully. All global semaphores and shared memory
  804. pages will be released, the pid file will be unlinked
  805. (deleted) and a shutdown message will be logged.</p>
  806. <table width="100%" border="0" rules="none" frame="void"
  807. cellspacing="0" cellpadding="0">
  808. <tr valign="top" align="left">
  809. <td width="11%"></td>
  810. <td width="9%">
  811. <p><b>SIGHUP</b></p></td>
  812. <td width="2%"></td>
  813. <td width="78%">
  814. <p>Causes vlmcsd to be restarted completely. This is useful
  815. if you started vlmcsd with an ini file. You can modify the
  816. ini file while vlmcsd is running and then sending
  817. <b>SIGHUP</b>, e.g. by typing &quot;killall -SIGHUP
  818. vlmcsd&quot; or &quot;kill -SIGHUP &rsquo;cat
  819. /var/run/vlmcsd.pid&rsquo;&quot;.</p> </td></tr>
  820. </table>
  821. <p style="margin-left:22%; margin-top: 1em">The SIGHUP
  822. handler has been implemented relatively simple. It is
  823. virtually the same as stopping vlmcsd and starting it again
  824. immediately with the following exceptions:</p>
  825. <table width="100%" border="0" rules="none" frame="void"
  826. cellspacing="0" cellpadding="0">
  827. <tr valign="top" align="left">
  828. <td width="22%"></td>
  829. <td width="1%">
  830. <p style="margin-top: 1em">&mdash;</p></td>
  831. <td width="3%"></td>
  832. <td width="74%">
  833. <p style="margin-top: 1em">The new process does not get a
  834. new process id.</p></td></tr>
  835. <tr valign="top" align="left">
  836. <td width="22%"></td>
  837. <td width="1%">
  838. <p>&mdash;</p></td>
  839. <td width="3%"></td>
  840. <td width="74%">
  841. <p>If you used a pid file, it is not deleted and recreated
  842. because the process id stays the same.</p></td></tr>
  843. <tr valign="top" align="left">
  844. <td width="22%"></td>
  845. <td width="1%">
  846. <p>&mdash;</p></td>
  847. <td width="3%"></td>
  848. <td width="74%">
  849. <p>If you used the &rsquo;user&rsquo; and/or
  850. &rsquo;group&rsquo; directive in an ini file these are
  851. ignored. This is because once you switched to lower
  852. privileged users and groups, there is no way back. Anything
  853. else would be a severe security flaw in the OS.</p></td></tr>
  854. </table>
  855. <p style="margin-left:11%; margin-top: 1em">Signaling is
  856. not available in the native Windows version and in the
  857. Cygwin version when vlmcsd runs as a Windows service.</p>
  858. <h2>SUPPORTED OPERATING SYSTEMS
  859. <a name="SUPPORTED OPERATING SYSTEMS"></a>
  860. </h2>
  861. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  862. compiles and runs on Linux, Windows (no Cygwin required but
  863. explicitly supported), Mac OS X, FreeBSD, NetBSD, OpenBSD,
  864. Dragonfly BSD, Minix, Solaris, OpenIndiana, Android and iOS.
  865. Other POSIX or unixoid OSses may work with unmodified
  866. sources or may require minor porting efforts.</p>
  867. <h2>SUPPORTED PRODUCTS
  868. <a name="SUPPORTED PRODUCTS"></a>
  869. </h2>
  870. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
  871. can answer activation requests for the following products:
  872. Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10
  873. (up to 1703), Windows Server 2008, Windows Server 2008 R2,
  874. Windows Server 2012, Windows Server 2012 R2, Windows Server
  875. 2016, Office 2010, Project 2010, Visio 2010, Office 2013,
  876. Project 2013, Visio 2013, Office 2016, Project 2016, Visio
  877. 2016. Newer products may work as long as the KMS protocol
  878. does not change. A complete list of fully supported products
  879. can be obtained using the <b>-x</b> option of
  880. <b>vlmcs</b>(1).</p>
  881. <p style="margin-left:11%; margin-top: 1em">Office, Project
  882. and Visio must be volume license versions.</p>
  883. <h2>FILES
  884. <a name="FILES"></a>
  885. </h2>
  886. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd.ini</b>(5)</p>
  887. <h2>EXAMPLES
  888. <a name="EXAMPLES"></a>
  889. </h2>
  890. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd
  891. -De</b></p>
  892. <p style="margin-left:22%;">Starts <b>vlmcsd</b> in
  893. foreground. Useful if you use it for the first time and want
  894. to see what&rsquo;s happening when a client requests
  895. activation.</p>
  896. <p style="margin-left:11%;"><b>vlmcsd -l
  897. /var/log/vlmcsd.log</b></p>
  898. <p style="margin-left:22%;">Starts <b>vlmcsd</b> as a
  899. daemon and logs everything to /var/log/vlmcsd.log.</p>
  900. <p style="margin-left:11%;"><b>vlmcsd -L
  901. 192.168.1.17</b></p>
  902. <p style="margin-left:22%;">Starts <b>vlmcsd</b> as a
  903. daemon and listens on IP address 192.168.1.17 only. This is
  904. useful for routers that have a public and a private IP
  905. address to prevent your KMS server from becoming public.</p>
  906. <p style="margin-left:11%;"><b>vlmcsd -s -U /n -l
  907. C:\logs\vlmcsd.log</b></p>
  908. <p style="margin-left:22%;">Installs <b>vlmcsd</b> as a
  909. Windows service with low privileges and logs everything to
  910. C:\logs\vlmcsd.log when the service is started with
  911. &quot;net start vlmcsd&quot;.</p>
  912. <h2>BUGS
  913. <a name="BUGS"></a>
  914. </h2>
  915. <p style="margin-left:11%; margin-top: 1em">An ePID
  916. specified in an ini file must not contain spaces.</p>
  917. <h2>AUTHOR
  918. <a name="AUTHOR"></a>
  919. </h2>
  920. <p style="margin-left:11%; margin-top: 1em">Written by
  921. crony12, Hotbird64 and vityan666. With contributions from
  922. DougQaid.</p>
  923. <h2>CREDITS
  924. <a name="CREDITS"></a>
  925. </h2>
  926. <p style="margin-left:11%; margin-top: 1em">Thanks to
  927. abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87,
  928. qad, Ratiborus, ...</p>
  929. <h2>SEE ALSO
  930. <a name="SEE ALSO"></a>
  931. </h2>
  932. <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd.ini</b>(5),
  933. <b>vlmcsd</b>(7), <b>vlmcs</b>(1), <b>vlmcsdmulti</b>(1)</p>
  934. <hr>
  935. </body>
  936. </html>