Community discussions

MikroTik App
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

[ASK] Filter Rules -> Connection State

Thu Nov 01, 2012 4:39 pm

According to this Mikrotik Wiki page...

http://wiki.mikrotik.com/wiki/Securing_your_router
/ ip firewall filter
add chain=input connection-state=established comment="Accept established connections"
add chain=input connection-state=related comment="Accept related connections"
add chain=input connection-state=invalid action=drop comment="Drop invalid connections" 
I'm just wondering why there is no NEW connection state?
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: [ASK] Filter Rules -> Connection State

Thu Nov 01, 2012 8:44 pm

According to this Mikrotik Wiki page...

http://wiki.mikrotik.com/wiki/Securing_your_router
/ ip firewall filter
add chain=input connection-state=established comment="Accept established connections"
add chain=input connection-state=related comment="Accept related connections"
add chain=input connection-state=invalid action=drop comment="Drop invalid connections" 
I'm just wondering why there is no NEW connection state?
Because you do NOT want to accept NEW connections! You only want to accept connections that you initiate from your network. That is how a SPI firewall works. If you send a request to the internet for something, then when it comes back it is "established or related", so it is allowed through. But, if something comes in that you did not request, then it is "new", and you want to block those!

Also, you should do those same 3 rules on the FORWARD chain as well.
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ASK] Filter Rules -> Connection State

Fri Nov 02, 2012 7:42 pm

According to this Mikrotik Wiki page...

http://wiki.mikrotik.com/wiki/Securing_your_router
/ ip firewall filter
add chain=input connection-state=established comment="Accept established connections"
add chain=input connection-state=related comment="Accept related connections"
add chain=input connection-state=invalid action=drop comment="Drop invalid connections" 
I'm just wondering why there is no NEW connection state?
Because you do NOT want to accept NEW connections! You only want to accept connections that you initiate from your network. That is how a SPI firewall works. If you send a request to the internet for something, then when it comes back it is "established or related", so it is allowed through. But, if something comes in that you did not request, then it is "new", and you want to block those!

Also, you should do those same 3 rules on the FORWARD chain as well.
then, where should I put the same 3 rules on the FORWARD chain? after the INPUT chain or before?
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: [ASK] Filter Rules -> Connection State

Fri Nov 02, 2012 7:44 pm

According to this Mikrotik Wiki page...

http://wiki.mikrotik.com/wiki/Securing_your_router
/ ip firewall filter
add chain=input connection-state=established comment="Accept established connections"
add chain=input connection-state=related comment="Accept related connections"
add chain=input connection-state=invalid action=drop comment="Drop invalid connections" 
I'm just wondering why there is no NEW connection state?
Because you do NOT want to accept NEW connections! You only want to accept connections that you initiate from your network. That is how a SPI firewall works. If you send a request to the internet for something, then when it comes back it is "established or related", so it is allowed through. But, if something comes in that you did not request, then it is "new", and you want to block those!

Also, you should do those same 3 rules on the FORWARD chain as well.
then, where should I put the same 3 rules on the FORWARD chain? after the INPUT chain or before?
FORWARD chain is completely separate from INPUT. in the upper right, change to forward instead of all.
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ASK] Filter Rules -> Connection State

Fri Nov 02, 2012 7:59 pm


FORWARD chain is completely separate from INPUT. in the upper right, change to forward instead of all.
sry, I dont get you...

You meant the order of the filter rule, right?
Where should I put the FORWARD chain? after or before the INPUT chain?
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: [ASK] Filter Rules -> Connection State

Fri Nov 02, 2012 9:02 pm

It does not matter, they are completely separate. You can change the view to see them mixed together, but that is just the view. You should change the view to ONLY show either input or forward at one time. That setting is in the upper right.

Sent from my DROID4 using Tapatalk 2
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ASK] Filter Rules -> Connection State

Sat Nov 03, 2012 8:39 am

It does not matter, they are completely separate. You can change the view to see them mixed together, but that is just the view. You should change the view to ONLY show either input or forward at one time. That setting is in the upper right.

Sent from my DROID4 using Tapatalk 2
oh I see... tq so much.. :D