* Error when using 'time' statement in nftables 1.0.2 rule
@ 2022-04-08 2:19 Martin Gignac
2022-04-08 8:08 ` Jeremy Sowden
2022-04-08 8:17 ` Pablo Neira Ayuso
0 siblings, 2 replies; 5+ messages in thread
From: Martin Gignac @ 2022-04-08 2:19 UTC (permalink / raw)
To: netfilter
Hello,
On nftables 1.0.1, I can run this command just fine:
nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
nft>
On 1.0.2, however, it gives me this error:
nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
Error: No symbol type information
add rule inet filter input iif lo time < "2022-07-01 11:00" accept
^^^^
Have I encountered a bug, or has the usage of the 'time' statement
simply changed?
Thanks,
-Martin
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Error when using 'time' statement in nftables 1.0.2 rule
2022-04-08 2:19 Error when using 'time' statement in nftables 1.0.2 rule Martin Gignac
@ 2022-04-08 8:08 ` Jeremy Sowden
2022-04-08 8:14 ` Jeremy Sowden
2022-04-08 8:17 ` Pablo Neira Ayuso
1 sibling, 1 reply; 5+ messages in thread
From: Jeremy Sowden @ 2022-04-08 8:08 UTC (permalink / raw)
To: Martin Gignac; +Cc: netfilter
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
On 2022-04-07, at 22:19:30 -0400, Martin Gignac wrote:
> On nftables 1.0.1, I can run this command just fine:
>
> nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> nft>
>
> On 1.0.2, however, it gives me this error:
>
> nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> Error: No symbol type information
> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> ^^^^
> Have I encountered a bug, or has the usage of the 'time' statement
> simply changed?
It appears to be a bug. I shall send a fix.
J.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Error when using 'time' statement in nftables 1.0.2 rule
2022-04-08 8:08 ` Jeremy Sowden
@ 2022-04-08 8:14 ` Jeremy Sowden
0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Sowden @ 2022-04-08 8:14 UTC (permalink / raw)
To: Martin Gignac; +Cc: netfilter
[-- Attachment #1: Type: text/plain, Size: 784 bytes --]
On 2022-04-08, at 09:08:59 +0100, Jeremy Sowden wrote:
> On 2022-04-07, at 22:19:30 -0400, Martin Gignac wrote:
> > On nftables 1.0.1, I can run this command just fine:
> >
> > nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> > nft>
> >
> > On 1.0.2, however, it gives me this error:
> >
> > nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> > Error: No symbol type information
> > add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> > ^^^^
> > Have I encountered a bug, or has the usage of the 'time' statement
> > simply changed?
>
> It appears to be a bug. I shall send a fix.
No need. Somebody else has already committed one.
J.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Error when using 'time' statement in nftables 1.0.2 rule
2022-04-08 2:19 Error when using 'time' statement in nftables 1.0.2 rule Martin Gignac
2022-04-08 8:08 ` Jeremy Sowden
@ 2022-04-08 8:17 ` Pablo Neira Ayuso
2022-04-08 12:24 ` Martin Gignac
1 sibling, 1 reply; 5+ messages in thread
From: Pablo Neira Ayuso @ 2022-04-08 8:17 UTC (permalink / raw)
To: Martin Gignac; +Cc: netfilter
On Thu, Apr 07, 2022 at 10:19:30PM -0400, Martin Gignac wrote:
> Hello,
>
> On nftables 1.0.1, I can run this command just fine:
>
> nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> nft>
>
> On 1.0.2, however, it gives me this error:
>
> nft> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> Error: No symbol type information
> add rule inet filter input iif lo time < "2022-07-01 11:00" accept
> ^^^^
> Have I encountered a bug, or has the usage of the 'time' statement
> simply changed?
I can reproduce it, this is a bug.
I cannot reproduce it though with current nftables git snapshot (it's
basically 1.0.2 with a few patches on top).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Error when using 'time' statement in nftables 1.0.2 rule
2022-04-08 8:17 ` Pablo Neira Ayuso
@ 2022-04-08 12:24 ` Martin Gignac
0 siblings, 0 replies; 5+ messages in thread
From: Martin Gignac @ 2022-04-08 12:24 UTC (permalink / raw)
To: netfilter
> It appears to be a bug. I shall send a fix.
> No need. Somebody else has already committed one.
> I can reproduce it, this is a bug.
> I cannot reproduce it though with current nftables git snapshot (it's
basically 1.0.2 with a few patches on top).
Thanks guys.
By the way, I have just noticed that while this gives an error on 1.0.2:
add rule inet filter input iif lo time < "2022-07-01 11:00" accept
This does not:
add rule inet filter input iif lo meta time < "2022-07-01 11:00" accept
The use of 'meta' in front of 'time' works around the bug.
-Martin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-08 12:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-08 2:19 Error when using 'time' statement in nftables 1.0.2 rule Martin Gignac
2022-04-08 8:08 ` Jeremy Sowden
2022-04-08 8:14 ` Jeremy Sowden
2022-04-08 8:17 ` Pablo Neira Ayuso
2022-04-08 12:24 ` Martin Gignac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox