ruleset: avoid port translating local sockets#92
ruleset: avoid port translating local sockets#92brada4 wants to merge 1 commit intoopenwrt:masterfrom
Conversation
|
Alternate implementations would not be faster or depend on modules, esp when both meta integer fields are unconditionally populated before conntrack.... EDIT: upd for v2 patch |
|
Neither the change in this PR, nor the proposed unconditional This PR also puts I agree that excluding locally originated traffic from automatic zone masquerading is cleaner, but changing long-standing fw3/fw4 default behavior should not be done lightly, especially in stable releases. A safer approach would be to add an explicit zone option, e.g. |
|
I propose the following change instead: d1fadb5. I intentionally left out the The |
|
Masquerade fallback to other port is to save local sockets from random impostor from LAN taking over their data. Was never a race between local sockets themselves to start with. |
|
I’m not claiming the current behaviour is ideal. I’m saying it is not something we should silently change in stable releases. This goes back to the initial firewall3 import from 2013-02-17, so it has effectively been OpenWrt firewall behaviour for 13 years. fw4 inherited the same model from its initial commit in 2021. The |
|
Well, come back after you make site to site 500:500 ipv4 ike working using OpenWrt. |
|
Breadcrumb: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/339 explicitly protecting local connections from forwarded connections, not from themselves, happened around last days of fw3 ..... |
|
Maybe a global setting to enable broken legacy behaviour. |
avoid allocating extra outgoing ports for local connections slipped past the lens while fixing CVE-2021-3773 in 21.late 22.early accidebtaly removes ianother strlen+strcmp (oifname) match from local sockets in default shipped config Signed-off-by: Andris PE <neandris@gmail.com>
avoid allocating extra outgoing ports for local connections
Eliminate unnecesary port translation for locally originated connections
fixes: openwrt/openwrt#22765