Skip to content

Instantly share code, notes, and snippets.

@pedroelsner
Created June 12, 2012 11:45
Show Gist options
  • Save pedroelsner/2917069 to your computer and use it in GitHub Desktop.
Save pedroelsner/2917069 to your computer and use it in GitHub Desktop.
#3 - Kernel FreeBSD
# PF
device pf
device pflog
device pfsync
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_CDNR
options ALTQ_PRIQ
options ALTQ_NOPCC
options ALTQ_DEBUG
# IPFW
options IPFIREWALL # suporte a ipfw
options IPFIREWALL_VERBOSE # suporte aos logs do ipfw
options IPFIREWALL_FORWARD # suporte a ipfw fwd
options IPFIREWALL_VERBOSE_LIMIT=500 # limite do log alterado, evita DoS local
options IPFIREWALL_DEFAULT_TO_ACCEPT # politica de firewall (aberto)
options INCLUDE_CONFIG_FILE
options IPSTEALTH
# NATD
options IPDIVERT # suporte a NAT via socks
# DUMMYNET (QoS)
options DUMMYNET # suporte ao dummynet
options HZ=1000 # altera o clock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment