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.

poorman-ids.dpak 4.5 KiB

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