Community discussions

MikroTik App
 
johnp2
just joined
Topic Author
Posts: 5
Joined: Fri May 01, 2009 3:44 pm

Firewall (basic rules) slow down routing performance?

Sun May 03, 2009 1:45 pm

Hi All,

I'm using RouterOS 3.20 on a dual core 2.4GHz, 512MB, Gb interfaces box.
I'm experiencing slow network routing performance when I use a few basic firewall rules (port blocks to/from specific IP addresses).
This was proven by conducting simple network load with pings (6Kb, ~200 times) gave a 6% up to 10% loss, and when I test using file copy (~2-3Mb) gave me 50 seconds
Then after I disabled the firewall, the loss from the pings was down to 0% and the file copy is faster up to 20-30 seconds.

I was wondering is there anything I should to do to tune up the firewall performance? Since the box system resource showed a lot of idle resources (470Mb free memory, 30% CPU peaks)

Thanks for the responses guys....
 
User avatar
skillful
Trainer
Trainer
Posts: 552
Joined: Wed Sep 06, 2006 1:42 pm
Location: Abuja, Nigeria
Contact:

Re: Firewall (basic rules) slow down routing performance?

Sun May 03, 2009 6:10 pm

The information given is too sketchy, please post your firewall rules for us to see and analyze
 
johnp2
just joined
Topic Author
Posts: 5
Joined: Fri May 01, 2009 3:44 pm

Re: Firewall (basic rules) slow down routing performance?

Tue May 05, 2009 11:24 am

Hi guys,

attached is my firewall configuration. hopefully it's clear enough
thanks.
You do not have the required permissions to view the files attached to this post.
 
johnp2
just joined
Topic Author
Posts: 5
Joined: Fri May 01, 2009 3:44 pm

Re: Firewall (basic rules) slow down routing performance?

Thu May 07, 2009 6:01 am

hi guys, any comment ?
how can we measure firewall effect to the performance ? by set of rules ?
 
User avatar
Letni
Member
Member
Posts: 376
Joined: Tue Dec 05, 2006 5:16 am
Location: South Carolina

Re: Firewall (basic rules) slow down routing performance?

Thu May 07, 2009 6:17 am

Add these to the top of your list. It should help with performance.
/ip firewall filter
add chain=forward connection-state=established comment="allow established connections"  
add chain=forward connection-state=related comment="allow related connections"
add chain=forward connection-state=invalid action=drop comment="drop invalid connections"  
You will also want to add them to your input chain.

-Louis
 
johnp2
just joined
Topic Author
Posts: 5
Joined: Fri May 01, 2009 3:44 pm

Re: Firewall (basic rules) slow down routing performance?

Thu May 07, 2009 11:28 am

Louis, thanks! I added them to my firewall rules.
anyway, how can we measure on network throughput capability of mikrotik router?
Do the resource meters (CPU load, memory) can represent the actual network throughput performance?
 
User avatar
Letni
Member
Member
Posts: 376
Joined: Tue Dec 05, 2006 5:16 am
Location: South Carolina

Re: Firewall (basic rules) slow down routing performance?

Thu May 07, 2009 2:20 pm

The standard for measuring throughput for a mikrotik router is:

Download the bandwidth test tool from this page http://www.mikrotik.com/download.html onto 2 computers that are directly connected to the router. Start one up and go into settings and check 'Server Enabled'. Then on the second machine, run the tool and put in the IP of the first machine. You can change some of the settings (Protocol,Direction) for specific testing.

CPU of the RB will be the main limitation.

-Louis
 
johnp2
just joined
Topic Author
Posts: 5
Joined: Fri May 01, 2009 3:44 pm

Re: Firewall (basic rules) slow down routing performance?

Fri May 08, 2009 5:40 am

Thanks... I try this on. great..!
 
cas3ter01
just joined
Posts: 18
Joined: Mon Jun 08, 2009 9:21 pm

Re: Firewall (basic rules) slow down routing performance?

Mon Jun 08, 2009 9:59 pm

Who is online

Users browsing this forum: No registered users and 46 guests