File: ipaddr.rst

package info (click to toggle)
suricata 1%3A8.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240,704 kB
  • sloc: ansic: 357,736; python: 8,721; sh: 5,043; makefile: 2,411; perl: 570; php: 170
file content (31 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (4)
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
.. _ipaddr:

IP Addresses Match
==================

Matching on IP addresses can be done via the IP tuple parameters or via the iprep keywords (see :doc:`/rules/ip-reputation-rules`).
Some keywords providing interaction with datasets are also available.

ip.src
------

The `ip.src` keyword is a sticky buffer to match on source IP address. It matches on the binary representation
and is compatible with datasets of types `ip` and `ipv4`.

Example:

::

 alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"Inbound bad list"; flow:to_server; ip.src; dataset:isset,badips,type ip,load badips.list; sid:1; rev:1;)

ip.dst
------

The `ip.dst` keyword is a sticky buffer to match on destination IP address. It matches on the binary representation
and is compatible with the dataset of type `ip` and `ipv4`.

Example:

::

 alert tcp $HOME_NET any -> any any (msg:"Outbound bad list"; flow:to_server; ip.dst; dataset:isset,badips,type ip,load badips.list; sid:1; rev:1;)