Skip to content

Commit 9bdba76

Browse files
complete
1 parent 7670a70 commit 9bdba76

28 files changed

Lines changed: 839 additions & 5 deletions

File tree

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# How to install Arkime(Moloch) using embedded Open Search
2+
3+
How to install Arkime(Moloch) using embedded Open Search:
4+
5+
1- Create the Ubuntu VM(I will use Ubuntu 20 as I tested before and worked perfectly) — make sure to increase the size of the disk to 500GB at least.
6+
7+
![Picture 15](./images/image-01.png)
8+
9+
Add this cloud Init Script:
10+
11+
```text
12+
#!/bin/bash
13+
sudo apt-get -y update
14+
sudo apt-get -y upgrade
15+
#######################################
16+
# Get Arkime#
17+
#######################################
18+
cd /home/ubuntu
19+
wget https://github.com/arkime/arkime/releases/download/v5.3.0/arkime_5.3.0-1.ubuntu2004_amd64.deb
20+
###Install Arkim3####
21+
sudo apt install -y ./arkime_5.3.0-1.ubuntu2004_amd64.deb
22+
###Install Java###
23+
sudo apt install -y default-jre
24+
```
25+
26+
![Picture 14](./images/image-02.png)
27+
28+
2- After the instance is created add the 2nd VNIC(Under resources →Attached VNIC’s → Create VNIC):
29+
30+
![Picture 13](./images/image-03.png)
31+
32+
3- Ssh to the instance and run:
33+
34+
```text
35+
curl https://docs.oracle.com/en-us/iaas/Content/Resources/Assets/secondary_vnic_all_configure.sh -O
36+
chmod +x secondary_vnic_all_configure.sh
37+
sudo ./secondary_vnic_all_configure.sh -c
38+
```
39+
40+
![Picture 12](./images/image-04.png)
41+
42+
ls
43+
44+
4- Run Arkime Config and select ens5 as the monitoring interface ( 2nd VNIC):
45+
46+
```text
47+
sudo /opt/arkime/bin/Configure
48+
```
49+
50+
![Picture 11](./images/image-05.png)
51+
52+
8 — After the configuration is finished, proceed with the steps 5 and forward:
53+
54+
![Picture 10](./images/image-06.png)
55+
56+
9 —Start opensearch:
57+
58+
```text
59+
sudo systemctl start elasticsearch
60+
/opt/arkime/db/db.pl --esuser admin:ThePasswordDefinedEarlier localhost:9200 init
61+
/opt/arkime/bin/arkime_add_user.sh admin "Admin User" THEPASSWORD --admin
62+
sudo systemctl start arkimecapture.service
63+
sudo systemctl start arkimeviewer.service
64+
```
65+
66+
![Picture 9](./images/image-07.png)
67+
68+
10. Open port 8005 on Ubuntu Instance and also port 4789 for the VTAP on 2nd NIC. In OCI Ubuntu is not using ufw, so you need to add this manually:
69+
70+
```text
71+
sudo vi /etc/iptables/rules.v4
72+
sudo iptables-restore < /etc/iptables/rules.v4
73+
```
74+
75+
```text
76+
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8005 -j ACCEPT
77+
-A INPUT -p udp -m state --state NEW -m udp --dport 4789 -j ACCEPT
78+
```
79+
80+
![Picture 8](./images/image-08.png)
81+
82+
![Picture 7](./images/image-09.png)
-872 Bytes
Loading
-4.07 KB
Loading
-1.54 KB
Loading
22.8 KB
Loading
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
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+
![Picture 31](./images/image-01.png)
12+
13+
Fill the fields, Select the compartment and Ad and select Ubuntu Shape:
14+
15+
![Picture 30](./images/image-02.png)
16+
17+
Select Ubuntu 20 from Browse all Images menu:
18+
19+
![Picture 29](./images/image-03.png)
20+
21+
Select the Shape you want to use ( Build it your self as you want) :
22+
23+
![Picture 28](./images/image-04.png)
24+
25+
Select the VCN and the subnet:
26+
27+
![Picture 27](./images/image-05.png)
28+
29+
Upload or generate the new ssh key for Ubuntu user:
30+
31+
![Picture 26](./images/image-06.png)
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+
![Picture 25](./images/image-07.png)
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+
![Picture 24](./images/image-08.png)
40+
41+
![Picture 23](./images/image-09.png)
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+
![Picture 22](./images/image-10.png)
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+
![Picture 21](./images/image-11.png)
58+
59+
After running sudo bash so-setup-network command you will be redirected to Security Onion Install menu:
60+
61+
![Picture 20](./images/image-12.png)
62+
63+
Press Yes
64+
65+
Select Install Type and press OK. I have selected Evaluation mode.
66+
67+
![Picture 18](./images/image-13.png)
68+
69+
Type AGREE to Agree with the Elastic Stack Licensing.
70+
71+
![Picture 17](./images/image-14.png)
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+
![Picture 16](./images/image-15.png)
76+
77+
Next you enter the hostname and press Ok:
78+
79+
![Picture 15](./images/image-16.png)
80+
81+
And you select Yes that the DNS and other prerequistes are configured.
82+
83+
![Picture 14](./images/image-17.png)
84+
85+
You accept the risk of DHCP IP Changing:
86+
87+
![Picture 13](./images/image-18.png)
88+
89+
You select ens3 as the management VNIC:
90+
91+
![Picture 12](./images/image-19.png)
92+
93+
Press OK on next step and select connection as Direct, if you don’t have a proxy in place:
94+
95+
![Picture 11](./images/image-20.png)
96+
97+
Wait for checks to be done:
98+
99+
![Picture 10](./images/image-21.png)
100+
101+
Select ens5 as the monitoring interface:
102+
103+
![Picture 9](./images/image-22.png)
104+
105+
Define your internal IP’s that are allowed to connect to your Security Onion Server and press OK:
106+
107+
![Picture 8](./images/image-23.png)
108+
109+
Install the Optional Services that you want to use and press Ok:
110+
111+
![Picture 7](./images/image-24.png)
112+
113+
Keep the Docker IP range and press OK:
114+
115+
![Picture 6](./images/image-25.png)
116+
117+
Create the management user and set the password:
118+
119+
![Picture 5](./images/image-26.png)
120+
121+
Specify how you like to access the instance:
122+
123+
![Picture 4](./images/image-27.png)
124+
125+
![Picture 3](./images/image-28.png)
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+
![Picture 2](./images/image-29.png)
130+
131+
Press yes and wait for the installation to finish:
132+
133+
![Picture 1](./images/image-30.png)
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+
```
3.7 KB
Loading
-1.79 KB
Loading
-2.92 KB
Loading
-48 Bytes
Loading

0 commit comments

Comments
 (0)