RouterOS automatically assigns “passthrough=yes”. But on these examples I am unsure if it should be set to yes or no and / or if it’s relevant at all. Why I am confused is later on in the example the script:
With policy routing it is possible to force all traffic to the specific gateway, even if traffic is destined to the host (other that gateway) in the connected networks. This way routing loop will be generated and communications with those hosts will be impossible. To avoid this situation we need to allow usage of default routing table for traffic to connected networks.
The explanation is a little unclear to me. I am hoping that maybe the author of the Wiki article could give us more insight.
1a) as those are only rules in chain “input” and chain “output” I think pass-trough doesn’t really matters
1b) there are other rules in the chain that requires packets from these rules be there
Imagine packet that comes from internet and then your policy routing route it back to internet, and not to your clients - these accept rules correct that
(* 1a) if you won’t passthrough 1st and 2nd rules, you won’t mark routing at all by 3rd and 4th rule *) - edited: it’s wrong %)
2) actually, it’s for packets that are coming from one of connected networks to another one. if 10.111.0.10 sends a packet to 10.112.0.10, the packet won’t be sent to the Internet
I’m sorry to be a pain but “macgaiver” and “Chupaka” you guys are contradicting each other.
I still need some clarity about this passthrough because I find this stuff very confusing.
For the time being I am going to side with Chupaka because I see he has posted a gazillion posts.
I guess macgaiver is confused like me because he thought that passthrough only applies to each individual chain, as opposed to the whole “Mangle” ruleset.
In order to clarify it even more, in the example, the last two rules are:
aaaaaaaa!.. %) sooooorrrrryyyyy ))) friday tiredness, maybe… I didn’t noticed that there’re different chains
as we see, zillion posts is nothing compared to this:
yes, they are mutually exclusive, so you may set passthrough=no, but… it will change almost nothing - I don’t think there will be some performance increase because of ~0.5 firewall rule =)
For me the conclusion here is passthrough is specific to a chain. E.g. input chain passthrough=on or off won’t affect forward chain on or off
And if you use PCC example and you have some more complex firewall rules after the PCC snapshot taken from the Wiki be careful because if you set passthrough=on you might end up re-routing the packets again. Thanks guys for the input, I think I understand now.