beelives / tzsp-proxy

Script to receive TZSP packets, decapsulate them and forward them to a local listener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TZSP Proxy

Problem

There are situation where it is not possible to have sensor (TAP) connected to a SPAN port, but there is the ability to capture traffic using a third party device, like MikroTik, that support TZSP. With a few simple rules, it is possible to capture the desired traffic, and forward it to a sensor. The problem is that most sensor do not understand TZSP encapsulation natively!

Solution

This scripts resolves the problem but acting as a listener for TZSP, decapsulates them, and forwards them to the listening promiscious interface.

Use Case

This script can be used with applications like Zeek, Surricata, Snort, or other platforms that use such tools like Security Onion.

Warranty

This script is provided as is without warranty. In some cases, the script can crash and I have not investigated this further, so I have a watchdog script to monitor and restart it accordingly.

About

Script to receive TZSP packets, decapsulate them and forward them to a local listener

License:GNU General Public License v3.0


Languages

Language:Python 90.5%Language:Shell 9.5%