[Bug 1262] nft insert rule ignores space in prefix value
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Wed Jul 22 18:04:01 CEST 2020
https://bugzilla.netfilter.org/show_bug.cgi?id=1262
Pablo Neira Ayuso <pablo at netfilter.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
--- Comment #1 from Pablo Neira Ayuso <pablo at netfilter.org> ---
(In reply to ikonta from comment #0)
> #!/bin/sh
> #
> /sbin/nft flush table filter
> #
> /sbin/nft insert rule filter input log prefix "nftables " drop
>From the shell, you have to escape the quotes, ie.
/sbin/nft insert rule filter input log prefix \"nftables \" drop
Anyway: I recommend you use nft -f for this purpose instead of using a shell
script since this is breaking atomicity, eg.
#!/usr/sbin/nft
flush table filter
insert rule filter input log prefix "nftables " drop
-EOF-
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20200722/597a93fd/attachment.html>
More information about the netfilter-buglog
mailing list