These are my settings for sysctl.conf
kern.ipc.somaxconn=512
kern.maxproc=2048
kern.maxprocperuid=1024
kern.ipc.nmbclusters=2048
kern.ipc.maxsockets=2048
net.inet.tcp.mssdflt=1440
net.inet.tcp.rfc1323=0
kern.ipc.maxsockbuf=131070
net.inet.tcp.sendspace=32768
net.inet.tcp.recvspace=65535
net.inet.udp.recvspace=65535
net.inet.udp.maxdgram=57344
net.inet.raw.recvspace=65535
net.inet.icmp.icmplim=50
net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=1
net.inet.ip.redirect=0
net.inet.ip.sourceroute=0
net.inet.ip.accept_sourceroute=0
net.inet.icmp.bmcastecho=0
net.inet.icmp.maskrepl=0
net.inet.tcp.delayed_ack=1
net.inet.ip.forwarding=0
net.inet.tcp.strict_rfc1948=1
net.inet.udp.blackhole=1
net.inet.tcp.blackhole=2
net.inet.tcp.always_keepalive=1
net.inet.tcp.keepintvl: 1500
net.inet.tcp.keepinit: 3000
net.inet.ip.fw.verbose=1
net.inet.ip.fw.verbose_limit=65535
kern.coredump=0