The Poor Man's (or Woman's) Intrusion Detection System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

139 lines
4.3 KiB

  1. # This is DPAK Debian packaging source
  2. # DPAK is an tool of JF Possibilities, Inc. Written by ChipMaster.
  3. Source: poorman-ids
  4. Priority: extra
  5. Section: unknown
  6. Maintainer: Jon Foster <jon@jfpossibilities.com>
  7. Homepage: https://yeolpishack.net/repos/ChipMaster/Poor-Mans-IDS/wiki
  8. Description: Poor Man's IDS
  9. A simple tool to alert you to unknown traffic on your network.
  10. Copyright: .
  11. (c) 2021 JF Possibilities, Inc. All rights reserved.
  12. Origin: JFP
  13. Packaged-For: JF Possibilities, Inc.
  14. changelog:
  15. (0.7-1j) unstable; urgency=low
  16. .
  17. ** This is an alpha release **
  18. .
  19. * Improve CNAME handling to handle multiple depths
  20. * *NEW* simple tool to import a hosts like file as a black list.
  21. .
  22. -- Jon Foster <jon@jfpossibilities.com> Mon, 21 Mar 2022 14:56:19 -0700
  23. .
  24. (0.6-1j) unstable; urgency=low
  25. .
  26. ** This is an alpha release **
  27. .
  28. * Change handling of CNAMEs to report the originally requested name.
  29. .
  30. -- Jon Foster <jon@jfpossibilities.com> Mon, 21 Mar 2022 14:56:19 -0700
  31. .
  32. (0.5-2j) unstable; urgency=low
  33. .
  34. ** This is an alpha release **
  35. .
  36. This is primarily a bug fix and testing release.
  37. .
  38. * Leave symbols in bins to see how C++CMS reports errors.
  39. * Don't allow "*." or "*" in the wild card entry field. It breaks
  40. stuff!
  41. .
  42. -- Jon Foster <jon@jfpossibilities.com> Mon, 03 Jan 2022 14:22:30 -0800
  43. .
  44. (0.5-1j) unstable; urgency=low
  45. .
  46. ** This is an alpha release **
  47. .
  48. * Minor internal restructuring of CLI apps.
  49. * *NEW* domblacklist tool to make DNSmasq whole domain blocks.
  50. * Also added the iptraffic log CLI log analyzer
  51. .
  52. -- Jon Foster <jon@jfpossibilities.com> Mon, 03 Jan 2022 14:22:30 -0800
  53. .
  54. (0.4-3j) unstable; urgency=low
  55. .
  56. ** This is an alpha release **
  57. .
  58. * *FIX* mounting on sub URL of a site via FastCGI
  59. * Set UMASK in trafficctrl init script for better default perms.
  60. * Improved doc remarks in "sample.js".
  61. .
  62. -- Jon Foster <jon@jfpossibilities.com> Tue, 14 Sep 2021 13:35:22 -0700
  63. .
  64. (0.4-2j) unstable; urgency=low
  65. .
  66. ** This is an alpha release **
  67. .
  68. * Expanded sample trafficctrl configuration.
  69. .
  70. -- Jon Foster <jon@jfpossibilities.com> Mon, 13 Sep 2021 11:52:58 -0700
  71. .
  72. (0.4-1j) unstable; urgency=low
  73. .
  74. ** This is an alpha release **
  75. .
  76. * Added standard setup stuff like "init.d" scripts, syslog conf, and
  77. improved sample configuration files.
  78. .
  79. -- Jon Foster <jon@jfpossibilities.com> Thu, 08 Sep 2021 13:58:40 -0700
  80. .
  81. (0.3-1j) unstable; urgency=low
  82. .
  83. ** This is an alpha release **
  84. .
  85. * Initial Debianization and release of tools:
  86. - Log catching daemon
  87. - fCGI / HTTP prioritization tool
  88. - report tool
  89. .
  90. -- Jon Foster <jon@jfpossibilities.com> Thu, 02 Sep 2021 10:58:43 -0700
  91. .
  92. Build: sh
  93. make
  94. Clean: sh
  95. make distclean
  96. Package: poorman-ids
  97. Architecture: any
  98. # I think libssl is required by cppcms. libmysqlclient18 is probably cppdb
  99. Depends: libc6, libstdc++6, cppdb (>= 0.3.1-4), cppcms, libssl1.0.0
  100. #Depends: []
  101. Recommends: libmysqlclient18
  102. Description: .
  103. Install: sh
  104. dpak install -sbin iptraffic trafficmon/trafficmon trafficmon/badtrafficrpt
  105. dpak install -sbin trafficmon/dnsblacklist trafficmon/domblacklist
  106. dpak install -sbin trafficmon/impblack
  107. dpak install -sbin controlpanel/trafficctrl
  108. dpak strip
  109. dpak install -conf -subdir poorman-ids sample.conf controlpanel/sample.js
  110. mkdir -p "$DPAK_ROOT/etc/default"
  111. cp trafficmon/default "$DPAK_ROOT/etc/default/trafficmon"
  112. cp controlpanel/default "$DPAK_ROOT/etc/default/trafficctrl"
  113. mkdir -p "$DPAK_ROOT/etc/init.d"
  114. cp trafficmon/init "$DPAK_ROOT/etc/init.d/trafficmon"
  115. cp controlpanel/init "$DPAK_ROOT/etc/init.d/trafficctrl"
  116. mkdir -p "$DPAK_ROOT/etc/syslog.d"
  117. cp trafficmon/syslog "$DPAK_ROOT/etc/syslog.d/trafficmon"
  118. Finalize: sh
  119. # Clean up permissions in the packaged files & folders.
  120. chmod -R g-s "$DPAK_ROOT"
  121. chmod 700 "$DPAK_ROOT/etc/poorman-ids"
  122. chmod 600 "$DPAK_ROOT/etc/poorman-ids/"*
  123. chmod 644 "$DPAK_ROOT/etc/default/"*
  124. chmod 755 "$DPAK_ROOT/etc/init.d/"*
  125. PostInst: sh
  126. update-rc.d trafficmon defaults
  127. update-rc.d trafficctrl defaults
  128. service trafficmon start || true
  129. service trafficctrl start || true
  130. PreRm: sh
  131. # Shut off services so they aren't RAM resident after install
  132. service trafficmon stop || true
  133. service trafficctrl stop || true
  134. PostRm: sh
  135. update-rc.d trafficmon remove
  136. update-rc.d trafficctrl remove