-
Notifications
You must be signed in to change notification settings - Fork 3
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
IT/TFTP firewalld part broken #101
Comments
It is there! But maybe firewalld is trying to force the issue and not work if the module is not loaded as a module or something... |
https://unix.stackexchange.com/a/672846/88217 Will try to load it, but... why does it work on 18.04? Or Rocky? |
18.04 service: <?xml version="1.0" encoding="utf-8"?>
<service>
<short>TFTP</short>
<description>The Trivial File Transfer Protocol (TFTP) is a protocol used to transfer files to and from a remote machine in s simple way. It is normally used only for booting diskless workstations and also to transfer data in the Preboot eXecution Environment (PXE).</description>
<port protocol="udp" port="69"/>
<module name="nf_conntrack_tftp"/>
</service> Helper: <?xml version="1.0" encoding="utf-8"?>
<helper module="nf_conntrack_tftp">
<port protocol="udp" port="69"/>
</helper> |
Repro:
|
Changing the service xml to the 18.04 won't help. Neither adding conntrack to the modules-load list. |
Tried to fake the existence of those modules as explained in the issues above, still no joy. The only workaround that worked so far is this ( IPv6_rpfilter=no
FirewallBackend=nftables |
NFT also depends on some kernel modules: https://forums.gentoo.org/viewtopic-p-8667582.html?sid=a137f7b606e5a61773a02240096a6703 But it's still weird it only errors out if IPv6 is enabled. Also set |
If nothing new comes up, I'll have to set those 2 options if in a Docker environment. Would be great if I could get those "fake" module loads to work, but no success so far. |
Actually, nevermind, still broken on 22.04. So the process might be similar:
Don't forget that the default backend on 22.04 is now |
Once you try to enable the
tftp
service:Works fine in a Hyper-V VM. Tried to diff the packages, and installed all in the Docker instance, still no success. Then digged deeper, and realized that the
tftp.xml
service is:Yepp, it calls a "helper". Sooo, let's check that, too:
Duh. Tried to mess arround with those, too.
https://bugzilla.redhat.com/show_bug.cgi?id=1817205
https://bugzilla.redhat.com/show_bug.cgi?id=1836571
https://firewalld.org/documentation/helper/
https://firewalld.org/2016/10/automatic-helper-assignment
https://www.cyberphoton.com/tftp-server-in-rhel7/
Setting
AutomaticHelpers
to any value won't help either. Checked the sysctl values, it's 0 in both Docker and Hyper-V.Then stumbled upon this:
firewalld/firewalld#263
Kernel modules, dude! The Hyper-V instance actually has the
nf_conntrack_tftp
module loaded, while the Docker container doesn't have modules at all. Oof.The text was updated successfully, but these errors were encountered: