Commit 5c278c2
fix: use IIFNAME instead of OIFNAME in nftables PREROUTING DNAT rule
In the PREROUTING chain, the output interface is not yet determined
(routing hasn't happened), so MetaKeyOIFNAME always returns empty.
This caused the DNAT rule to never match traffic correctly.
Changed to MetaKeyIIFNAME (input interface) to match the behavior of
the iptables implementation which correctly uses `-i tun`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 179ce06 commit 5c278c2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments