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.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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.
flow-fanout will do what you want:
I just found samplicator which also seems to do this.