mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
IDS: Allow to inspect traffic from or to OpenVPN
This commit allows to configure suricata to monitor traffic from or to OpenVPN tunnels. This includes the RW server and all established N2N connections. Because the RW server and/or each N2N connection uses it's own tun? device, it is only possible to enable monitoring all of them or to disable monitoring entirely. Fixes #12111. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
a1cf33ca8f
commit
51b63b4186
@@ -49,6 +49,11 @@ my %ignored=();
|
||||
# the list of zones in an array.
|
||||
my @network_zones = &IDS::get_available_network_zones();
|
||||
|
||||
# Check if openvpn is started and add it to the array of network zones.
|
||||
if ( -e "/var/run/openvpn.pid") {
|
||||
push(@network_zones, "ovpn");
|
||||
}
|
||||
|
||||
my $errormessage;
|
||||
|
||||
# Create files if they does not exist yet.
|
||||
@@ -59,7 +64,8 @@ my %colourhash = (
|
||||
'red' => $Header::colourred,
|
||||
'green' => $Header::colourgreen,
|
||||
'blue' => $Header::colourblue,
|
||||
'orange' => $Header::colourorange
|
||||
'orange' => $Header::colourorange,
|
||||
'ovpn' => $Header::colourovpn
|
||||
);
|
||||
|
||||
&Header::showhttpheaders();
|
||||
@@ -839,7 +845,7 @@ END
|
||||
$checked_input = "checked = 'checked'";
|
||||
}
|
||||
|
||||
print "<td class='base' width='25%'>\n";
|
||||
print "<td class='base' width='20%'>\n";
|
||||
print "<input type='checkbox' name='ENABLE_IDS_$zone_upper' $checked_input>\n";
|
||||
print " $Lang::tr{'enabled on'}<font color='$colourhash{$zone}'> $Lang::tr{$zone_name}</font>\n";
|
||||
print "</td>\n";
|
||||
|
||||
Reference in New Issue
Block a user