You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My expectation is only to allow port 22 connection (which is ssh). However, after adding the above rules, I am able to ping the machine (ping 10.0.0.238) as well.
After I remove the above rules, all traffic is dropped again as expected.
Any idea of it? I’m not sure that is the behavior of the pcn-firewal or it is a bug. Please help me on that (edited)
Hi @lfjdhr123, this is definitely a bug in the structure of the classification pipeline.
For ICMP packets when the L4Port module sees that the packet is not TCP/UDP it sends it to the next module without updating the bitvector (initially set to all 1s). Since there are not other matching fields the next module is the BitScan, that wrongly identifies the first rule (dport/sport == 22) as matching and applies the FORWARD action. Every time the L4Port module is inserted we should also insert the L4Proto module (this of course will reduce performance however).
@lfjdhr123 until a patch is submitted you can overcome the problem by also specifing the l4proto of packets:
pcn-firewall bug
The pcn-firewall did not behave as expected
To Reproduce
Steps to reproduce the behavior:
At this time, all traffic dropped, I could NOT ping and ssh to my machine as I expected. Then I add the following rules:
My expectation is only to allow port 22 connection (which is ssh). However, after adding the above rules, I am able to ping the machine (ping 10.0.0.238) as well.
After I remove the above rules, all traffic is dropped again as expected.
Any idea of it? I’m not sure that is the behavior of the pcn-firewal or it is a bug. Please help me on that (edited)
Please tell us about your environment:
Linux fangjia 5.4.0-47-generic #51~18.04.1-Ubuntu SMP Sat Sep 5 14:35:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
v0.9.0+
The text was updated successfully, but these errors were encountered: