Community discussions

MikroTik App
 
luckybuilding
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 50
Joined: Sun Feb 05, 2012 12:57 am

Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 12, 2020 1:34 pm

Hi all,
I usually drop all forwards as the last rule and allow only known tracked traffic. Now, I have an strange problem for creating a rule for allowing ping from one server to another.
I should be able to do this using this rule:
add action=accept chain=forward comment=Ping protocol=icmp src-address=192.168.9.220
allowing it to ping everywhere.
But, additionally I need to add the following rule to make it work:
add action=accept chain=forward comment=Established connection-state=established dst-address=192.168.9.220
Can you help me understand the problem? Why should I add this "connection-state=established" rule?

Thanks
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 12, 2020 1:56 pm

Hi all,
I usually drop all forwards as the last rule and allow only known tracked traffic. Now, I have an strange problem for creating a rule for allowing ping from one server to another.
I should be able to do this using this rule:
add action=accept chain=forward comment=Ping protocol=icmp src-address=192.168.9.220
allowing it to ping everywhere.
But, additionally I need to add the following rule to make it work:
add action=accept chain=forward comment=Established connection-state=established dst-address=192.168.9.220
Can you help me understand the problem? Why should I add this "connection-state=established" rule?

Thanks

The first rule will allow from the source IP Address, but will not allow the return traffic, i.e. ping reply packets.

The 2nd rule will allow this, as the reply packets is seen as part of the sent packets, i.e. related / established
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19352
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 12, 2020 4:27 pm

Hmmmm,, not quite sure I buy that!

My understanding is that a firewall rule traffic allowing traffic from one subnet to another (for example vlanA to printer on vlanB) means that
VlanA can initiate traffic and reach VlanB. The key being originate!!
The return traffic from VlanB in response to a query from VlanA, is supposed to be allowed (as this traffic is IN RESPONSE and NOT originated on VlanB).

originated = unsolicited.

I have no doubt that you are right, but you have to do a much better sell job to convince me!!! I am all ears!!

(as for the OP, I would suggest trying to identify a destination address and then see if it works, as allowing somebody to SEND (to anywhere) may be too vague?
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 12, 2020 4:37 pm

The return traffic from VlanB in response to a query from VlanA, is supposed to be allowed
It would with default firewall. But there can be something completely different now.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19352
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 12, 2020 4:59 pm

Anav translating Sob's post for the OP.

Hello Mr OP, please provide the effing config ( I said please but I know what you were thinking)

/export hide-sensitive file=anynameyouwish
 
luckybuilding
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 50
Joined: Sun Feb 05, 2012 12:57 am

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 26, 2020 1:52 pm

Hmmmm,, not quite sure I buy that!

My understanding is that a firewall rule traffic allowing traffic from one subnet to another (for example vlanA to printer on vlanB) means that
VlanA can initiate traffic and reach VlanB. The key being originate!!
The return traffic from VlanB in response to a query from VlanA, is supposed to be allowed (as this traffic is IN RESPONSE and NOT originated on VlanB).

originated = unsolicited.

I have no doubt that you are right, but you have to do a much better sell job to convince me!!! I am all ears!!

(as for the OP, I would suggest trying to identify a destination address and then see if it works, as allowing somebody to SEND (to anywhere) may be too vague?
Thanks for your reply. I agree with you and I couldn't buy that.
 
luckybuilding
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 50
Joined: Sun Feb 05, 2012 12:57 am

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 26, 2020 2:01 pm

Hi all,
I usually drop all forwards as the last rule and allow only known tracked traffic. Now, I have an strange problem for creating a rule for allowing ping from one server to another.
I should be able to do this using this rule:
add action=accept chain=forward comment=Ping protocol=icmp src-address=192.168.9.220
allowing it to ping everywhere.
But, additionally I need to add the following rule to make it work:
add action=accept chain=forward comment=Established connection-state=established dst-address=192.168.9.220
Can you help me understand the problem? Why should I add this "connection-state=established" rule?

Thanks

The first rule will allow from the source IP Address, but will not allow the return traffic, i.e. ping reply packets.

The 2nd rule will allow this, as the reply packets is seen as part of the sent packets, i.e. related / established
Thanks for your reply. I might accept this for ping reply. But, it can not be true for TCP connections. Can it be?
 
luckybuilding
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 50
Joined: Sun Feb 05, 2012 12:57 am

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 26, 2020 2:03 pm

The return traffic from VlanB in response to a query from VlanA, is supposed to be allowed
It would with default firewall. But there can be something completely different now.
Do you know something about that changed thing?
I remember working with as I said without the second established rule!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19352
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Strange Tracking Problem on Mikrotik Filter rules

Mon Oct 26, 2020 2:30 pm

Post your config if you want help, already asked once..........

Who is online

Users browsing this forum: ips, oquiroz, stef70 and 142 guests