This paper introduces a novel scheme that integrates network coding with onion routing to enhance security and privacy in wireless mesh networks (WMNs). By employing multiple layers of encryption and limiting routing information shared with relay nodes, the method maintains data confidentiality and provides strong anonymity with low overhead. The study compares this approach to existing methods and demonstrates its superior performance in ensuring secure and anonymous communication.