Community discussions

MikroTik App
 
820
just joined
Topic Author
Posts: 16
Joined: Mon Apr 05, 2010 7:23 pm

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

Tue Oct 26, 2010 6:59 pm

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?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Tue Oct 26, 2010 7:28 pm

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
 
820
just joined
Topic Author
Posts: 16
Joined: Mon Apr 05, 2010 7:23 pm

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

Tue Oct 26, 2010 9:41 pm

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
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Tue Oct 26, 2010 10:01 pm

I don't know that you can do that at all, but what did the configuration line you tried look like?
 
benwheway
just joined
Posts: 13
Joined: Mon Jun 07, 2010 3:53 pm

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

Tue Oct 26, 2010 10:49 pm

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
 
benwheway
just joined
Posts: 13
Joined: Mon Jun 07, 2010 3:53 pm

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

Wed Oct 27, 2010 11:05 am

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

Who is online

Users browsing this forum: No registered users and 5 guests