[8] | 1 | ---------------------- |
---|
| 2 | | Install | |
---|
| 3 | ---------------------- |
---|
| 4 | |
---|
| 5 | tar xvzf renetcol-0.0.2.tar.gz |
---|
| 6 | cd renetcol-0.0.2 |
---|
[2] | 7 | ./configure |
---|
[8] | 8 | (before the make command you MUST change some values in renetcol.h, see below) |
---|
[2] | 9 | make |
---|
| 10 | make install (if you want) |
---|
| 11 | |
---|
[8] | 12 | -------------------------------------- |
---|
| 13 | | Collector requirements before compil | |
---|
| 14 | -------------------------------------- |
---|
[2] | 15 | |
---|
[8] | 16 | Change the following values in renetcol.h *REQUIRED*: |
---|
| 17 | #define RECEPTION_ADDRESS "10.0.0.1" |
---|
| 18 | #define RECEPTION_PORT 9999 |
---|
| 19 | (this two values are the values configured on your routers to export Netflow |
---|
| 20 | datagrams) |
---|
[2] | 21 | |
---|
[8] | 22 | -------------------------------------- |
---|
| 23 | | Collector requirements before start | |
---|
| 24 | -------------------------------------- |
---|
| 25 | |
---|
| 26 | - create your IPv4 prefix file (or keep the default for test: |
---|
| 27 | IPv4_prefix.txt, in this release the file must be present with a good syntax, |
---|
| 28 | but data are not important) |
---|
| 29 | - create your router list file *REQUIRED* (exemple in src/routers.txt): |
---|
| 30 | syntax: <id> <name> <first IPv4 address> <second IPv4 or NULL> |
---|
| 31 | keep this first line: 0 null 0.0.0.0 null |
---|
| 32 | |
---|
| 33 | Note: no comment line in this two files. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | ---------- |
---|
| 37 | | Commands | |
---|
| 38 | ---------- |
---|
| 39 | |
---|
| 40 | ./renetcol ... : launch the collector (you must be root) |
---|
| 41 | ./renetcolSender ... : to use remote client |
---|
| 42 | ./renetcolMsgCtl ... : to kill the message queue if you kill renetcol |
---|
| 43 | |
---|
| 44 | ------------------- |
---|
| 45 | | Commands exemples | |
---|
| 46 | ------------------- |
---|
| 47 | |
---|
| 48 | colnet:/tmp/renetcol_user/src# ./renetcol routers.txt IPv4_prefix.txt rules.txt |
---|
| 49 | |
---|
| 50 | colnet:/tmp/renetcol_user/src# ./renetcolSender renetcol 1 rules.txt |
---|
| 51 | |
---|
| 52 | colnet:/tmp/renetcol_user/src# killall renetcol |
---|
| 53 | colnet:/tmp/renetcol_user/src# killall renetcolSender |
---|
| 54 | colnet:/tmp/renetcol_user/src# ./renetcolMsgCtl renetcol |
---|
| 55 | |
---|
| 56 | ---------------------------------- |
---|
| 57 | | Use the client tool (python+GTK) | |
---|
| 58 | ---------------------------------- |
---|
| 59 | |
---|
[2] | 60 | on Linux: |
---|
| 61 | cd tool |
---|
[8] | 62 | python renetcolGUI_0_0_2.py |
---|
[2] | 63 | on Win32: |
---|
[8] | 64 | copy the file renetcolGUI_0_0_2.py on your system |
---|
[2] | 65 | install python, GTK and requirements: |
---|
| 66 | for python: |
---|
| 67 | http://www.python.org/ download section |
---|
| 68 | the last release is the 2.4.1 (python-2.4.1.msi) |
---|
| 69 | for pyGTK: |
---|
| 70 | http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ |
---|
| 71 | section pygtk on win32 |
---|
| 72 | last release is pygtk 2.6 (pygtk-2.6.2-2.win32-py2.4.exe) |
---|
| 73 | for GTK+: |
---|
| 74 | http://gladewin32.sourceforge.net/ |
---|
| 75 | last release 2.6.8 (Runtime Environment Installer 2.6.8-rc1) |
---|
| 76 | |
---|
[8] | 77 | Collector (renetcolSender) and remote client communication *REQUIRED*: |
---|
| 78 | you MUST change few values in the renetcolGUI_0_0_2.py file: |
---|
| 79 | - line 28 : path to GTK |
---|
| 80 | - line 47 to 53 : IP protocol choice and collector address |
---|
[2] | 81 | |
---|
[8] | 82 | *REQUIRED* In this release (0.0.2) the client tool host MUST be have a |
---|
| 83 | reverse DNS for his name. If not the collector will not be able to |
---|
| 84 | communicate with the client. Explication: the rules are registered on the |
---|
| 85 | collector in the conf file (rules.txt) in such way: |
---|
| 86 | N 53.renater.fr |
---|
| 87 | O socket 53.renater.fr 2222 |
---|
| 88 | C 60 = 6 |
---|
| 89 | It's not a requirement for rules applied directly in this file (with an |
---|
| 90 | editor). |
---|
| 91 | |
---|
| 92 | Note: For your first action from the client to the collector it's |
---|
| 93 | possible to have a delay (>20s, it depends on the delay between two template |
---|
| 94 | definition). This delay desappears after. |
---|