View Single Post
Old 09-14-07, 09:15 AM   #1
evilghost
Registered User
 
Join Date: Jul 2005
Posts: 3,606
Default iptables port forward (multi dport)

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 -
evilghost is offline   Reply With Quote