Различия
Здесь показаны различия между двумя версиями данной страницы.
Следующая версия | Предыдущая версия | ||
abills:docs:other:nat_ipfw_natd:ru [2008/03/15 01:20] asmodeus created |
abills:docs:other:nat_ipfw_natd:ru [2015/12/05 17:50] (текущий) |
||
---|---|---|---|
Строка 4: | Строка 4: | ||
options IPFIREWALL | options IPFIREWALL | ||
options DUMMYNET | options DUMMYNET | ||
+ | options IPDIVERT | ||
**/etc/rc.conf** | **/etc/rc.conf** | ||
Строка 18: | Строка 18: | ||
# /etc/netstart | # /etc/netstart | ||
+ | ====Дополнительные параметры для оптимизации==== | ||
+ | |||
+ | |||
+ | /etc/sysctl.conf | ||
+ | net.inet.ip.fastforwarding=1 | ||
+ | net.inet.ip.portrange.randomized=0 | ||
+ | net.inet.tcp.nolocaltimewait=1 | ||
+ | kern.ipc.nmbclusters=65536 | ||
+ | kern.ipc.maxsockets=204800 | ||
+ | net.inet.ip.dummynet.hash_size=512 | ||
+ | kern.ipc.somaxconn=4096 | ||
+ | net.inet.tcp.maxtcptw=40960 | ||
+ | net.inet.tcp.nolocaltimewait=1 | ||
+ | net.inet.ip.portrange.randomized=0 |