IP XXX with port 4900 to change to IP XXX with port 80

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?

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

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

I don’t know that you can do that at all, but what did the configuration line you tried look like?

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

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 :frowning: