View Single Post
Old 09-15-07, 12:41 PM   #2
Q
 
Join Date: Sep 2004
Posts: 7,808
Default Re: iptables port forward (multi dport)

Quote:
Originally Posted by evilghost
I need to forward incoming UDP 514 to UDP 514 and UDP 5141 using iptables. Any ideas? I've already tried tcprewrite/tcpreplay and I can see the traffic over tcpdump but the listening socket on 5141 never gets it, even tried with nc -l -u -p 5141.

tcpdump -s0 -w - -U "host 10.1.99.182 and udp dst port 514"|tcprewrite --portmap=514:5141 --infile=- --outfile=-|tcpreplay --intf1=eth0 -
What sort of hardware do you have between the origin and destination. Made sure you didn't have any limiting policies on a switch or anything?
Q is offline   Reply With Quote