Community discussions

MikroTik App
 
User avatar
jibanes
newbie
Topic Author
Posts: 30
Joined: Sun Mar 25, 2012 8:13 am

Logging incoming traffic

Sat Mar 09, 2024 6:09 am

One of my sites is undergoing some increase in anomalous traffic activity pointed at one of our ingress endpoints (a mikrotik router.)

* Is it possible to mirror an interface traffic so I can do further analysis on the ingress traffic?

* Can I log all SYN packets ingressing to an interface?

Thank you!
 
jack5253
just joined
Posts: 1
Joined: Fri Feb 16, 2024 12:52 am

Re: Logging incoming traffic

Sat Mar 09, 2024 5:03 pm

Absolutely! You can mirror traffic from one interface to another on your MikroTik router using the Packet Sniffer feature. Simply navigate to the Tools menu, select Packet Sniffer, and choose the desired interfaces. This allows you to monitor traffic without disrupting the original flow. Additionally, you can log SYN packets ingressing to an interface by creating a firewall rule in the router's settings. Specify the protocol, destination port, and action to log, enabling you to analyze incoming SYN packets for potential issues pinny fix
Last edited by jack5253 on Mon Mar 11, 2024 4:10 am, edited 1 time in total.
 
User avatar
jibanes
newbie
Topic Author
Posts: 30
Joined: Sun Mar 25, 2012 8:13 am

Re: Logging incoming traffic

Sat Mar 09, 2024 11:51 pm

like this?
/ip firewall filter add action=passthrough chain=input comment="Syn from outside" connection-state=new in-interface=ether1 log=yes log-prefix="syn from outside"
and make this rule the first rule of the list.
 
rplant
Member
Member
Posts: 320
Joined: Fri Sep 29, 2017 11:42 am

Re: Logging incoming traffic

Sun Mar 10, 2024 1:31 am

For the mirror interface, there is also the possibility of using the Switches mirroring function.
(Needs to be a router with a switch chip which is many/most of them)

Need to ensure the destination port is on the same switch as the source port.
In cases where the router has more than 1 switch chip.

Who is online

Users browsing this forum: mkx and 20 guests