90 lines
3.2 KiB
Diff
90 lines
3.2 KiB
Diff
From: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
Date: Thu, 12 Apr 2018 17:37:29 +0200
|
|
Subject: base-files: move sysctl defaults to /etc/sysctl.d/10-default.conf
|
|
|
|
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
|
|
diff --git a/package/base-files/files/etc/sysctl.conf b/package/base-files/files/etc/sysctl.conf
|
|
index 91a3ac9a02d4344cf8c4c8f93a36193120fc4b95..ae04212f420b185ce525dae444b563128ddf0e11 100644
|
|
--- a/package/base-files/files/etc/sysctl.conf
|
|
+++ b/package/base-files/files/etc/sysctl.conf
|
|
@@ -1,30 +1 @@
|
|
-kernel.panic=3
|
|
-kernel.core_pattern=/tmp/%e.%t.%p.%s.core
|
|
-
|
|
-net.ipv4.conf.default.arp_ignore=1
|
|
-net.ipv4.conf.all.arp_ignore=1
|
|
-net.ipv4.ip_forward=1
|
|
-net.ipv4.icmp_echo_ignore_broadcasts=1
|
|
-net.ipv4.icmp_ignore_bogus_error_responses=1
|
|
-net.ipv4.igmp_max_memberships=100
|
|
-net.ipv4.tcp_fin_timeout=30
|
|
-net.ipv4.tcp_keepalive_time=120
|
|
-net.ipv4.tcp_syncookies=1
|
|
-net.ipv4.tcp_timestamps=1
|
|
-net.ipv4.tcp_sack=1
|
|
-net.ipv4.tcp_dsack=1
|
|
-
|
|
-net.ipv6.conf.default.forwarding=1
|
|
-net.ipv6.conf.all.forwarding=1
|
|
-
|
|
-net.netfilter.nf_conntrack_acct=1
|
|
-net.netfilter.nf_conntrack_checksum=0
|
|
-net.netfilter.nf_conntrack_max=16384
|
|
-net.netfilter.nf_conntrack_tcp_timeout_established=7440
|
|
-net.netfilter.nf_conntrack_udp_timeout=60
|
|
-net.netfilter.nf_conntrack_udp_timeout_stream=180
|
|
-
|
|
-# disable bridge firewalling by default
|
|
-net.bridge.bridge-nf-call-arptables=0
|
|
-net.bridge.bridge-nf-call-ip6tables=0
|
|
-net.bridge.bridge-nf-call-iptables=0
|
|
+# Defaults are configured in /etc/sysctl.d/* and can be customized in this file
|
|
diff --git a/package/base-files/files/etc/sysctl.d/10-default.conf b/package/base-files/files/etc/sysctl.d/10-default.conf
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7c3344dba339514c023c3b13c592e9ce9ca1ff55
|
|
--- /dev/null
|
|
+++ b/package/base-files/files/etc/sysctl.d/10-default.conf
|
|
@@ -0,0 +1,34 @@
|
|
+# Do not edit, changes to this file will be lost on upgrades
|
|
+# /etc/sysctl.conf can be used to customize sysctl settings
|
|
+
|
|
+kernel.panic=3
|
|
+kernel.core_pattern=/tmp/%e.%t.%p.%s.core
|
|
+fs.suid_dumpable=2
|
|
+
|
|
+net.ipv4.conf.default.arp_ignore=1
|
|
+net.ipv4.conf.all.arp_ignore=1
|
|
+net.ipv4.ip_forward=1
|
|
+net.ipv4.icmp_echo_ignore_broadcasts=1
|
|
+net.ipv4.icmp_ignore_bogus_error_responses=1
|
|
+net.ipv4.igmp_max_memberships=100
|
|
+net.ipv4.tcp_fin_timeout=30
|
|
+net.ipv4.tcp_keepalive_time=120
|
|
+net.ipv4.tcp_syncookies=1
|
|
+net.ipv4.tcp_timestamps=1
|
|
+net.ipv4.tcp_sack=1
|
|
+net.ipv4.tcp_dsack=1
|
|
+
|
|
+net.ipv6.conf.default.forwarding=1
|
|
+net.ipv6.conf.all.forwarding=1
|
|
+
|
|
+net.netfilter.nf_conntrack_acct=1
|
|
+net.netfilter.nf_conntrack_checksum=0
|
|
+net.netfilter.nf_conntrack_max=16384
|
|
+net.netfilter.nf_conntrack_tcp_timeout_established=7440
|
|
+net.netfilter.nf_conntrack_udp_timeout=60
|
|
+net.netfilter.nf_conntrack_udp_timeout_stream=180
|
|
+
|
|
+# disable bridge firewalling by default
|
|
+net.bridge.bridge-nf-call-arptables=0
|
|
+net.bridge.bridge-nf-call-ip6tables=0
|
|
+net.bridge.bridge-nf-call-iptables=0
|
|
diff --git a/package/base-files/files/etc/sysctl.d/local.conf b/package/base-files/files/etc/sysctl.d/local.conf
|
|
deleted file mode 100644
|
|
index 891da73df8d61e0c47069d4c6c8cc090f693c0b2..0000000000000000000000000000000000000000
|
|
--- a/package/base-files/files/etc/sysctl.d/local.conf
|
|
+++ /dev/null
|
|
@@ -1 +0,0 @@
|
|
-# local sysctl settings can be stored in this directory
|