Page 1 of 1
IP XXX with port 4900 to change to IP XXX with port 80
Posted: Tue Oct 26, 2010 6:59 pm
by 820
Please help with a "simple" question. I have a stream of traffic with IP 10.10.10.10 and port 4900 - need to change to same IP address 10.10.10.10 but with port 80. What's the easiest way to do this?
Re: IP XXX with port 4900 to change to IP XXX with port 80
Posted: Tue Oct 26, 2010 7:28 pm
by fewi
If the traffic is flowing through a router you can use destination NAT:
/ip firewall nat
add chain=dstnat dst-address=10.10.10.10 protocol=tcp dst-port=4900 action=dst-nat to-address=10.10.10.10 to-port=80
Re: IP XXX with port 4900 to change to IP XXX with port 80
Posted: Tue Oct 26, 2010 9:41 pm
by 820
Hi, Sorry that didnt work. Here is what we have needed (in more detail):
We have a UDP multicast stream of 234.5.90.113 on port 4900 which comes in on ether3, then routes through to ether4. We want that to continue to happen but just to change the port number to come out on ether4 as 234.5.90.113 on port 80
Thanks
Re: IP XXX with port 4900 to change to IP XXX with port 80
Posted: Tue Oct 26, 2010 10:01 pm
by fewi
I don't know that you can do that at all, but what did the configuration line you tried look like?
Re: IP XXX with port 4900 to change to IP XXX with port 80
Posted: Tue Oct 26, 2010 10:49 pm
by benwheway
hi,
Thanks for your reply
Im not quite sure what you mean, but the configuration line looked good, but it just didnt work.
Any ideas of what other command we could try? If we cant manipulate the multicast IP, can we manipulate the source LAN IP (10.10.10.10)?
Thanks
Re: IP XXX with port 4900 to change to IP XXX with port 80
Posted: Wed Oct 27, 2010 11:05 am
by benwheway
The script I tried was:
/ip firewall nat
add chain=dstnat dst-address=234.5.90.113 protocol=tcp dst-port=4900 action=dst-nat to-address=234.5.90.113 to-port=80
But it didnt work