Download & Install STINGAR Application
Before you start, enter information about your STINGAR server in the box below.
STINGAR_HOSTNAME: Do not include the https prefix.
Then follow the instructions below...
You need to be logged onto your STINGAR server: STINGAR_HOSTNAME as STINGAR_ADMIN_USER.
ssh STINGAR_ADMIN_USER@STINGAR_HOSTNAME
While logged onto this server as STINGAR_ADMIN_USER, follow the instructions below to step through the process to download STINGAR & run a script to install & configure it.
Download QuickStart Script
The STINGAR QuickStart script is available in Forewarned's public github repository. The script will prompt you for configuration specs and will then do all the work to download, install & configure your implementation of STINGAR. When done, you will be able to enter your STINGAR server hostname in a browser (https://STINGAR_HOSTNAME) to access your running implementation of STINGAR. Run the following command to download the script:
The command above creates a directory named 'stingar' in the root directory of STINGAR_ADMIN_USER & pulls down all files needed to install STINGAR, saving them to this new 'stingar' directory.
Install Basic SSL
To implement simple SSL certification for STINGAR, you may choose to create public/private keys for STINGAR using the following commands: First, from within the stingar directory, create a 'certs' directory in which the keys will be stored.
Verify that the two expected files were created in the certs directory:
You should find these 2 files in that directory:
- cert.pem
- key.pem
To install permanent certificates
See more details https://communityhoneynetwork.readthedocs.io/en/stable/certificates/
Run the QuickStart Script
At this point you should have docker, docker-compose & python3 installed on this server and the QuickStart script (file: configure_stingar.py) downloaded to the current directory.
You will need the password provided by the STINGAR team to retrieve STINGAR from the registry where the code resides. Contact the STINGAR team (info@forewarned.io) if you don't have a STINGAR Registry account or do not know your username/password for it.
Now it's just a matter of running the script and responding to the prompts:
python3 configure_stingar.py
A sample script session is shown below (Input values for a default configuration appear in blue.)
Please enter your SSL certificate path. [./certs]:[Return]
Do you wish to specify an alternate Docker registry? (y/n): [y][Return]
Please enter the URL for the Docker registry: [stingarregistry.azurecr.io][Return]
Please enter your Docker registry username:STINGAR_REGISTRY_USER
Please enter your Docker registry password:Enter the registry password that was provided to you by the STINGAR team (Note: The password will not display.)
Do you wish to enable Syslog logging to a remote Syslog server? (y/n): [n] [Return]
Do you wish to enable logging to a remote CIFv3 server? (y/n): [n] [Return]
QuickStart Script Results
Upon completion, the script should report that it has created three files:
- stingar.env
- nginx.conf
- docker-compose.yml
These files define the way your instance of STINGAR appears & functions. They may be modified to add or change the behavior and appearance of your implementation of STINGAR. More detailed information about these files is available here.