Articles I've written for customers on IT issues.
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.

72 lines
2.6 KiB

4 years ago
  1. \documentclass[11pt]{article}
  2. %Gummi|065|=)
  3. \title{\textbf{Setting up Tripwire with SSMTP}}
  4. \usepackage{graphicx}
  5. \usepackage{caption }
  6. \author{Steak Electronics}
  7. \date{06/4/19}
  8. \begin{document}
  9. %\maketitle
  10. \textbf{Setting up Tripwire with SSMTP}
  11. \vspace{0.2in}
  12. This document is best read printed out on paper.
  13. %\textbf{Todo}
  14. \section{Overview}
  15. Tripwire is intrusion detection software for GNU Linux \& BSD. Let's document how to set it up on a server with SSMTP configured for email notifications.
  16. \section{Steps}
  17. \subsection{Configuring Tripwire}
  18. First install Tripwire. This will depend on your package manager. The two examples I have will be either Gentoo, or Debian/Devuan.
  19. \begin{verbatim}
  20. apt-get install tripwire mailutils ssmtp
  21. OR
  22. emerge -av tripwire mailutils ssmtp
  23. \end{verbatim}
  24. \subsubsection{Devuan/Debian}
  25. Devuan will prompt you for a few things in an ncurses gui. Answer all of the defaults (yes for a site key, yes for a user key, etc...). Record your password.
  26. \footnote{For a full walkthrough of this process see this URL:https://www.howtoforge.com/tutorial/how-to-monitor-and-detect-modified-files-using-tripwire-on-ubuntu-1604/ This process includes most, but not all of what you need to know.}
  27. I use the same password for both.
  28. \textbf{After install}
  29. Now, there's a trick we will use here. Normally, the guides will tell you to init, and then init again after the errors. However, we will try to skip that, if possible, to save time. Each init is about 2-3 minutes, so time can be avoided, if you know what configs you need.
  30. \begin{verbatim}
  31. when whitelisting, this is what needs to be commented out in devuan jessie/ascii
  32. Filename: /etc/rc.boot
  33. Filename: /root/mail
  34. Filename: /root/Mail
  35. Filename: /root/.xsession-errors
  36. Filename: /root/.xauth
  37. Filename: /root/.tcshrc
  38. Filename: /root/.sawfish
  39. Filename: /root/.pinerc
  40. Filename: /root/.mc
  41. Filename: /root/.gnome_private
  42. Filename: /root/.gnome-desktop
  43. Filename: /root/.gnome
  44. Filename: /root/.esd_auth
  45. Filename: /root/.elm
  46. Filename: /root/.cshrc
  47. Filename: /root/.bash_profile
  48. Filename: /root/.bash_logout
  49. Filename: /root/.amandahosts
  50. Filename: /root/.addressbook.lu
  51. Filename: /root/.addressbook
  52. Filename: /root/.Xresources
  53. Filename: /root/.Xauthority
  54. Filename: /root/.ICEauthority
  55. Filename: /proc/6136/fd/3
  56. Filename: /proc/6136/fdinfo/3
  57. Filename: /proc/6136/task/6136/fd/3
  58. Filename: /proc/6136/task/6136/fdinfo/3
  59. \end{verbatim}
  60. For proc, you simply whitelist the whole directory.
  61. \subsection{Configuring SSMTP}
  62. \end{document}