-
-
Notifications
You must be signed in to change notification settings - Fork 402
[BUG] Fedora 41 Migration from iptables to nftables #380
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
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
I found I didn't have virtnetworkd installed. I installed it and put in the proposed workaround in the config file to fall back to iptables and the container still fails with the same error message. It appears this can also cause breaking changes with docker containers due to the change. EDIT: It appears this has fixed my issue, although not sure why I needed to perform this step unless due to part of the OS post-upgrade cleanup process I performed. This could also be due to the changes Fedora has made to iptables/nfftables. The container still works without putting the nftables config item in place to use iptables, but the container will remain broken until the following is performed and the container is restarted.
These commands also don't persist through a reboot, so I've made a shell script to re-instate them and runs via crontab at reboot for my tunnels to come up properly. |
On fedora, In the alpine container, Could probably just alias |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there an existing issue for this?
Current Behavior
After upgrading my podman host from Fedora 40 to 41, my wireguard pods will no longer start. It appears Fedora 41 has deprecated iptables for nftables:
https://docs.fedoraproject.org/en-US/fedora/latest/release-notes/sysadmin/
These containers worked without issue prior to my upgrade to Fedora 41 and are broken on both hosts I utilize for WG VPN services.
It looks like there are some workarounds/changes available. I will need time to investigate and test on my end:
https://fedoraproject.org/wiki/Changes/LibvirtVirtualNetworkNFTables#Reverting_to_iptables_for_compatibility
Expected Behavior
Container to start
Steps To Reproduce
Utilizing systemd services to automatically start the pods:
Environment
CPU architecture
x86-64
Docker creation
podman --replace -d --privileged --name wireguard -e PUID=1000 -e PGID=1000 -e "TZ=America/New York" --cap-add=NET_RAW --cap-add=NET_ADMIN -e SERVERURL=vpn.mydomain.com -e SERVERPORT=51821 -e PEERS=WireGuard1 -e PEERDNS=192.168.1.1 -e INTERNAL_SUBNET=10.21.21.0 -e ALLOWEDIPS=0.0.0.0/0 -p 51820:51820/udp --sysctl=net.ipv4.conf.all.src_valid_mark=1 -v /var/wireguard/wireguard-vpn:/config:Z -v /var/wireguard/wireguard-modules:/lib/modules:Z --pull=always --label io.containers.autoupdate=registry lscr.io/linuxserver/wireguard:latest
Container logs
The text was updated successfully, but these errors were encountered: