[4/5] red.up: Generate Suricata DNS servers file on reconnect.

Message ID 20191105093202.4488-4-stefan.schantl@ipfire.org
State Accepted
Commit c8b068a2b5a3965e10adf01b0e231cfbd3a0384c
Headers
Series [1/5] ids-functions.pl: Introduce generate_dns_servers_file() |

Commit Message

Stefan Schantl Nov. 5, 2019, 9:32 a.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 src/initscripts/networking/red.up/23-suricata | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
  

Patch

diff --git a/src/initscripts/networking/red.up/23-suricata b/src/initscripts/networking/red.up/23-suricata
index 1514909ee..c0628e9f9 100644
--- a/src/initscripts/networking/red.up/23-suricata
+++ b/src/initscripts/networking/red.up/23-suricata
@@ -19,8 +19,12 @@  if($ids_settings{'ENABLE_IDS'} eq "on") {
 	# Regenerate the file with HOME_NET details.
 	&IDS::generate_home_net_file();
 
-	# Set correct ownership.
+	# Regenerate the file with DNS_SERVERS details.
+	&IDS::generate_dns_servers_file();
+
+	# Set correct ownerships.
 	&IDS::set_ownership("$IDS::homenet_file");
+	&IDS::set_ownership("$IDS::dns_servers_file");
 
 	# Check if suricata is running.
 	if(&IDS::ids_is_running()) {