Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iptables - unable to create rules on WSL2 (iptables "recent" module) #11140

Closed
1 of 2 tasks
sreemtech opened this issue Feb 9, 2024 · 3 comments
Closed
1 of 2 tasks
Labels
kconfig linux kernel configuration

Comments

@sreemtech
Copy link

Windows Version

10.0.22631.3007

WSL Version

WSL version: 2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux 5.15.133.1-microsoft-standard-WSL2 x86_64

Distro Version

CentOS

Other Software

WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3007

Rocky Linux 9.3

Repro Steps

WSL2 : Centos/Rocky Linux 9

iptables -A test0-in -p tcp --dport 1111 -m state --state NEW -m recent --set
Warning: Extension recent revision 0 not supported, missing kernel module?
iptables v1.8.8 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain

Expected Behavior

Rules has to set

Actual Behavior

Warning: Extension recent revision 0 not supported, missing kernel module?
iptables v1.8.8 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain

Diagnostic Logs

No response

Copy link

github-actions bot commented Feb 9, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@sreemtech sreemtech changed the title iptables - unable to create rules on WSL2 iptables - unable to create rules on WSL2 (iptables "recent" module) Feb 9, 2024
@elsaco
Copy link

elsaco commented Feb 9, 2024

@sreemtech current WSL Linux kernel has CONFIG_NETFILTER_XT_MATCH_RECENT not set, so -m recent fails.

See details at: https://github.com/microsoft/WSL2-Linux-Kernel/blob/ee5b8e3dcbc682f7b3f149d90544b007c50d74f6/arch/x86/configs/config-wsl#L1172

or run zgrep -i netfilter /proc/config.gz to see what's set.

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kconfig linux kernel configuration
Projects
None yet
Development

No branches or pull requests

3 participants