|
我使用FreeBSD 5.1Release做NAT,有可能加上Apache,mysql,mod_php
请大家看看下面我定制的内核合不合适,多谢....
(IPFIREWALL我通过loader.conf加载)
再有如何看出来这个启动的内核是我定制的,多谢!!
machine i386
cpu I686_CPU
ident Neptune
maxusers 32
options SCHED_4BSD
options INET #InterNETworking
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 PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 #Compatible with FreeBSD4
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options IPFILTER
options RANDOM_IP_ID
options TCP_DROP_SYNFIN
options ZERO_COPY_SOCKETS
device crypto
device cryptodev
device hifn
options PANIC_REBOOT_WAIT_TIME=0
options NMBCLUSTERS=4096
makeoptions CONF_CFLAGS=-fno-builtin
options MAXDSIZ=(63UL*1024*1024)
options MAXSSIZ=(4UL*1024*1024)
options DFLDSIZ=(63UL*1024*1024)
options UFS_EXTATTR
options UFS_EXTATTR_AUTOSTART
options GEOM_AES
options GEOM_APPLE
options GEOM_BDE
options GEOM_BSD
options GEOM_GPT
options GEOM_MBR
options GEOM_PC98
options GEOM_SUNLABEL
options QUOTA
device isa
device eisa
device pci
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device psm # PS/2 mouse
device vga # VGA video card driver
device sc
device agp # support several AGP chipsets
device npx
device miibus # MII bus support
device rl # RealTek 8129/8139
device vr # VIA Rhine, Rhine II
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device sl # Kernel SLIP
device ppp # Kernel PPP
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device bpf # Berkeley packet filter
device uhci
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device ukbd # Keyboard |
|