You are not logged in.
Hi,
I can´t use with nftables: ip protocol ospf counter accept for ipv4 and meta l4proto ospf counter accept for ipv6 in my firewall. I normally use it in Debian and Rocky Linux.
Dec 11 02:47:14 archlinux systemd[1]: Starting Netfilter Tables...
Dec 11 02:47:14 archlinux nft[490]: /etc/nftables.conf:13:15-18: Error: Could not resolve protocol name
Dec 11 02:47:14 archlinux nft[490]: ip protocol ospf counter accept
Dec 11 02:47:14 archlinux nft[490]:
Dec 11 02:47:14 archlinux nft[490]: /etc/nftables.conf:47:16-19: Error: Could not resolve protocol name
Dec 11 02:47:14 archlinux nft[490]: meta l4proto ospf counter accept
.
Linux archlinux 6.0.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:38 +0000 x86_64 GNU/Linux
Last edited by vecino (2022-12-13 19:54:33)
Offline
Omg, just write 89 instead of ospf...
Offline
Or take a look at
/etc/protocols
and use "ospfigp" instead .
Offline
I'm a bit worried about this because I use nftables on several different routers (Debian, Rocky Linux, etc) and these these differences they're unnecessary problems. Something won't start because of such a small thing.
@-thc Thanks for the tip
Offline
OSPFIGP might be usable across Arch, Debian [1] and Rocky Linux ( Fedora) [2].
[1] https://salsa.debian.org/md/netbase/-/b … tocols#L44
[2] https://pagure.io/setup/blob/master/f/protocols#_105
Offline
/etc/protocols content does not come from nftables, but from https://www.iana.org/assignments/protoc … bers.xhtml .
I can't find what protocols nftables accepts from where , but I do expect them to use iana assignments.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
nftables translates the names to numbers using /etc/protocols and /etc/services. Some time ago, for a release or two, it moved to a builtin hardcoded list, but then changed it back.
Offline
thank you all for your responses - you helped me = solved
Offline