Librenix  
(Show all Ruby articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Monitor network traffic with Ruby and Pcap

Up
vote
Down

Use Ruby and the libpcap library to record the URL's accessed...
There are many situations where the ability to monitor network traffic can save a lot of time and effort. If you want to reverse engineer a network protocol, keep an eye on junior's browsing habits, or blackmail your evil boss, Ruby and libpcap can make it easy! Libpcap is a packet sniffing library originally designed by the Lawrence Berkeley National Laboratory for use with their tcpdump utility. With this excellent Ruby binding for libpcap, you can monitor traffic all over your network with only a few simple lines of code. Let's start with a simple script that will display the URLs of remote files accessed by local network users via web browser.
 read more | mail this link | score:7582 | -Ray, October 8, 2005
More Sysadmin articles...

Buy Large Wall Art Prints

admin headlines

Setup Dashboard and VNC console on Two Node Controller+Compute Neutron GRE+OVS+Gluster Fedora 20 Cluster

Gluster 3.4.2 on Two Node Controller+Compute Neutron GRE+OVS Fedora 20 Cluster

Using ngx_pagespeed With nginx On Debian Jessie/testing

10 basic examples of Linux ps command

Running SilverStripe On Nginx (LEMP) On Debian Wheezy/Ubuntu 13.04

Step By Step Ubuntu 13.04 (Raring Ringtail) LAMP Server Setup

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin