pfsense:suricata:rules:breakdown_of_a_rule
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:suricata:rules:breakdown_of_a_rule [2021/01/21 12:11] – [Source IP and Port; Direction; Destination IP and Port] peter | pfsense:suricata:rules:breakdown_of_a_rule [2021/01/22 10:07] (current) – [Rule Options] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PFSense - Suricata - Rules - Breakdown of a rule ====== | ====== PFSense - Suricata - Rules - Breakdown of a rule ====== | ||
- | |||
===== Example Rule ===== | ===== Example Rule ===== | ||
Line 15: | Line 14: | ||
* **(msg:" | * **(msg:" | ||
+ | ---- | ||
<WRAP info> | <WRAP info> | ||
Line 34: | Line 34: | ||
---- | ---- | ||
- | ==== Actions ==== | + | ===== Actions |
Actions are performed in the following precedence order by default if multiple rules exist; but can be changed through Action Order. | Actions are performed in the following precedence order by default if multiple rules exist; but can be changed through Action Order. | ||
Line 45: | Line 45: | ||
---- | ---- | ||
- | ==== Protocol ==== | + | ===== Protocol ==== |
* **ip**: | * **ip**: | ||
Line 58: | Line 58: | ||
---- | ---- | ||
- | ==== Source IP and Port; Direction; Destination IP and Port ==== | + | ===== Source IP and Port; Direction; Destination IP and Port ===== |
< | < | ||
Line 85: | Line 85: | ||
Direction Specification: | Direction Specification: | ||
- | |||
- | * Between the IP and ports is the direction of packet flow: | ||
* **< | * **< | ||
Line 101: | Line 99: | ||
---- | ---- | ||
- | ==== Rule Options ==== | + | ===== Rule Options ===== |
+ | |||
+ | Options fall into different categories: | ||
+ | |||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | |||
+ | ---- | ||
< | < | ||
Line 119: | Line 127: | ||
---- | ---- | ||
- | ---- | + | ==== Other Rule Examples ==== |
- | ---- | + | |
+ | < | ||
alert icmp any any -> \ | alert icmp any any -> \ | ||
any any (msg:" | any any (msg:" | ||
Line 148: | Line 155: | ||
alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg: | alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg: | ||
- | |||
</ | </ | ||
- | |||
- | where: | ||
- | |||
- | * **Action**: | ||
- | * **Header**: | ||
- | * **Options**: | ||
- | |||
- | ---- | ||
---- | ---- | ||
pfsense/suricata/rules/breakdown_of_a_rule.1611231075.txt.gz · Last modified: 2021/01/21 12:11 by peter