Add GRE and GRE over IP modules to the WSL2 kernel
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
**Is your feature request related to a problem? Please describe.**
I'm trying to experiment withb GRE tunnels on my project. However, when adding an interface, I get an "unknown device type" exception. This is because the WSL2 Linux kernel is not compiled with GRE support. Could you enable it?
**Describe the solution you'd like**
Update the WSL configuration file with the following options:
```
CONFIG_NET_IPGRE_DEMUX=y
CONFIG_NET_IPGRE=y
```
**Describe alternatives you've considered**
Recompiling the kernel on my side and using it instead of the provided one works, but it takes time to compile on every update. In case it helps, here's how I did it: https://kumekay.com/compiling-custom-kernel-for-wsl2/
**Additional context**
Thanks in advance for the fix!
Contributor guide
Research direction
No specific file or test is named. Locate the WSL2 kernel configuration, compare it with the requested GRE options, and determine how configuration changes are built and validated; done means the provided kernel includes both requested modules and GRE interfaces no longer produce an unknown device type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100