Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. nft commands:
  2. -----
  3. % nft add table my_filter_table
  4. % nft add chain my_filter_table my_input_chain {type filter hook input priority 0\;}
  5. % nft add set my_filter_table my_ssh_meter { type ipv4_addr\; flags dynamic \;}
  6. % nft add rule my_filter_table my_input_chain tcp dport 22 ct state new add @my_ssh_meter { ip saddr limit rate 10/second } accept
  7.  
  8. Error:
  9. ---
  10. Error: syntax error, unexpected saddr, expecting comma or '}'
  11. add rule filter input tcp dport 22 ct state new @my_ssh_meter { ip saddr limit rate 10/second } accept
  12.                                                                      ^^^^^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement