|
| 1 | +# How to install Security Onion on OCI |
| 2 | + |
| 3 | +If you plan to create your own Security Operation Center using open-source solutions, one of the best Threat Detection and Monitoring, threat hunting, enterprise security monitoring, and log management is [Security Onion](https://securityonionsolutions.com/software/). |
| 4 | + |
| 5 | +In this guide I will show you how to manually install Security Onion, and how to add an additional VNIC Adapter for VCN Traffic Capturing. |
| 6 | + |
| 7 | +Install Ubuntu |
| 8 | + |
| 9 | +Go to OCI →Menu →Compute →Instances and click Create Instance: |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +Fill the fields, Select the compartment and Ad and select Ubuntu Shape: |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +Select Ubuntu 20 from Browse all Images menu: |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +Select the Shape you want to use ( Build it your self as you want) : |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +Select the VCN and the subnet: |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +Upload or generate the new ssh key for Ubuntu user: |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +Increase the boot volume of the server, as you will need more then 50 GB on the long run for security monitoring and press create. Recommended is 250 to start, as Security Union is asking 200 GB on setup. |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +After the Instance is created, click on the Attached VNICs and add the additional VNIC that will capture the network traffic. |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +Next step is to SSH to the newly created instance and start the Installation by running this commands: |
| 44 | + |
| 45 | +sudo so-allow is used for opening the Security Onion Service ports. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +After the 2nd VNIC is added it will appear as ens5 |
| 50 | + |
| 51 | +```text |
| 52 | +curl https://docs.oracle.com/en-us/iaas/Content/Resources/Assets/secondary_vnic_all_configure.sh -O |
| 53 | +chmod +x secondary_vnic_all_configure.sh |
| 54 | +sudo ./secondary_vnic_all_configure.sh -c |
| 55 | +``` |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +After running sudo bash so-setup-network command you will be redirected to Security Onion Install menu: |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +Press Yes |
| 64 | + |
| 65 | +Select Install Type and press OK. I have selected Evaluation mode. |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +Type AGREE to Agree with the Elastic Stack Licensing. |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +As I selected less space for the Boot Volume that the required space I got this error, but I continued the installation: |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | +Next you enter the hostname and press Ok: |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | +And you select Yes that the DNS and other prerequistes are configured. |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | +You accept the risk of DHCP IP Changing: |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | +You select ens3 as the management VNIC: |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | +Press OK on next step and select connection as Direct, if you don’t have a proxy in place: |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | +Wait for checks to be done: |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | +Select ens5 as the monitoring interface: |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | +Define your internal IP’s that are allowed to connect to your Security Onion Server and press OK: |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +Install the Optional Services that you want to use and press Ok: |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | +Keep the Docker IP range and press OK: |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | +Create the management user and set the password: |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | +Specify how you like to access the instance: |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | +Select the IP that is allowed to access the Security Onion. I selected all, as this is in a private subnet, and the instace will be destroyed after the demo. |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | +Press yes and wait for the installation to finish: |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | +Congratulations! You have a new Security Onion Instance running on OCI. |
| 136 | + |
| 137 | +run the script to be sure the 2nd VNIC Is up and running properly: |
| 138 | + |
| 139 | +```text |
| 140 | +curl https://docs.oracle.com/en-us/iaas/Content/Resources/Assets/secondary_vnic_all_configure.sh -O |
| 141 | +chmod +x secondary_vnic_all_configure.sh |
| 142 | +sudo ./secondary_vnic_all_configure.sh -c |
| 143 | +``` |
0 commit comments