WEBVTT

00:01.840 --> 00:09.670
If you want to completely flush all IP table and reset to an open firewall state, you should set the

00:09.670 --> 00:18.030
accept policy on all exchanges, flash all net filter tables and delete all IP tables, user defined.

00:18.050 --> 00:25.750
James, if there is any, this is useful to use at the beginning of any final script in order to flush

00:25.750 --> 00:29.430
everything and to build it from the ground up.

00:30.160 --> 00:34.930
I'm creating a script named Delete Firewall that S.H..

00:41.140 --> 00:48.850
The first step is to set the except policy on all the change of the filter table, their input output

00:48.850 --> 00:53.560
and fought for change is used only for our allotted packets.

00:53.770 --> 00:59.050
And that means that the Linux machine has also the function of our KRAEUTLER.

01:02.450 --> 01:11.390
IP is minus B input, except IP table is minus B output, except.

01:14.170 --> 01:19.690
And IPT is minus B for art accept.

01:22.140 --> 01:26.540
The second step is to flush all tables that have Ruelas.

01:29.770 --> 01:45.040
IP table is minus the filter, minus F IP tables, minus the net, minus F IP table, minus the main

01:45.040 --> 01:52.690
goal, minus F and IP table is minus the Harrar, the last table minus F.

01:53.560 --> 01:56.710
If the table has no goal, nothing happens.

02:00.210 --> 02:04.620
And lastly, delete the user defined chains, if any.

02:06.130 --> 02:14.370
This is optional and the needed only if there are user defined chains will talk about user defined chains

02:14.380 --> 02:15.460
in another lecture.

02:18.970 --> 02:30.020
IP table is minus X if you are using IP set to drop large collections of IP addresses like entire countries.

02:30.280 --> 02:33.730
You should also flush and destroy the six.

02:34.480 --> 02:39.200
There will be a dedicated section about IP said later in the course.

02:41.060 --> 02:42.310
OK, that's all.

02:42.580 --> 02:44.080
I am saving the script.

02:45.220 --> 02:48.400
Then I make it executable and run it.

02:54.930 --> 03:01.680
The IP table is Firehole has been cleared out and all traffic is permitted, by the way.

03:01.890 --> 03:06.980
This is also the default state of a Linux operating system.
