The following example module won’t do anything but dumping the data being transmitted from/to the target, you can access the object in order to modify the data on the fly.

    If you want to load such module and dump all the ( let’s say ) MySQL traffic from/to the mysql.example.com host you would do:


    Options

    --tcp-proxy

    Enable the TCP proxy ( requires other --tcp-proxy-* options to be specified ).

    --tcp-proxy-module MODULE

    Ruby TCP proxy module to load.

    --tcp-proxy-upstream-address ADDRESS

    Set TCP proxy upstream server address.

    --tcp-proxy-upstream-port PORT

    Set TCP proxy upstream server port.

    --tcp-proxy-upstream ADDRESS:PORT