From 1a7ade5eb14bc88adf9a922153caacf31d45a92f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Dec 2013 15:55:49 +0100 Subject: adapt to new /etc/sysctl.d --- NEWS | 1 + lib/network/network.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index a608440..7f62638 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- adapt to new /etc/sysctl.d - drakfirewall: add 6881:6999 UDP port range for Bittorrent (this is used by rtorrent) diff --git a/lib/network/network.pm b/lib/network/network.pm index 4030b76..e039821 100644 --- a/lib/network/network.pm +++ b/lib/network/network.pm @@ -468,7 +468,7 @@ sub netprofile_read { sub advanced_settings_read() { my $modprobe = "$::prefix/etc/modprobe.conf"; - my $sysctl = "$::prefix/etc/sysctl.conf"; + my $sysctl = "$::prefix/etc/sysctl.d/51-drakx.conf"; my $msecconf = "$::prefix/etc/security/msec/security.conf"; my $ipv6_disabled = find { /^options ipv6 disable=1$/ } cat_($modprobe); @@ -516,7 +516,7 @@ sub advanced_settings_write { $_ .= "net.ipv4.icmp_echo_ignore_broadcasts=$disable_icmp_broadcasts\n"; $_ .= "net.ipv4.icmp_ignore_bogus_error_responses=$disable_bogus_error_responses\n"; } - } "$::prefix/etc/sysctl.conf"; + } "$::prefix/etc/sysctl.d/51-drakx.conf"; } sub advanced_choose { -- cgit v1.2.1