Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Intrusion Detection and Prevention
»
Suricata legacy mode?
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: Suricata legacy mode? (Read 6576 times)
cobrax2
Newbie
Posts: 36
Karma: 0
Suricata legacy mode?
«
on:
August 08, 2021, 04:28:01 pm »
hi
since i have pppoe on wan, i can't use inline mode with suricata
how can i switch to legacy?
thanks
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Suricata legacy mode?
«
Reply #1 on:
August 09, 2021, 09:38:28 am »
It's easy: don't enable IPS mode.
Cheers,
Franco
Logged
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #2 on:
August 09, 2021, 10:48:39 am »
lol, but does it allow to block then? from what i've read, ids mode only alerts, does not block.
also, does it work on pppoe connections? as it doesnt seem to
thanks
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Suricata legacy mode?
«
Reply #3 on:
August 09, 2021, 11:16:12 am »
I'm not sure what "legacy" is to you. We have PCAP mode (IPS unticked) and Netmap mode (IPS ticked).
Cheers,
Franco
Logged
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #4 on:
August 09, 2021, 11:29:32 am »
yes, pcap is what i am looking for
i come from pfsense, which had snort, and it worked on wan on "legacy mode" that is when the packets are copied instead of it being "inline" and it still worked with a small delay from what i understand, because on a match it still closed the connections.
but if i use suricata, even in ids mode, it doesn't show anything being blocked
isn't it supposed to work with pppoe in ids mode?
thanks again!
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Suricata legacy mode?
«
Reply #5 on:
August 09, 2021, 01:50:06 pm »
Hi,
Ah yes... context
We don't have this out-of -band IP block via pf table, because it's simply insecure. When it blocks, you have already been exploited.
Cheers,
Franco
Logged
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #6 on:
August 09, 2021, 03:25:07 pm »
oh
then what are my choices, seeing that i have a pppoe connection?
or why doesnt suricata work even on lan interface?
thanks
Logged
chemlud
Hero Member
Posts: 2485
Karma: 112
Re: Suricata legacy mode?
«
Reply #7 on:
August 09, 2021, 03:55:38 pm »
...sounds like you are struggeling to get suricata to work at all. which rule sets do you have enabled?
https://docs.opnsense.org/manual/ips.html#choosing-an-interface
... and the whole rest of the documentation will help you to make some decisions. A bit of a difference to snort on pfsense, if you start from the scratch.
«
Last Edit: August 09, 2021, 04:02:39 pm by chemlud
»
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #8 on:
August 09, 2021, 04:08:14 pm »
in the log, it says that it is started, lol
i have some et rules enabled, they are downloaded and seem to be ok.
i just dont know how to make it work.
if "legacy" mode doesnt work, i cant enable suricata on wan, then i cant see if any of the rules get hit, because i have no open ports to the exterior atm.
if i enable it on lan, they also dont seem to work, as i tried some sites that say they test the ids and everything went to the antivirus
Logged
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #9 on:
August 10, 2021, 06:32:58 am »
sorry for my ignorance, i am not an expert, but i am trying to solve my problem
is there any way to do this?
i have another free ethernet port on the router, can i do somehow an instance that connects to the pppoe wan server on that port, decode the pppoe layer and then pass the traffiic to the true wan port, like bridging them? like adding another physical pppoe router in front of the main one without really adding it?
thanks again
«
Last Edit: August 10, 2021, 06:34:33 am by cobrax2
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Suricata legacy mode?
«
Reply #10 on:
August 10, 2021, 08:02:33 am »
Well, run IPS on LAN in that case is what I would have suggested too.
What sort of hardware / network devices are we talking about? Does traffic not pass through or not? If it passes does not not block?
Cheers,
Franco
Logged
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #11 on:
August 10, 2021, 08:16:40 am »
i managed to get it working on lan, but i do have a few services on the server wan side that i'd like to protect: vpn and ssh for now. so i'd like to run suricata on wan.
my setup is: i have a pc, 2 intel gb pci (em0 and em1), one for wan and one for lan. the mb has also a lan adapter that is free. is it possible to use this spare adapter to use it as a ppoe client and then bridge it to the em0 wan adapter somehow so suricata running on em0 will "see" it as standard interface and work on it?
thanks again for your willingness to help me
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Suricata legacy mode?
«
Reply #12 on:
August 10, 2021, 08:19:05 am »
Both protocols are encrypted and will not give you extra security being run through an IDS or IPS.
Cheers,
Franco
Logged
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #13 on:
August 10, 2021, 08:40:31 am »
ok, cool
but i would still want to do it for some other ones that i might add later
is there a way to use the 3rd adapter?
Logged
cobrax2
Newbie
Posts: 36
Karma: 0
Re: Suricata legacy mode?
«
Reply #14 on:
August 10, 2021, 10:59:57 am »
i investigated some more, i think the 3rd adapter must not be in bridge mode, as it will still pass the pppoe authentication to the other adapter.
so it would have to be somehow in router mode, then the other intel would have to be nat'ed but declared somehow as external and run suricata, and the second intel as lan
but then i'd be double nat'ed, which is not good, right?
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
English Forums
»
Intrusion Detection and Prevention
»
Suricata legacy mode?