nftables

Kernels & Hardware, configuring network, installing services

nftables

Postby alekperov11 » 2020-06-04 12:21

Hi!
Please help me.
Code: Select all
root@HAF:/home/akshin# iptables-translate -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
nft add rule ip filter INPUT tcp flags & (fin|syn|rst|psh|ack|urg) == 0x0 counter drop
root@HAF:/home/akshin# nft add rule ip filter INPUT tcp flags & (fin|syn|rst|psh|ack|urg) == 0x0 counter drop
bash: syntax error near unexpected token `=='
root@HAF:/home/akshin#

How to fix error syntax error near unexpected token `==' ?
How to add this rule to /etc/nftables.conf without error?
alekperov11
 
Posts: 1
Joined: 2020-06-04 12:15

Re: nftables

Postby andre@home » 2020-06-04 13:30

Looks similar to this (solved) topic:
viewtopic.php?f=5&t=142769
andre@home
 
Posts: 396
Joined: 2011-10-02 08:00

Re: nftables

Postby Head_on_a_Stick » 2020-06-04 17:23

Quote the rule to stop bash from interpreting the '==' bit.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12777
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to System configuration

Who is online

Users browsing this forum: morgon and 14 guests

fashionable