summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-30 02:59:09 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-30 02:59:09 +0000
commit61994097f2eb2a14811bfbf2f5e3b4c4449021d7 (patch)
treea39773ac7a0ef1c4e8c7fb4fe6e62946f59ed01a
parentcbddbcdae45a9ab2e453d783a2cd6f8a21b8c1b0 (diff)
unify sysctl.conf, add extra netfilter options (#1996)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7784 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/base-files/files/etc/sysctl.conf (renamed from target/linux/generic-2.4/base-files/etc/sysctl.conf)5
-rw-r--r--target/linux/generic-2.6/base-files/etc/sysctl.conf10
2 files changed, 3 insertions, 12 deletions
diff --git a/target/linux/generic-2.4/base-files/etc/sysctl.conf b/package/base-files/files/etc/sysctl.conf
index e60038cf3..4ad2ab2c2 100644
--- a/target/linux/generic-2.4/base-files/etc/sysctl.conf
+++ b/package/base-files/files/etc/sysctl.conf
@@ -8,5 +8,6 @@ net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_keepalive_time=120
net.ipv4.tcp_syncookies=1
net.ipv4.tcp_timestamps=0
-net.ipv4.ip_conntrack_tcp_timeouts="300 43200 120 60 120 120 10 60 30 120"
-net.ipv4.ip_conntrack_udp_timeouts="60 180"
+net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=3600
+net.ipv4.netfilter.ip_conntrack_udp_timeout=60
+net.ipv4.netfilter.ip_conntrack_udp_timeout_stream=180
diff --git a/target/linux/generic-2.6/base-files/etc/sysctl.conf b/target/linux/generic-2.6/base-files/etc/sysctl.conf
deleted file mode 100644
index a05498cd6..000000000
--- a/target/linux/generic-2.6/base-files/etc/sysctl.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-kernel.panic=3
-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.tcp_fin_timeout=30
-net.ipv4.tcp_keepalive_time=120
-net.ipv4.tcp_syncookies=1
-net.ipv4.tcp_timestamps=0