Linux Netfilter discussions
 help / color / mirror / Atom feed
* Nftables + ALG + Linux 6.1.0-10-amd64 …?... is it a kown Problem?
@ 2023-07-31  7:57 toml
  2023-07-31 13:36 ` Florian Westphal
  0 siblings, 1 reply; 7+ messages in thread
From: toml @ 2023-07-31  7:57 UTC (permalink / raw)
  To: netfilter

Good morning

After updating my server from Bullseye to Bookworm I noticed that my
NFT rules seem to be causing problems lately. Upon closer inspection,
the running process came to a virtual halt with a kernel-panic-message
in the journal. I was able to somehow narrow down the cause of the
error to the application layer gateway - because it was running without
it. Interestingly, I was able to open other consoles during the crash
with ctrl-alt-f2/5, with (except for the network) apparently full
functionality, to restart the machine. However, that Shutdown didn't
work in the normal way either, but only with clear coercion: 'systemctl
poweroff -f -f'.  Finally I reverted back to Bullseye, because
stability was more important to me.

I then looked at the problem further in a Bookworm-VM, same problem,
same cause, but without this dramatic effect. It seems, my problem is
the ALG-FTP and the passive mode during file transfer... this obviously
doesn't work anymore with Linux 6.1.0-10-amd64 at the moment. On my VM
it looks like this:

# cat /etc/modules-load.d/modules.conf
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules 
    # that should be loaded at boot time, one per line. 
    # Lines beginning with "#" are ignored.

    nf_conntrack
    nf_conntrack_ftp
    nf_conntrack_tftp

# journalctl -b | grep -i conntrack
    Jul 30 20:33:31 ftps systemd-modules-load[238]: 
    Inserted module 'nf_conntrack'
    Jul 30 20:33:31 ftps systemd-modules-load[238]: 
    Inserted module 'nf_conntrack_ftp'
    Jul 30 20:33:31 ftps systemd-modules-load[238]: 
    Inserted module 'nf_conntrack_tftp'

# lsmod | grep nf_
    nf_reject_ipv4         16384  1 nft_reject_ipv4
    nf_tables             290816  119 nft_reject_ipv4,nft_ct,nft_reject
    nfnetlink              20480  1 nf_tables
    nf_conntrack_tftp      20480  0
    nf_conntrack_ftp       24576  0
    nf_conntrack          188416  3 
nf_conntrack_tftp,nft_ct,nf_conntrack_ftp
    nf_defrag_ipv6         24576  1 nf_conntrack
    nf_defrag_ipv4         16384  1 nf_conntrack
    libcrc32c              16384  2 nf_conntrack,nf_tables

# ls /proc/sys/net/netfilter/net.netfilter.nf_conntrack_helper
    ls: File not found

I cannot enable the conntrack-helper with '1'.

Does anyone know if this is a known problem? What irritates me about
the whole thing is the fact, that connection/file transfer with 'active
mode' still seems to work, despite missing (!) open ports 1024-65535. 
That is, I am currently at a loss.

Best regards
Thomas

(Translated with deepl)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-03 13:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-31  7:57 Nftables + ALG + Linux 6.1.0-10-amd64 …?... is it a kown Problem? toml
2023-07-31 13:36 ` Florian Westphal
2023-08-01 14:20   ` toml
2023-08-01 20:11     ` Florian Westphal
2023-08-02  7:27       ` toml
2023-08-03 12:35       ` toml
2023-08-03 13:47         ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox