WEBVTT

00:01.270 --> 00:10.690
Another option is minus L minus lists, all rules in the selected chain, in the specified table, if

00:10.690 --> 00:14.050
no chain is given, all exchanges are listed.

00:18.350 --> 00:29.030
For example, table is minus L leaks all in the filter table and all exchanges, input output and forward.

00:30.470 --> 00:40.970
It's common to use minus option together with N from numeric and V from a verbose like this, we'll

00:40.970 --> 00:48.080
talk more about the minus L. in another lecture where we'll dive deeper into listing the Linux fireballer.

00:50.640 --> 00:57.930
Minus F means flash the selected chain or all the chains in the table if man is given.

00:59.340 --> 01:03.510
This is equivalent to deleting all the rules one by one.

01:05.610 --> 01:12.290
For example, if I want to flush the input chain, I can simply execute depletable tables, minus if

01:12.300 --> 01:12.840
input.

01:14.580 --> 01:21.270
Now, when I'm listing the chains, I can see that there is no rules on the input chain.

01:22.640 --> 01:23.900
They have been flushed.

01:25.180 --> 01:32.410
If I don't specify the chain, it will flash all changed from that table and by default, it's the filter

01:32.410 --> 01:32.860
table.

01:35.640 --> 01:39.300
It has flushed all the chains of filter tabun.

01:41.560 --> 01:45.310
Now I'm flashing all the actions of the night table.

01:48.740 --> 01:53.030
We'll discuss more about my inner self in a subsequent chapter.

01:54.850 --> 02:03.470
Minus Ximenes zero, the picket and the bite counters in all the chains are only in the given chain.

02:03.940 --> 02:05.790
Let me show you an example.

02:06.190 --> 02:14.960
I'll add to the output chain that accepts SSX, outgoing traffic or traffic to a remote SSX server.

02:15.250 --> 02:27.400
This Linux, being the SSX client IP table is minus a output minus Tsipi minus minus deport 22.

02:27.730 --> 02:36.640
The packets are going to part 22 minus G accept and I'm connecting to a remote S.H. server just to have

02:36.640 --> 02:38.080
some mixed packets.

02:43.170 --> 02:48.900
OK, I am pressing control, plus, see, I don't want to connect to a Web server.

02:50.280 --> 02:52.680
I just wanted some more Mixtepec.

02:54.810 --> 02:56.310
When I listed the fireball.

02:57.580 --> 03:05.680
We see that there are nine mixed paychecks or one thousand nine hundred twenty five bite's.

03:06.910 --> 03:12.970
IP table is minus Z will reset packett and bite counters.

03:14.590 --> 03:20.260
We see that the number of packages and the bikes matched by the will have been reset.

03:21.400 --> 03:25.850
Minus N creates a new user defined chain by the given name.

03:26.200 --> 03:34.330
We can create a user defined change simply by writing IP tables minus N and the name of the new user

03:34.330 --> 03:36.100
defined or custom chain.

03:38.310 --> 03:40.980
IP table is Minocin McShane.

03:44.610 --> 03:53.490
When running table is minus VSL, we see all the chains, including the custom chain I've just created

03:54.360 --> 04:01.980
now to delete that chain I use minus X option IP table is minus X my chain.

04:02.400 --> 04:06.630
I don't go deeper into user defined chains at this moment.

04:06.900 --> 04:10.560
Will have an entire section on this later in the course.

04:12.810 --> 04:21.060
And finally, minus P6, the default policy for the building chain's input output and forward the default

04:21.060 --> 04:24.650
policy specifies what happens to kicks.

04:24.720 --> 04:28.800
They are not mixed by any rule and can be either.

04:28.800 --> 04:29.970
Accept Ogtrop.

04:32.040 --> 04:34.860
The default policy is set to accept.

04:37.420 --> 04:45.820
We can change the default policy using IP tables, minus be the name of the chain and then input or

04:45.820 --> 04:46.190
drop.

04:46.600 --> 04:50.880
For example, I am setting the policy for the forward chain.

04:52.130 --> 04:58.850
IP stabilised minus the name of the chain forward and the policy drop.

05:00.970 --> 05:06.340
This means that each packet that is not accepted by all will be dropped.

05:08.420 --> 05:11.750
We'll have a dedicated lecture on policies.

05:14.870 --> 05:22.520
And the last option we take a look at in this lecture is minus it deletes one or more rules from the

05:22.520 --> 05:23.710
selected chain.

05:24.380 --> 05:31.310
We don't use this option too much because we often write all the rules in a script and then run the

05:31.310 --> 05:31.760
script.

05:32.330 --> 05:38.450
If we want to delete or modify a rule, we simply modify the script and it again.

05:41.590 --> 05:48.250
But if you want to use the minus the option to delete an IP table scroll, you just have to specify

05:48.250 --> 05:51.790
the line number you want to delete like this.

05:53.020 --> 05:59.010
They are loaded into memory and by the list, the filter table to see Douglas.

06:02.440 --> 06:07.030
Let's delete this rule, which is the second rule of the output chain.

06:08.380 --> 06:16.570
So I write IP tables minus the output and to where two means the second line.

06:18.020 --> 06:26.060
And now when I least the filter table of input output and product change, we notice that the rule has

06:26.060 --> 06:26.750
been deleted.

06:29.860 --> 06:36.230
OK, these are the most important IP table, scumbag's options or flex.

06:36.550 --> 06:37.120
Thank you.
