Git Product home page Git Product logo

serinus's Introduction

Serinus

This is just a quick README on using the various ansible playbooks and perl file to create network flow diagrams.

Pre-Reqs

  • The target hosts either need to have already tcpflow installed or are subscribed to the EPEL repo for them to be installed.
  • The HTML is created in /var/www/html/tcpflow on the localhost. It is already assumed that the local host has httpd installed and running
  • The perl script requires 2 modules:
    • XML::LibXML
    • Net::DNS
  • These can be installed by running
    • yum -y install "perl(XML::LibXML)" "perl(Net::DNS)"
  • There are currently some hard wired links which need to be made dynamic. For example, the perl script location is hard coded in generateReport.yml
  • PLEASE, PLEASE, PLEASE don't just run this on a production environment! It's not yet ready for live release and could cause all kinds of problems. Try it out in a local lab setup first.

Workflow

The current workflow is as follows:

  • Create an ansible inventory file of hosts to be analysed (either FQDN or IPs)
    [serinus]
    192.168.122.117
    192.168.122.137
    192.168.122.1
  • Run the tcpflow.yml (currently defaults to use all in inventory)
  • ansible-playbook -i inventory tcpflow.yml
  • This will do the following:
    • Find all open ports of each host
    • Create a tcpflow directory in /var/tmp
    • Check if tcpflow is already running
    • If not running, start it running
    • If tcpflow running, stop it and fetch xml file from remote host to localhost

Once you have all the results in /var/tmp/ on you localhost, you can then run generateReport.yaml. This will parse all the tcpflow-report-* .xml files in /var/tmp then run the processFlow.pl script on each of them

ansible-playbook -i inventory generateReport.yml

Output

You should then end up with the output files in /var/www/html/tcpflow

Screenshot

To see the results, visit: https://localhost/tcpflow

serinus's People

Contributors

boogiespook avatar

Watchers

 avatar  avatar

serinus's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.