How to Install and Configure Nessus Scanner on Ubuntu 18.04/CentOS 7

|
Last Updated:
|
|
Install and Configure Nessus Scanner on Ubuntu/CentOS

In this tutorial, we are going to learn how to install and configure Nessus scanner on Ubuntu 18.04/CentOS 7 server. Identifying vulnerabilities is the first step towards securing your environment. Nessus is the de-facto industry standard vulnerability assessment solution. It helps to easily identify and fix vulnerabilities – including software flaws, missing patches, malware, and misconfigurations across a variety of operating systems, devices and applications.

Note that Nessus is a commercial solution and in this tutorial, we are going to use a free trial version.

Installing Nessus Scanner on Ubuntu/CentOS

Download and Install Nessus

Nessus installation package can be downloaded from here. Once the download completes, run the installation as follows.

On Ubuntu 18.04

dpkg -i Nessus-7.2.1-ubuntu1110_amd64.deb

If the installation is successful, you should see an output shown below;

...output snipped...
Unpacking Nessus Scanner Core Components...

- You can start Nessus Scanner by typing /etc/init.d/nessusd start
- Then go to https://<your-hostname>:8834/ to configure your scanner
...snipped...

For CentOS 7

yum localinstall Nessus-7.2.1-es7.x86_64.rpm
...output snipped...
 Installing : Nessus-7.2.1-es7.x86_64 1/1 
Unpacking Nessus Core Components...
- You can start Nessus by typing /bin/systemctl start nessusd.service
- Then go to https://<your-hostname>:8834/ to configure your scanner

...output snipped...

Where <your-hostname> is the hostname of your machine.

Allow Nessus Web Access on Firewall

If firewall is running, you need to open Nessus port 8834 to access the web User Interface.

For Ubuntu and simillar derivatives

ufw allow 8834

For CentOS and simillar derivatives;

firewall-cmd --add-port=8834/tcp --permanent
firewall-cmd --reload

Start Nessus Deamon

After the installation is complete, you can start Nessus deamon by running the command below as shown in the installation output.

/etc/init.d/nessusd start

or you can simply use the command below.

systemctl start nessusd

To enable Nessus to start on system reboot, run the command below;

systemctl enable nessusd

Set up and Activate Nessus

After initial installation you are required to set up and activate Nessus. Login to UI, using the link as shown in the installation output: https://<your-hostname>:8834/. When you enter that link, add the SSL error that displays as an exception and proceed.

Create Nessus Administrator Account

Next, you are required to create an admin account.

Install and Configure Nessus Scanner on Ubuntu/CentOS

You may also create a new Nessus user from Nessus CLI using the command below;

/opt/nessus/sbin/nessuscli adduser

Register Nessus Scanner

Note that you need an activation code for you to register Nessus. To obtain the trail activation code, you need to register here if you have not done so.

nessus reg

Choose the Scanner Type and enter the activation code. Once the Nessus setup is complete, it will start to initialize by downloading and compiling the plugins needed for scanning. This may take a while though.

nessus init

Nessus Pro Dashboard

Once initialization is complete, the Nessus dashboard is launched that looks like the one below;

nessus dash

The installation and setup is now complete and you can now embark on hunting vulnerabilities in your systems.

Learn how to scan assets/hosts using Nessus by following the link below;

How to Scan a Remote Host using Nessus Vulnerability Scanner

How to Install and Use Nikto Web Scanner on Ubuntu 18.04

How to Install RKHunter (RootKit Hunter) On Ubuntu 18.04

Install OpenVAS 10 (GVM) on Debian 10 Buster

Install OpenVAS 9 with PostgreSQL in Ubuntu 18.04

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

Leave a Comment