-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
32 lines (20 loc) · 961 Bytes
/
Copy pathREADME
File metadata and controls
32 lines (20 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## Starting in namespace
```bash
cd /app/vnfs/ips-suricata
ip netns exec netovs1 sh install.sh
ip netns exec netovs1 sh config.sh
ip netns exec netovs1 sh start.sh
```
## Testing
Try the blocked rule `curl --max-time 5 http://testmynids.org/uid/index.html` it should timeout
Check the rules have been applied
```bash
jq 'select(.alert .signature_id==2100498)' /var/log/suricata/eve.json
# Check for traffic that has been blocked
jq 'select(.alert .action=="blocked")' /var/log/suricata/eve.json
```
**Useful Resources**
- [Setting up IPS/inline for Linux](https://docs.suricata.io/en/latest/setting-up-ipsinline-for-linux.html)
- [How To Install Suricata on Ubuntu 20.04](https://www.digitalocean.com/community/tutorials/how-to-install-suricata-on-ubuntu-20-04)
- https://gist.github.com/dpino/6c0dca1742093346461e11aa8f608a99
- [Suricata in IPS mode dropping tcp traffic](https://forum.suricata.io/t/suricata-in-ips-mode-dropping-tcp-traffic/1335)