Using panic mode

You've just seen evidence that bad people are trying to break into your system. What do you do? Well, one option is to activate panic mode, which cuts off all network communications. 

I can just see this now in the Saturday morning cartoons when some cartoon character yells, Panic mode, activate!

To use panic mode, use the following command:

[donnie@localhost ~]$ sudo firewall-cmd --panic-on
[sudo] password for donnie:
success
[donnie@localhost ~]$

Of course, your access will be cut off if you're logged in remotely, and you'll have to go to the local Terminal to get back in. To turn panic mode off, use the following command:

[donnie@localhost ~]$ sudo firewall-cmd --panic-off
[sudo] password for donnie:
success
[donnie@localhost ~]$

If you're logged in remotely, there's no need to check the status of panic mode. If it's on, you're not accessing the machine. But if you're sitting at the local console, you might want to check it. Just use the following code:

[donnie@localhost ~]$ sudo firewall-cmd --query-panic
[sudo] password for donnie:
no
[donnie@localhost ~]$

That's all there is to panic mode.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.163.250