Skip to content

Example: HEP Relay

Lorenzo Mangani edited this page Feb 18, 2018 · 7 revisions

HEP Relay

Pastash can be leveraged as a HEP UDP/TCP Switch and Multi-Plexer.

Installation

# sudo npm install -g pastash

Recipes

UDP Forwarder
input {
  udp {
    host => 127.0.0.1
    port => 9060
  }
}

output {
  udp {
    host => 10.0.0.1
    port => 9060
  }
  udp {
    host => 10.0.0.2
    port => 9061
  }
}
TCP Forwarder
input {
  tcp {
    host => 127.0.0.1
    port => 9060
  }
}

output {
  tcp {
    host => 10.0.0.1
    port => 9060
  }
  tcp {
    host => 10.0.0.2
    port => 9061
  }
}
Hybrid Forwarder
input {
  udp {
    host => 127.0.0.1
    port => 9060
  }
}

output {
  udp {
    host => 10.0.0.1
    port => 9060
  }
  tcp {
    host => 10.0.0.2
    port => 9061
  }
}
Clone this wiki locally