yoramvandevelde / nftables-example Goto Github PK
View Code? Open in Web Editor NEWA playground ruleset to get to know nftables syntax
License: MIT License
A playground ruleset to get to know nftables syntax
License: MIT License
isn't it?
(I mean, how/where is it populated with IP addresses)
-- Zsolt
When adding rule for tcp stealth scan with the command
nft add rule inet filter input iifname enp2s0 tcp flags & (fin|syn) == (fin|syn) drop
results in
-bash: syntax error near unexpected token `==' error. So how do we fix this
Also the following modified commands don't work
``
nft add rule inet filter input iifname enp2s0 tcp flags & fin&syn eq fin&syn drop
this gives the error
[1] 2673
[2] 2674
[3] 2675
-bash: fin: command not found
-bash: syn: command not found
-bash: syn: command not found
[2]- Exit 127 fin
[3]+ Exit 127 syn eq fin
Error: syntax error, unexpected newline
add rule inet filter input iifname enp2s0 tcp flags
^
nft add rule inet filter input iifname enp2s0 tcp flags fin,syn fin,syn drop
Error: syntax error, unexpected comma
add rule inet filter input iifname enp2s0 tcp flags fin,syn fin,syn drop
^
nft add rule inet filter input iifname enp2s0 tcp flags fin,syn & fin,syn drop
[1] 2678
-bash: fin,syn: command not found
but i do the following command it gets accepted
nft add rule inet filter input iifname enp2s0 tcp flags fin,syn drop
[1]+ Done nft add rule inet filter input iifname enp2s0 tcp flags fin,syn
is this correct?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.