files: Move netdev-ingress.nft to /etc/nftables as well
Phil Sutter
reviewerPATCH 1/1 files: Move netdev-ingress.nft to /etc/nftables as well
Commit 13535a3b40b62 ("files: restore base table skeletons") moved config skeletons back from examples/ to /etc/nftables/ directory, but ignored the fact that commit 6c9230e79339c ("nftables: rearrange files and examples") added a new file 'netdev-ingress.nft' which is referenced from 'all-in-one.nft' as well.
---
files/nftables/Makefile.am | 3 ++-
files/{examples => nftables}/netdev-ingress.nft | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
rename files/{examples => nftables}/netdev-ingress.nft (87%)files/nftables/Makefile.am +2 -1
@@ -10,7 +10,8 @@ dist_pkgsysconf_DATA = all-in-one.nft \ ipv6-filter.nft \ ipv6-mangle.nft \ ipv6-nat.nft \ - ipv6-raw.nft + ipv6-raw.nft \ + netdev-ingress.nft install-data-hook: ${SED} -i 's|@sbindir[@]|${sbindir}/|g' ${DESTDIR}${pkgsysconfdir}/*.nft
files/nftables/netdev-ingress.nft renamed from files/examples/netdev-ingress.nft +1 -1
@@ -1,4 +1,4 @@ -#!/usr/sbin/nft -f +#!@sbindir@nft -f # mind the NIC, it must exists table netdev filter {
Signature · 1 line
2.21.0
Florian Westphal
maintainerQuoted 5 lines · Phil Sutter
Commit
13535a3b40b62("files: restore base table skeletons") moved config skeletons back from examples/ to/etc/nftables/directory, but ignored the fact that commit6c9230e79339c("nftables: rearrange files and examples") added a new file 'netdev-ingress.nft' which is referenced from 'all-in-one.nft' as well.
Right. Do you think we should also add in inet-nat.nft example, or even replace the ipvX- ones?
Phil Sutter
reviewerHi Florian,
Quoted 9 lines · Florian Westphal
Quoted 5 lines · Phil Sutter
Commit
13535a3b40b62("files: restore base table skeletons") moved config skeletons back from examples/ to/etc/nftables/directory, but ignored the fact that commit6c9230e79339c("nftables: rearrange files and examples") added a new file 'netdev-ingress.nft' which is referenced from 'all-in-one.nft' as well.Right. Do you think we should also add in inet-nat.nft example, or even replace the ipvX- ones?
Having an inet family nat example would be wonderful! Can inet NAT replace IPvX-ones completely or are there any limitations as to what is possible in rules?
Cheers, Phil
Florian Westphal
maintainerQuoted 6 lines · Phil Sutter
Quoted 2 lines
Right. Do you think we should also add in inet-nat.nft example, or even replace the ipvX- ones?
Having an inet family nat example would be wonderful! Can inet NAT replace IPvX-ones completely or are there any limitations as to what is possible in rules?
I'm not aware of any limitations.
Pablo Neira Ayuso
maintainerQuoted 9 lines · Florian Westphal
Quoted 6 lines · Phil Sutter
Quoted 2 lines
Right. Do you think we should also add in inet-nat.nft example, or even replace the ipvX- ones?
Having an inet family nat example would be wonderful! Can inet NAT replace IPvX-ones completely or are there any limitations as to what is possible in rules?
I'm not aware of any limitations.
Only limitation is that older kernels do not support NAT for the inet family.
Phil Sutter
reviewerQuoted 5 lines · Pablo Neira Ayuso
Quoted 4 lines · Florian Westphal
Quoted 3 lines · Phil Sutter
Quoted 2 lines
Right. Do you think we should also add in inet-nat.nft example, or even replace the ipvX- ones?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Having an inet family nat example would be wonderful! Can inet NAT replace IPvX-ones completely or are there any limitations as to what is possible in rules?
I'm not aware of any limitations.
Only limitation is that older kernels do not support NAT for the inet family.
OK, so maybe add inet NAT example but not delete ip/ip6 ones?
What is the status regarding my patch, please? I think fixing netdev-ingress.nft location is unrelated to this discussion, right?
Cheers, Phil
Pablo Neira Ayuso
maintainerQuoted 10 lines · Phil Sutter
Quoted 9 lines · Pablo Neira Ayuso
Quoted 8 lines · Florian Westphal
Quoted 6 lines · Phil Sutter
Quoted 2 lines
Right. Do you think we should also add in inet-nat.nft example, or even replace the ipvX- ones?
Having an inet family nat example would be wonderful! Can inet NAT replace IPvX-ones completely or are there any limitations as to what is possible in rules?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I'm not aware of any limitations.
Only limitation is that older kernels do not support NAT for the inet family.
OK, so maybe add inet NAT example but not delete ip/ip6 ones?
Agreed.
Quoted 2 lines
What is the status regarding my patch, please? I think fixing netdev-ingress.nft location is unrelated to this discussion, right?
Oh right, I got confused by the discussion.
Quoted 5 lines · Phil Sutter
Commit
13535a3b40b62("files: restore base table skeletons") moved config skeletons back from examples/ to/etc/nftables/directory, but ignored the fact that commit6c9230e79339c("nftables: rearrange files and examples") added a new file 'netdev-ingress.nft' which is referenced from 'all-in-one.nft' as well.
Applied, thanks.