microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.54k stars 823 forks source link

Are there plans to add the tproxy module? #10149

Open sunlewuyou opened 1 year ago

sycured commented 6 months ago

Minikube with Cilium CNI can't run due to missing TPROXY How to start it: minikube start --cni=cilium

level=info msg="Adding new proxy port rules for cilium-dns-egress:45603" id=cilium-dns-egress subsys=proxy
level=warning msg="Failed to install iptables proxy rules" error="unable to run 'iptables -t mangle -A CILIUM_PRE_mangle -p tcp -m mark --mark 0x23b20200 -m comment --comment cilium: TPROXY to host cilium-dns-egress proxy -j TPROXY --tproxy-mark 0x200 --on-ip 127.0.0.1 --on-port 45603' iptables command: exit status 4 stderr=\"Warning: Extension TPROXY revision 0 not supported, missing kernel module?\\niptables v1.8.8 (nf_tables):  RULE_APPEND failed (No such file or directory): rule in chain CILIUM_PRE_mangle\\n\"" subsys=iptables
4-FLOSS-Free-Libre-Open-Source-Software commented 6 months ago

In the meantime, you could use the tproxy enabled wsl2 kernel https://github.com/Locietta/xanmod-kernel-WSL2?tab=readme-ov-file#usage

sycured commented 6 months ago

Thanks

ezerssss commented 3 months ago

In the meantime, you could use the tproxy enabled wsl2 kernel https://github.com/Locietta/xanmod-kernel-WSL2?tab=readme-ov-file#usage

I still cant seem to use tproxy using the said kernel 😞 image

Andarwinux commented 2 weeks ago

The latest xanmod build fixes this.