# $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $ # # This file is read when going to multi-user and its contents piped thru # ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details. # # Uncomment this to prevent users from seeing information about processes that # are being run under another UID. #security.bsd.see_other_uids=0 #kern.corefile=/tmp/%U.%N.%P.core kern.corefile=/tmp/%U.%N.core #kern.metadelay=5 #kern.dirdelay=6 #kern.filedelay=7 net.inet.ip.fw.one_pass=0 net.inet.tcp.rfc1323=0 #net.inet.tcp.msl=7500 net.inet.ip.fw.dyn_keepalive=0 net.inet.ip.fw.dyn_max=20000 # Размер dirhash vfs.ufs.dirhash_maxmem=8388608 # DDos tunes # максимальный размер очереди соединений. kern.ipc.somaxconn=1024 net.inet.tcp.delayed_ack=0 net.inet.tcp.blackhole=2 net.inet.udp.blackhole=1 # maxfiles - автотюнинг в зависимости от maxsockets. #kern.maxfiles=65536 #kern.maxfilesperproc=40000 kern.ipc.maxsockets=36000 net.inet.tcp.maxtcptw=40960 net.inet.tcp.nolocaltimewait=1 # максимальное количество ICMP Unreachable и TCP RST пакетов в секунду net.inet.icmp.icmplim=400 net.inet.ip.portrange.randomized=0 net.inet.ip.portrange.first=10000 #net.local.stream.recvspace=8192 #net.local.stream.sendspace=32768 #net.inet.tcp.recvspace=32768 #net.inet.udp.recvspace=8192 #net.inet.tcp.sendspace=32768 #net.inet.udp.maxdgram=57344