OPNsense Forum

English Forums => Intrusion Detection and Prevention => Topic started by: ngr2001 on January 08, 2025, 04:50:57 PM

Title: Does IPS support IPV6
Post by: ngr2001 on January 08, 2025, 04:50:57 PM
I have IPV6 configured and working very nicely, confirmed on all test sites. I also have IPS in blocking mode on both the WAN & LAN working very nicely, verified via EICAR being blocked.

However, in my IPS logs I have yet to see any WAN traffic associated to my IPv6 Address. Is that normal, does IPS support IPV6, I average about 10 blocked attacks per minute on IPv4, I cant imagine no one is scanning my IPv6 address ?

Title: Re: Does IPS support IPV6
Post by: ngr2001 on January 08, 2025, 09:07:34 PM
Well I think I answered my own questions at least partially.

I just created a new PS routine to download an EICAR file and this time the blocked traffic appeared in the logs as IPV6. So I guess some rules for sure support IPV6, I'm just really surprised that no other rules are firing for IPV6 at the moment. I posted PS routine elsewhere but I might as well share the testing process below, I guess its useful for both testing IPS mode and IPV6 :)



Here are some cleaner instructions for validating that IPS is blocking for the average windows user:


Step 1: Enable the rule ""OPNsense-App-detect/test", located at: Services/Intrusion Detection/Administration/Download

Step 2: Open the PowerShell ISE

Step 3: Paste in the following code

$url = "pkg.opnsense.org/test/eicar.com.txt"
$dest = "C:\temp\eicar.com.txt"
Invoke-RestMethod -Uri $url -OutFile $dest

Step 4: Click the Green Run arrow

Step 5: Check your IPS Alerts, located at: Services/Intrusion Detection/Administration/Alerts. You should see a hit for "OPNsense test eicar virus"

Step 6: Check C:\Temp\ for the creation of any new files named "eicar.com.txt", you should have none and your Powershell ISE should be just sitting there hung looking like its doing nothing, well thats because your IDS is blocking the download.

Congrats.

Title: Re: Does IPS support IPV6
Post by: someone on February 05, 2025, 05:04:30 PM
There are some IPV6 rules, the protocol is not used much, and no I dont get rule hits on IPV6
The bots and hackers mainly use IPV4
And browser hackers are already in your system via the browser when you open their page and its IPV4
Title: Re: Does IPS support IPV6
Post by: seed on February 06, 2025, 11:25:40 PM
Quote from: ngr2001 on January 08, 2025, 04:50:57 PMHowever, in my IPS logs I have yet to see any WAN traffic associated to my IPv6 Address. Is that normal, does IPS support IPV6, I average about 10 blocked attacks per minute on IPv4, I cant imagine no one is scanning my IPv6 address ?


IPS/IDS (Suricata) absolutely supports IPv6.

Quote from: someone on February 05, 2025, 05:04:30 PMThere are some IPV6 rules, the protocol is not used much, and no I dont get rule hits on IPV6
The bots and hackers mainly use IPV4
And browser hackers are already in your system via the browser when you open their page and its IPV4

Most rules match on the data the i beeing transmitted and not on ip addresses itself. If you want to block ips use the firewall. Suricata looks into streams, reassembles packets and matches them against the loaded rulesets.

When using ips the payload is much more interesting than the ip protocol (in most cases).
Title: Re: Does IPS support IPV6
Post by: danderson on February 07, 2025, 10:19:29 PM
yes, supports and shows up in alert logs like v4 does.

see screenshot.
Title: Re: Does IPS support IPV6
Post by: someone on February 08, 2025, 06:16:28 AM
with http extinct most packets trigger off the headers, since payload is encrypted, it can be done
with some extra work
Title: Re: Does IPS support IPV6
Post by: pp25 on March 01, 2025, 10:57:12 PM
Quote from: ngr2001 on January 08, 2025, 09:07:34 PMI just created a new PS routine to download an EICAR file and this time the blocked traffic appeared in the logs as IPV6. So I guess some rules for sure support IPV6, I'm just really surprised that no other rules are firing for IPV6 at the moment. I posted PS routine elsewhere but I might as well share the testing process below, I guess its useful for both testing IPS mode and IPV6 :)

You can test IPv4 or IPv6 explicitly downloading Eicar file from this web site: https://eicar-test.kusivchi.space/
It also allows to choose HTTP or HTTPS in case you'd like to check TLS decryption.