Sensei Free Edition is forever free-of-charge. We strongly recommend you register to keep in touch with updates and new features. You can register at https://www.sunnyvalley.io/sensei.
Sensei may be installed using the web interface in OPNsense or using the command line interface via SSH or direct system access. The preferred method is the web interface. Once Sensei is installed, you will need to complete the initial configuration in the web interface so it is convenient to also complete the installation using the web interface.
To install plugins in OPNsense, you must use an account with administrative access.
Before installing Sensei, you should ensure you meet the minimum system requirements in order to run Sensei or to have the best user experience. See Hardware Requirements for more information.
Web Interface Installation (Preferred Method)
To install Sensei, you must first install the Sunny Valley Networks vendor repository plugin. Go to the System --> Firmware --> Plugins page. Click on the “+” icon next to os-sunnyvalley to install the plugin.
Once the vendor plugin is installed, you should see the Sensei plugin available in the list of plugins as os-sensei. If you do not see the Sensei plugin, you may need to refresh the “Plugins” page. Click the “+” icon next to os-sensei to install the plugin.
After installing Sensei, you should see the Sensei menu in the left sidebar of the OPNsense web interface. If you do not see the new, top-level menu, you may need to refresh the page.
Next, you will need to complete the “Initial Configuration Wizard” for Sensei to be fully operational.
Command Line Installation (Alternative Method)
The command line installation method was the primary means for installing Sensei before it was available on the “Plugins” page in the OPNsense web interface. This option is still available for users who have direct access to the OPNsense system yet prefer using command line tools or who may only have remote shell access via SSH to administrate their OPNsense installations. However, the web interface will need utilized after installation to complete the initial configuration of Sensei.
If you plan to leave the SSH service active, the best practice recommendations are to create a user with administrative access rather than using the “root” user and to make use of stronger authentication methods such as using keys rather than passwords.
Direct System Access
When you have direct access to OPNsense, you may simply log into OPNsense using the “root” user or another administrator account. You should see a list of OPNsense menu options.
If you only have shell access to OPNsense, you may install Sensei remotely by logging into OPNsense using a SSH client using the following command where “root” is the administrator account and “your-firewall-ip” is the IP address or hostname of the OPNsense system. You should see the same list of menu options as directly accessing the system.
$ ssh [email protected]
Download & Run Sensei Installer
# curl https://updates.sunnyvalley.io/getsensei | sh
The script will copy the installation files onto the filesystem and will add a top-level menu item within the OPNsense web interface. Depending on the speed of your hardware and Internet connection, the installation may take several minutes to complete.
Once the installation has been completed, you may disconnect from your terminal session. You may also disable your firewall’s SSH service by unchecking the checkboxes mentioned above if you no longer wish to use the SSH service.
You will now need to complete the “Initial Configuration Wizard” for Sensei to be fully operational.
Initial Configuration Wizard
To start your "Initial Configuration Wizard":
Log in to your OPNsense web interface
- Click Sensei from the left menu
Click on the Dashboard sub-menu to open the configuration wizard
Accept the End User License Agreement (scroll and read the terms to get to the next button).
- Click the "I Agree" button to continue to the "Hardware Check" section.
2- Hardware Check
Your hardware will be analyzed to ensure it meets the minimum requirements. You will receive one of following responses: compatible hardware, low-end hardware, incompatible hardware. The setup will not continue if you have incompatible hardware.
- Click the "Next" button to continue to the "Reporting Database" section.
3- Reporting Database
Select the database you wish to use for reporting. High end systems will have 3 options, while low end systems only have 2 options.If you wish to use a remote ElasticSearch database, you must choose it now since you cannot change this after the initial configuration wizard has been completed.
If you have SOHO or higher Sensei paid subscription, we recommend that you install your license key before proceeding with the initial configuration wizard since this will activate a feature that will enable you to have central reporting for many firewalls from a single Elasticsearch instance. Otherwise, only a single remote ES instance can be used with a single firewall.
Click the "Install Database & Proceed" button to install the local database if one is chosen and to continue to the "Interface Selection" section.
4- Interface Selection
Select the Ethernet Interface(s) to protect. To do so, click on an interface and use the right/left arrow buttons to move it to protected/unprotected interfaces combo box.
For detailed information on "Deployment Modes", see here.
Click "Next" to continue to the "Cloud Reputation" section.
5- Cloud Reputation
The engine processes the request, queries the "Sunny Valley Network (SVN) Cloud" in real-time, and decides whether it will be blocked or allowed. Sensei checks against 140+ million websites under 120+ categories in milliseconds.
Cloud Threat Intel settings let you:
- Enable/Disable the “Cloud Reputation & Web Categorization” engine
- Set local domain name you wish to be excluded from cloud queries
Select the fastest Cloud Reputation Servers which are used for queries
- Click "Next" to continue to the "Sensei CLI" section.
6- Sensei CLI (Security)
Set your TCP Service password. This password protects the command line access to the packet engine. It is highly recommended to use a very secure password. The default password is “Sensei1234” so be sure to change it.
- Click "Next" to continue to the "Updates & Health Check" section.
7- Updates & Health Check
- Check for Updates Automatically: Checks automatically for the updates and creates a notification on the Sensei "Status" page.
Automatically Update Databases and Threat Intelligence Data: Checks automatically for the updates and creates a notification on the Sensei "Status" page.
- Enable Generation of Support Data: If enabled, Sensei collects supporting data during unusual events and crashes. You can share this data while opening a ticket with us.
Max Swap Utilization: You may specify how much swap space Sensei may utilize when the system is low on memory. It is recommended that you do not set this value too high. Otherwise, system performance may suffer.
- Health Check: If enabled, "Health Check" monitors the system's memory, CPU, disk usage and core services if they're working correctly, and raises alerts if anything goes wrong. "Health Check" also stops the relevant services if they're consuming excessive system resources.
Help Sunny Valley Improve Its Products and Services: If enabled, general system information is submitted to Sunny Valley to help improve the future development of Sensei.
- Click "Next" to continue to the "Deployment Size" section.
8- Deployment Size
Sensei may support up to 1,000 concurrent users on an average PC. You can set your Sensei installation’s capacity in this section.
You may see detailed information about suggested hardware at Getting Started > Hardware Requirements
- Click "Next" to continue to the "Finish" section.
- Click the "Finish" button to save your initial configuration data and start using Sensei.