3proxy Traffic Correction Plugin

3proxy logs and counts traffic at the application level, while providers usually do so at the network or link level. This is significant if you use 3proxy for billing, especially in cases where network packets are small, e.g., online games.

This plugin attempts to correct 3proxy's computations to approximate network or link-level traffic by using either fixed coefficients by port number or by attempting to predict the number and sizes of network packets.

Usage:

  1. Extract TrafficPlugin.dll to the same folder as the 3proxy executable.
  2. Start the plugin in 3proxy.cfg with:
    plugin TrafficPlugin.dll start
    
  3. Add correction rules:
    FOR FIXED COEFFICIENTS MODE:
    trafcorrect m <service> <target port> <coefficient>
    
    where <service> - one of proxy, socks4, socks45, socks5, tcppm, udppm, pop3p; * matches "any".
    <target port> - target port; * matches any
    <coefficient> - coefficient to multiply traffic for this port.
    FOR PACKET HEADER PREDICTION MODE:
    trafcorrect p <service> <tcp/udp> <target port> [empty packet size]
    
    tcp or udp - transport-level protocol to apply the rule to
    empty packet size - average size of an "empty" packet, i.e., the sum of average network/transport headers. You can use a network sniffer such as Ethereal to discover it. Usually, the packet size is 42 for UDP and
    Modes can be mixed.
    The plugin creates a list of rules; the first matching rule will be applied.
For any mode, the plugin approximates traffic; the logged or counted amount is not exact.

Example:

plugin "TrafficPlugin.dll" start
trafcorrect m socks5 6112 4.5
trafcorrect m socks5 * 1.1
Wrong usage:
trafcorrect m socks5 * 1.1
trafcorrect m socks5 6112 4.5
The second rule will never be applied.

Download:

© Maslov Michael aka Flexx(rus)