Skip to content

Commit

Permalink
Small updates to the manual
Browse files Browse the repository at this point in the history
  • Loading branch information
sikvall committed May 16, 2015
1 parent ee310ac commit 6eaedf8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
Binary file modified manual/ipta.pdf
Binary file not shown.
44 changes: 26 additions & 18 deletions manual/ipta.tex
Expand Up @@ -67,9 +67,9 @@
\noindent

\begin{center}
Version 0.1\\[5mm] \textcopyright\ Copyright 2015 Anders Sikvall,
ichimusai.org\\
Printed in Sweden
Version 0.1\\[5mm] \textcopyright\ Copyright 2015 Anders Sikvall\\
http://ichimusai.org/projects/ipta\\
ichi@ichimusai.org
\newpage
\end{center}

Expand All @@ -85,6 +85,8 @@
\lhead{\nouppercase{\leftmark}}
\rhead{\nouppercase{\rightmark}}

\setlength{\headheight}{15pt}

\pagestyle{fancy}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -104,6 +106,7 @@ \section*{License}
permit persons to whom the Software is furnished to do so, subject to
the following conditions:


\begin{itemize}
\item[1.] The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the Software.
Expand Down Expand Up @@ -207,14 +210,15 @@ \subsection{Bug reports}
that are not working properly.

Please report any other bugs you find on the issue tracker at
\hyperref[https://github.com/sikvall/ipta]{the GitHub issue tracker at
(https://github.com/sikvall/ipta)}. It is much appreciated if you
Github\footnote{https://github.com/sikvall/ipta}. It is much
appreciated if you
would take the time and describe how to re-create the bug.

You can of course also email me and I will create an issue for the bug
and see what we can do for a resolution. Please email to
\hyperref[mailto:anders@sikvall.se]{anders@sikvall.se} for reporting
bugs and put ``ipta: [description]'' in the header.
You can of course also email me and I will create an issue for the
bug and
see what we can do for a resolution. Please email to
$<$anders@sikvall.se$>$
for reporting bugs and put ``ipta: [description]'' in the header.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Expand All @@ -230,9 +234,13 @@ \subsection{Installing mysql server and client}
local machine or another machine. Consult your system documentation on
how to install the necessary tools.

For Ubuntu you would likely install something like this:

\small
\begin{verbatim}
# apt-get install mysql-server
$ sudo apt-get install mysql-server mysql-client mysql-common
\end{verbatim}
\normalsize

\subsection{Installing the necessary tools}

Expand Down Expand Up @@ -521,11 +529,13 @@ \subsubsection{Creating the logchains}
will at the beginning somewhere, before any rules but after the policy
setting in the iptables script insert something like this:

\small
\begin{verbatim}
iptables -N LOGDROP
iptables -A LOGDROP -j LOG --log-prefix ``IPT: DROP `` --log-level 7
iptables -A LOGDROP -j LOG --log-prefix "IPT: DROP " --log-level 7
iptables -A LOGDROP -j DROP
\end{verbatim}
\normalsize

Now every time in your firewall that you will drop a packet, instead
of using the usual target DROP you will replace it with LOGDROP
Expand All @@ -538,7 +548,7 @@ \subsubsection{Creating the logchains}
\small
\begin{verbatim}
iptables -N LOGACCEPT
iptables -A LOGACCEPT -j LOG --log-prefix ``IPT: ACCEPT `` --log-level 7
iptables -A LOGACCEPT -j LOG --log-prefix "IPT: ACCEPT " --log-level 7
iptables -A LOGACCEPT -j ACCEPT
\end{verbatim}
\normalsize
Expand Down Expand Up @@ -770,8 +780,8 @@ \subsection{Options}
idetinfyin what he sees on the screen.

This is useful for real-time monitoring of any logged packets. It will
not affect the database in any way or store any data so all the
switches and parameters dealing with that has no effect when this mode
not affect the database in any way or store any data so all the switches and
parameters dealing with that has no effect when this mode
is employed.\\\hline

\texttt{-ai, --analyze-interactive} & \hilight{Not yet implemented.}
Expand Down Expand Up @@ -1067,7 +1077,7 @@ \subsection{Interface statistics}
useful as a marker and keep an eye on things in Interface statistics
general.

\scriptsize \begin{verbatim}
\footnotesize \begin{verbatim}
Count IF In Action Proto
------ ---------- ---------- -----
241 eth0 INVALID TCP
Expand Down Expand Up @@ -1107,7 +1117,7 @@ \section{Follow mode}
action taken on the packet. With the \texttt{--no-accept} flag the
system will skip any line with the action set to ACCEPT of course.

\scriptsize \begin{verbatim}
\tiny \begin{verbatim}
Count IF Source Port Destination Port Proto Action
-------- -------- ------------------------------ ----- ------------------------------ ----- ---------- ----------
1951 eth0 *6f44.cust.bredbandsbolaget.se 35396 zathras.ichimusai.org 15003 TCP DROP
Expand All @@ -1131,6 +1141,4 @@ \section{Follow mode}
1969 eth0 *6f44.cust.bredbandsbolaget.se 57365 zathras.ichimusai.org 1108 TCP DROP
1970 eth0 *6f44.cust.bredbandsbolaget.se 48566 zathras.ichimusai.org 8443 TCP DROP
\end{verbatim} \normalsize


\end{document}
6 changes: 4 additions & 2 deletions src/Makefile
Expand Up @@ -34,7 +34,10 @@ includes = /usr/include/mysql/
libs = /usr/local/mysql/lib/
link = mysqlclient

cflags = -O3 -Wall
width = -m64
#width = -m32

cflags = -O3 -Wall ${width}

# Actual targets here, main first, then all supporting objects please.

Expand Down Expand Up @@ -70,7 +73,6 @@ follow.o: follow.c ipta.h
config.o: config.c ipta.h
gcc ${cflags} -c config.c -L ${libs} -I ${includes}


# Special targets here

clean:
Expand Down

0 comments on commit 6eaedf8

Please sign in to comment.