Community discussions

MikroTik App
 
User avatar
tjohnson
Member Candidate
Member Candidate
Topic Author
Posts: 127
Joined: Thu Aug 12, 2004 7:01 am

blackhole rules

Tue Jun 06, 2006 3:23 am

I have setup some "blackhole" rules on one of my Mikrotik routers. However, it doesn't seem to be working correctly. I have it setup so it adds the src-address to an address list called "blackhole" if there is any traffic to a specific dst-address (i.e. 192.168.1.45). Then I have another rule to drop all packets in the address list "blackhole".

The problem we are seeing is a lot of places like Google, Yahoo mail, etc. are getting added to the blackhole list usually within an hour of having the rule setup.

Here are the two rules:

7 X ;;; Drop blackhole IP's
chain=forward src-address-list=blackhole action=drop

8 X chain=forward in-interface=ether1 src-address=!69.20.128.0/18
dst-address=192.168.1.45 action=add-src-to-address-list
address-list=blackhole address-list-timeout=1d

I was previously doing this same thing with an ETINC bandwidth manager box and never had problems of "false positives" from any locations (with it running for over a year).

Any help would be appreciated.
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Tue Jun 06, 2006 3:43 am

Is the IP address 192.168.1.45 the router that the users are passing through? If so, try adding an allow rule on the forward chain just above rule #8 to allow established connections.
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Tue Jun 06, 2006 4:44 am

What are you natting to 192.168.1.45? If its port 80 then you will see anyone and everyone getting blacklisted...

Sam
 
User avatar
tjohnson
Member Candidate
Member Candidate
Topic Author
Posts: 127
Joined: Thu Aug 12, 2004 7:01 am

Tue Jun 06, 2006 5:47 am

No, I only used 192.168.1.45 as an example. It's a real IP address on our network (not on the router) that has no device associated with it.

The idea is someone scanning our network will hit that IP and then be blocked for 1 day.
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Tue Jun 06, 2006 7:52 am

I wonder if a broadcast from the client might be tripping this? It doesn't seem like it should, but I really don't see how else it could get triggered. Do clients get blocked soon after being connected, or is it random?
 
User avatar
tjohnson
Member Candidate
Member Candidate
Topic Author
Posts: 127
Joined: Thu Aug 12, 2004 7:01 am

solution

Tue Jun 06, 2006 10:45 pm

Hi,

I found the problem... one of our customers had transposed the numbers on their IP address (we use static IP's) and was trying to use an IP that was in the blackhole list.

Thanks for all the help.

Travis

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], kanecharles and 192 guests