Another option is minus L minus lists, all rules in the selected chain, in the specified table, if
no chain is given, all exchanges are listed.
For example, table is minus L leaks all in the filter table and all exchanges, input output and forward.
It's common to use minus option together with N from numeric and V from a verbose like this, we'll
talk more about the minus L. in another lecture where we'll dive deeper into listing the Linux fireballer.
Minus F means flash the selected chain or all the chains in the table if man is given.
This is equivalent to deleting all the rules one by one.
For example, if I want to flush the input chain, I can simply execute depletable tables, minus if
input.
Now, when I'm listing the chains, I can see that there is no rules on the input chain.
They have been flushed.
If I don't specify the chain, it will flash all changed from that table and by default, it's the filter
table.
It has flushed all the chains of filter tabun.
Now I'm flashing all the actions of the night table.
We'll discuss more about my inner self in a subsequent chapter.
Minus Ximenes zero, the picket and the bite counters in all the chains are only in the given chain.
Let me show you an example.
I'll add to the output chain that accepts SSX, outgoing traffic or traffic to a remote SSX server.
This Linux, being the SSX client IP table is minus a output minus Tsipi minus minus deport 22.
The packets are going to part 22 minus G accept and I'm connecting to a remote S.H. server just to have
some mixed packets.
OK, I am pressing control, plus, see, I don't want to connect to a Web server.
I just wanted some more Mixtepec.
When I listed the fireball.
We see that there are nine mixed paychecks or one thousand nine hundred twenty five bite's.
IP table is minus Z will reset packett and bite counters.
We see that the number of packages and the bikes matched by the will have been reset.
Minus N creates a new user defined chain by the given name.
We can create a user defined change simply by writing IP tables minus N and the name of the new user
defined or custom chain.
IP table is Minocin McShane.
When running table is minus VSL, we see all the chains, including the custom chain I've just created
now to delete that chain I use minus X option IP table is minus X my chain.
I don't go deeper into user defined chains at this moment.
Will have an entire section on this later in the course.
And finally, minus P6, the default policy for the building chain's input output and forward the default
policy specifies what happens to kicks.
They are not mixed by any rule and can be either.
Accept Ogtrop.
The default policy is set to accept.
We can change the default policy using IP tables, minus be the name of the chain and then input or
drop.
For example, I am setting the policy for the forward chain.
IP stabilised minus the name of the chain forward and the policy drop.
This means that each packet that is not accepted by all will be dropped.
We'll have a dedicated lecture on policies.
And the last option we take a look at in this lecture is minus it deletes one or more rules from the
selected chain.
We don't use this option too much because we often write all the rules in a script and then run the
script.
If we want to delete or modify a rule, we simply modify the script and it again.
But if you want to use the minus the option to delete an IP table scroll, you just have to specify
the line number you want to delete like this.
They are loaded into memory and by the list, the filter table to see Douglas.
Let's delete this rule, which is the second rule of the output chain.
So I write IP tables minus the output and to where two means the second line.
And now when I least the filter table of input output and product change, we notice that the rule has
been deleted.
OK, these are the most important IP table, scumbag's options or flex.
Thank you.