5

is there any way to duplicate incoming udp traffic on port 162 and forward to multi ports like 162 itself and 1600? I was checking iptables but it seems only able to redirect to a single port/host.

Thx Luke

4 Answers 4

3

There is an experimental TEE target to iptables' mangle table which is part of the Xtables-addons (ex patch-o-matic) which is able to copy a packet without changes to another gateway. There you could NAT to another port, if still needed.

1

flow-fanout will do what you want:

http://www.splintered.net/sw/flow-tools/docs/flow-fanout.html

1
  • it likely won't - flow-fanout is to replicate NetFlow exports, not generic UDP data.
    – the-wabbit
    Feb 23, 2013 at 7:59
1

I'm pretty sure you can also configure net-snmp as a trap receiver to relay traps to other devices if you have multiple monitoring stations you are trying to send data to.

1

I just found samplicator which also seems to do this.

1
  • +1 for samplicator - it appears to be exactly what we need for duplicating statsd traffic to ensure HA on our Graphite solution.
    – Saustrup
    Jul 4, 2017 at 12:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .