Community discussions

MikroTik App
 
Gregy
just joined
Topic Author
Posts: 11
Joined: Mon May 29, 2006 8:46 pm

ICMP connections, bypass QoS?

Tue Sep 04, 2007 7:39 pm

Hi,
today I found out that one of our access points is running at 6Mbit. This is not usual so I investigated and I found out that one user is downloading 6Mbit by ICMP. On main router there is queue for him. It is set up as any other and is functional. It goes red (full use of link, he has a max of 512kbits) but he is still downloading/uploading 6Mbit (mangle is counting packets well, it shows 6Mbit in graph in mangle rule). I am able to stop it only by firewall (drop all from/to this ip) but not if I kill only ICMP traffic (torch is telling me that it is ICMP traffic). Help please.
 
unlimitedme
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Tue Apr 24, 2007 1:01 pm

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 9:23 am

downloading via ICMP?
please explain it.
 
Gregy
just joined
Topic Author
Posts: 11
Joined: Mon May 29, 2006 8:46 pm

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 11:10 am

There are 3 connections to internet from the ip of the customer each with 2Mbit traffic and torch tells me that these connections are ICMP.
 
plcoomer
newbie
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 2:40 pm

Using any network monitoring software like Intermapper etc?... sounds almost like LOOP
 
Gregy
just joined
Topic Author
Posts: 11
Joined: Mon May 29, 2006 8:46 pm

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 2:58 pm

What loop? The connections lead to three different network addresses. The connections stop when I disconnect the client from AP. I am not using any monitoring sw except of snmp.
 
User avatar
t3rm
Member Candidate
Member Candidate
Posts: 143
Joined: Sat Aug 04, 2007 1:57 pm
Location: Bandung - WJ - Indonesia

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 8:49 pm

This is cool !!
I think your users using some kind of VPN over ICMP.

Just wonder where can i get ICMP VPN .. :lol:

For you to shape the ICMP, you can user Queue Tree and use mangling to push the ICMP packets to queue in the class you described.

Hope this will help.
 
Gregy
just joined
Topic Author
Posts: 11
Joined: Mon May 29, 2006 8:46 pm

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 9:05 pm

But I am doing that, the point is that even if mangle rule works correctly (mangles the packet) the Queue doesn't shape it. It is comming thru just like without any shaper.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 9:12 pm

Is it a ddos attack participant ? what type of ICMP ?

You can use firewall filter to drop / limit the number of ICMP that they are using. If you drop 1 out of 5 packets or so it will probably be less useful and they will stop. If its straight abusive icmp i would just drop it completely. use a good icmp firewall chain to stop stuff like that.

jump to the icmp chain from your input and forward chains:

add chain=ICMP action=accept protocol=icmp icmp-options=8:0-255 limit=20,20 \
comment="8:0 and limit for 5pac/s \(Echo - No Code\)" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=3:3 limit=30,5 \
comment="3:3 and limit for 5pac/s \(Port Unreachable\)" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=11:0 limit=50,20 \
comment="11:0 and limit for 5pac/s \(TTL Exceeded\)" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=0:0-255 limit=20,20 \
comment="0:0 and limit for 5pac/s \(Echo Reply\)" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=3:0 limit=5,5 \
comment="3:0 and limit for 5pac/s \(Net Unreachable\)" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=3:1 limit=5,5 \
comment="3:1 and limit for 5pac/s \(Host Unreachable\)" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=3:4 limit=5,5 \
comment="3:4 and limit for 5pac/s \(Frag Not Needed\)" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=3:13 limit=5,5 \
comment="3:13 and limit for 5pac/s" disabled=no
add chain=ICMP action=accept protocol=icmp icmp-options=3:10 limit=5,5 \
comment="3:10 and limit for 5pac/s" disabled=no
add chain=ICMP action=log protocol=icmp limit=1,2 log-prefix="" comment="log \
it" disabled=no
add chain=ICMP action=drop protocol=icmp comment="Drop everything else" \
disabled=no

you may have to adjust your limits depending on the size of your network and the type of traffic you expect. this is from a cable modem network so the limits might be a little low.

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

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 9:13 pm

you can also limit the size of the icmp packets in firewall filter, if they are same size or higher than average.
 
Gregy
just joined
Topic Author
Posts: 11
Joined: Mon May 29, 2006 8:46 pm

Re: ICMP connections, bypass QoS?

Wed Sep 05, 2007 10:58 pm

I have such rules but only in input chain, I don't care what are people sending to internet. I just want to limit their speed. The queue is set up right (i think) but it is not catching this type of traffic. Maybe it is bug in Mikrotik.

Who is online

Users browsing this forum: elico and 101 guests