Community discussions

MikroTik App
 
NoX
just joined
Topic Author
Posts: 2
Joined: Sat Feb 20, 2016 9:05 am

iptables "-j TEE" functionality needed

Wed Feb 24, 2016 4:41 am

I have 951Ui-2HnD with OS v6.34.2 installed. Really need to redirect/clone broadcast packets, coming from LAN on specified UDP port to specified address behind some router. IP->Firewall->Mangle rules does not have "Action" that can do it. There is almost similar actions: "sniff PC" and "sniff TZSP", but them is not just routing the packet itself, but transferring packet by Wireshark protocol, which is not what I need. For better understanding I will bring 2 examples of solving the task in other systems:

Linux iptables:
iptables -t mangle -A PREROUTING -i br0 -m addrtype --dst-type BROADCAST -p udp -m udp --dport 475 -j TEE --gateway 172.16.250.10
(not flexible solution: will clone a packet and redirect this clone to another machine on the local network segment, in other words, can not route cloned packet (but in worst case, I can try to adopt this))

cisco ios:
interface GigabitEthernet0/0
ip helper-address 172.16.250.10
!
ip forward-protocol udp 475
(not flexible solution: it can redirects only broadcasts (but still enough for my specific task))

But we have only RB951Ui-2HnD there, so I need to do redirect with Mikrotik. I think I need to post a feature request somewhere...
Last edited by NoX on Wed Feb 24, 2016 6:00 am, edited 1 time in total.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: iptables "-j TEE" functionality needed

Wed Feb 24, 2016 5:07 am

use NAT not mangle.
 
NoX
just joined
Topic Author
Posts: 2
Joined: Sat Feb 20, 2016 9:05 am

Re: iptables "-j TEE" functionality needed

Wed Feb 24, 2016 5:28 am

I've tried. NAT isn't working because broadcasts is not coming to NAT chains.
 
coylh
Member Candidate
Member Candidate
Posts: 159
Joined: Tue Jul 12, 2011 12:11 am

Re: iptables "-j TEE" functionality needed

Wed Feb 24, 2016 10:32 am

 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: iptables "-j TEE" functionality needed

Wed Feb 24, 2016 10:28 pm

I have done this myself in the past and it works. You might need to modify your selections - post your rules you tried and the src:port -> dst:port pairs so we can see.
 
CateFul
just joined
Posts: 16
Joined: Tue Jan 27, 2015 10:58 pm

Re: iptables "-j TEE" functionality needed

Tue Mar 06, 2018 4:50 am

Sorry for resurrecting an old thread but I second the OP's request.
Port mirroring works but it clones all traffic which adds unwanted network load.
I tried NAT but could not figure out how to do it. I thought NAT would forward the original packet to the NATed destination but not to its original destionation? i.e not a packet clone but a forward
A clone meaning the packet would be duplicated exactly, without any modification, one sent to its intended destination and the other one send to a second destination.

Any idea how this can be done in Mikrotik? Sniffer is not an option as it repacks packets into TZSP.
 
kiwibrew
just joined
Posts: 13
Joined: Tue Oct 04, 2011 3:08 am

Re: iptables "-j TEE" functionality needed

Mon Aug 19, 2019 8:27 am

I'm also looking to solve this problem, taking all inbound UDP packets on a particular port & sending them on to two destinations.
 
CsXen
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed Sep 10, 2014 8:31 pm
Location: Budapest - Hungary

Re: iptables "-j TEE" functionality needed

Tue Oct 15, 2019 11:37 pm

Hi.
You need and old router with big memory. Than you need to install 2 meta-router inside. :)
These metarouters can receive multicast streams, and convert it to unicast stream... one per metarouter.
Two metarouter, two streams. :)

Best regards: CsXen
 
PandaArea
just joined
Posts: 11
Joined: Thu Jan 09, 2020 7:35 am

Re: iptables "-j TEE" functionality needed

Thu Feb 20, 2020 6:10 am

UP,need tee。
 
PandaArea
just joined
Posts: 11
Joined: Thu Jan 09, 2020 7:35 am

Re: iptables "-j TEE" functionality needed

Fri Mar 20, 2020 6:55 pm

+1
tee
 
PandaArea
just joined
Posts: 11
Joined: Thu Jan 09, 2020 7:35 am

Re: iptables "-j TEE" functionality needed

Sun Apr 12, 2020 11:18 am

+1 tee
 
asy
newbie
Posts: 45
Joined: Thu Oct 18, 2012 2:26 pm

Re: iptables "-j TEE" functionality needed

Sat Jul 18, 2020 11:33 am

Sometimes it is inconvenient to use Switch Chip. TEE functionality would be useful.
 
RealMcCoy
just joined
Posts: 4
Joined: Thu Apr 21, 2022 5:19 am

Re: iptables "-j TEE" functionality needed

Thu Apr 06, 2023 7:25 am

+1 tee functionality would be really good

Who is online

Users browsing this forum: Bing [Bot] and 22 guests