Language Selection

English French German Italian Portuguese Spanish

Monitoring network traffic with Ruby and Pcap

Filed under
HowTos

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.

Full Article.

More in Tux Machines

Red Hat OpenStack Platform

The adoption of OpenStack in production environments has burgeoned, necessitating increased requirements for enhanced management and seamlessly integrated enterprise capabilities. Numerous enterprises worldwide rely on Red Hat's offerings in the OpenStack space—that is, Red Hat OpenStack Platform, a highly scalable, open Infrastructure-as-a-Service (IaaS) platform designed to deploy, scale and manage private cloud, public cloud and Network Functions Virtualization (NFV) environments. Read more

PayPal Reduces Costs 10x With Open Source CI

The bigger you are, the more small efficiencies add up. Manivannan Selvaraj's talk from LinuxCon North America gives us a detailed inside view of how PayPal cut operating costs by a factor of ten, while greatly increasing performance and user convenience. Everything has to be fast now. We can't have downtimes. No going offline for maintenance, no requesting resources with a days-long ticketing process. Once upon a time virtual machines were the new miracle technology that enabled more efficient resource use. But that was then. Selvaraj describes how PayPal's VMs were operating at low efficiency. They started with a single giant customized Jenkins instance running over 40,000 jobs. It was a single point of failure, not scalable, and inflexible. Read more

Turn Raspberry Pi 3 Into a Powerful Media Player With RasPlex

I have hundreds of movies, TV shows and music that I have bought over the years. They all reside on my Plex Media Server. Just like books, I tend to buy these works and watch them once in awhile, instead of relying on "streaming" services like Netflix where content isn’t always available forever. If you already have Plex Media Server running, then you can build an inexpensive Plex Media Player using Raspberry Pi 3 and RasPlex. Plex Media Server is based on open source Kodi (formerly XBMC), but is not fully open source. Plex Media Center has a friendly interface and it’s very easy to set up a media center (See our previous tutorial on how to install it on a Raspberry Pi 3 or on another dedicated Linux machine). Read more

7 Linux predictions for 2017

Last year I made a set of predictions of events that I thought would happen in the tech world (focused primarily on Linux and free software). I was mostly right. This has emboldened me to make another set of predictions for 2017. I have no inside knowledge on any of these—I am basing this entirely on the twin scientific principles of star maths and wishy thinking. Read more