FreeBSD - конфиг ядра (связка mpd+freeradius)

Предварительные шаги

Для архитектуры amd64:

 # cd /usr/src/sys/amd64/conf
 # make LINT
 # cp GENERIC CUSTOM

Для архитектуры i386:

 # cd /usr/src/sys/i386/conf
 # make LINT
 # cp GENERIC CUSTOM

Архитектура amd64

 cpu             HAMMER
 ident           CUSTOM
 
 makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols
 
 options         SCHED_ULE               # ULE scheduler
 options         PREEMPTION              # Enable kernel thread preemption
 options         INET                    # InterNETworking
 options         SCTP                    # Stream Control Transmission Protocol
 options         FFS                     # Berkeley Fast Filesystem
 options         SOFTUPDATES             # Enable FFS soft updates support
 options         UFS_ACL                 # Support for access control lists
 options         UFS_DIRHASH             # Improve performance on big directories
 options         UFS_GJOURNAL            # Enable gjournal-based UFS journaling
 options         MD_ROOT                 # MD is a potential root device
 options         CD9660                  # ISO 9660 Filesystem
 options         PROCFS                  # Process filesystem (requires PSEUDOFS)
 options         PSEUDOFS                # Pseudo-filesystem framework
 #options        GEOM_PART_GPT           # GUID Partition Tables.
 #options        GEOM_LABEL              # Provides labelization
 options         COMPAT_43TTY            # BSD 4.3 TTY compat (sgtty)
 options         COMPAT_IA32             # Compatible with i386 binaries
 options         COMPAT_FREEBSD7         # Compatible with FreeBSD7
 options         KTRACE                  # ktrace(1) support
 options         STACK                   # stack(9) support
 options         SYSVSHM                 # SYSV-style shared memory
 options         SYSVMSG                 # SYSV-style message queues
 options         SYSVSEM                 # SYSV-style semaphores
 options         P1003_1B_SEMAPHORES     # POSIX-style semaphores
 options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
 options         PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.
 options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
 options         HWPMC_HOOKS             # Necessary kernel hooks for hwpmc(4)
 options         AUDIT                   # Security event auditing
 options         MAC                     # TrustedBSD MAC Framework
 #options         FLOWTABLE               # per-cpu routing cache
 #options        KDTRACE_FRAME           # Ensure frames are compiled in
 #options        KDTRACE_HOOKS           # Kernel DTrace hooks
 
 # Make an SMP-capable kernel by default
 options         SMP                     # Symmetric MultiProcessor Kernel
 
 # CPU frequency control
 device          cpufreq
 
 # Bus support.
 device          acpi
 device          pci
 
 # ATA and ATAPI devices
 device          ata
 device          atadisk         # ATA disk drives
 device          atapicd         # ATAPI CDROM drives
 options         ATA_STATIC_ID   # Static device numbering
 
 # atkbdc0 controls both the keyboard and the PS/2 mouse
 device          atkbdc          # AT keyboard controller
 device          atkbd           # AT keyboard
 
 device          vga             # VGA video card driver
 
 device          splash          # Splash screen and screen saver support
 # syscons is the default console driver, resembling an SCO console
 device          sc
 
 device          agp             # support several AGP chipsets
 
 # PCI Ethernet NICs that use the common MII bus controller code.
 # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
 device          miibus          # MII bus support
 device          sk              # SysKonnect SK-984x & SK-982x gigabit Ethernet
 
 # Pseudo devices.
 device          loop            # Network loopback
 device          random          # Entropy device
 device          ether           # Ethernet support
 device          pty             # BSD-style compatibility pseudo ttys
 device          md              # Memory "disks"
 
 # The `bpf' device enables the Berkeley Packet Filter.
 # Be aware of the administrative consequences of enabling this!
 # Note that 'bpf' is required for DHCP.
 device          bpf             # Berkeley packet filter
 
 # ----------------- firewall support ----------------------------
 options         IPFIREWALL
 options         IPFIREWALL_VERBOSE
 options         IPDIVERT
 options         IPFIREWALL_DEFAULT_TO_ACCEPT
 options         IPFIREWALL_FORWARD
 options         IPFIREWALL_NAT
 # ---------------------------------------------------------------
 
 # --------------- ipfw queue support ----------------------------
 options         DUMMYNET
 options         LIBALIAS
 # ---------------------------------------------------------------
 
 # ----------------- netgraph support ----------------------------
 options         NETGRAPH
 options         NETGRAPH_ASYNC
 options         NETGRAPH_BPF
 options         NETGRAPH_ECHO
 options         NETGRAPH_IFACE
 options         NETGRAPH_KSOCKET
 options         NETGRAPH_L2TP
 options         NETGRAPH_LMI
 
 options         NETGRAPH_PPP
 options         NETGRAPH_PPTPGRE
 options         NETGRAPH_RFC1490
 options         NETGRAPH_SOCKET
 options         NETGRAPH_TEE
 options         NETGRAPH_TTY
 options         NETGRAPH_UI
 options         NETGRAPH_VJC
 options         NETGRAPH_MPPC_ENCRYPTION
 options         NETGRAPH_TCPMSS
 options         NETGRAPH_CAR
 # --------------------------------------------------------------
 
 # -------------------- quota support ---------------------------
 options         QUOTA
 # --------------------------------------------------------------
 
 # -------------------- RAID ------------------------------------
 options         GEOM_MIRROR
# --------------------------------------------------------------

Комментарии

 
blog/2011/12/freebsd_-_настройка_ядра.txt · Последние изменения: 2011/12/08 15:14 — Антон Бугреев · []