astra relay

    Relay is an alternative to such well-known programs as UDP Proxy with some advanced features.

    Launch:

    astra --relay -p 8000
    After starting - relay is ready to work

    Launch options:

    --pass admin:admin - require authorization to access content (admin/admin).
    --buffer-size — the maximum buffer size for each client. Default 1024Kb
    --buffer-fill — buffer fill before sending data (minimum packet size), in kilobytes, default 128
    -a - external IP address.
    -l - the ip address of the multicast interface
    --daemon - start in daemon mode.
    --log - path to log file.

    Receive stream from relay:

    http://server_ip:8000/udp/253.34.14.11:1234 - UDP stream request from udp://253.34.14.11:1234
    http://server_ip:8000/http/192.168.3.2:7600 - HTTP stream request from http://192.168.3.2:7600

    create a file name.lua with the following content:

    channels = {
     ["СТБ"] = "udp://235.1.1.10:1234",
     ["Pervy"] = "udp://235.1.1.10:1234",
     ["Nashe_novooe_kino"] = "udp://235.1.1.10:1234",
     ["OTV"] = "udp://235.1.1.10:1234",
     ["Disney"] = "udp://235.1.1.10:1234",
    }
    

    Run relay with this file:
    astra --relay /etc/astra/name.lua -p 8000
    Streams will be available as follows: http://ip:8000/Disney

    Statistics:

    http://server_ip:relay_port/stat - displays current sessions.

    Example start string:

    astra --relay -a 89.185.8.35 -p 8000 -l 10.10.20.35 --log /var/log/astra_relay.log /etc/astra/name.lua --buffer-size 16384 --buffer-fill 512 --pass admin:admin --daemon