On Mon, May 9, 2016 at 5:39 PM, <
emre....@btpsec.com> wrote:
> Running suricata in unix-socket runmode just fine for now.
>
> sudo nano /etc/suricata/suricata.yaml
> runmode:single
> sudo service suricata stop
> sudo suricata --unix-socket
>
> suricatasc -c "pcap-file /home/selks-user/mypcaps/real.pcap
> /var/log/suricata"
>
> This works.
Unix-socket mode is for reading (sending rather) pcaps to the suricata
unix socket to be processed by suricata.
The difference between the read (-r) option for reading pcaps with
suricata and unix-socket is that with unix socket you can just "send"
pcaps to be processed by suricata as opposed to the (-r) option where
Suricata needs to start and load all the rules , read the pcap and
then exit - on a per pcap basis/for every pcap.
With unix-socket Suricata loads the rules only once and then just
process each send pcap.
In unix socket (or -r as well ) - you would not be able to use
tcpreplay. For tcpreplay to work as expected suricata need to be
started - listening/sniffing on the interface that tcpreplay is going
to replay the traffic to.
Thanks