I'm on Windows 11, WSL2, kernel 5.10.60.1-microsoft-standard-WSL2.
I'm using a RHEL distribution and I'm trying to enable a netfilter NAT rule. The problem is I receive this error if I try to add a rule to the NAT table for Pre or PostRouting:
[root@rhel8 nftables]# nft add chain nat prerouting { type nat hook prerouting priority 0 \; }
Error: No such file or directory
add chain nat prerouting { type nat hook prerouting priority 0 ; }
^^^
My googling leads me to believe that I need to add some kernel configuration in order to make this work, but from what I can tell from the Microsoft defaults, everything appears to be switched on. If there is a kernel guru out there who can give me a hint I'd appreciate it!