如何构建自己的网页认证PORTAL服务器

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

device
kbdmux # keyboard multiplexer
device
vga # VGA video card driver
device
splash
# Splash screen and screen saver support
# syscons is the default console driver, resembling an SCO console
options PREEMPTION
# Enable kernel thread preemption
options INET
# InterNETworking
options INET6
# IPv6 communications protocols
options SCTP
# Stream Control Transmission Protocol
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options ADAPTIVE_GIANT
# Giant mutex is adaptive.
options STOP_NMI
# Stop CPUS using NMI instead of IPI
device
sc
device
agp # support several AGP chipsets
# Add suspend/resume support for the i8254.
3
device
pmtimer
device
le
# AMD Am7900 LANCE and Am79C9xx PCnet
安装 FREEBSD
首先安装 FREEBSD7.0 我采用的是最小化安装,装上 sys ports 和 cvsup 拿来更新 ports 树…(我采用的是 vmware6.0 虚拟两张网卡.一张物理连接.一张连接到 vmnet8 最后 测试的时候我采用 windows 上的 VMware Network Adapter VMnet8 进行测试.本地连接上 随便配置一个 IP 就可以了.)
有兴趣的朋友可以在这里看一下:http://wiki.personaltelco.net/PortalSoftware 这里有很多开源的和商业化的。最后我选到了 Opengate 原因是因为我很多都试过了。感 觉支持不是很好 opengate 是日本 saga 大学维护这个项目。唯一的缺陷是只能在 BSD 下。 呵呵。好。我来大概说一下安装调式的步骤。 首先申明本人仅仅只是对 opengate 的安装过程拿官方的文挡做了简单的翻译和自己实现了 一次的过程,在实现过程中很多都是最简化的配置.在这里并不讨论稳定性和安全性..
device
miibus
# MII bus support
device
bge # Broadcom BCM570xx Gigabit Ethernet
# Pseudo devices.
device
loop # Network loopback
device
random
# Entropy device
device
options AUDIT
# Security event auditing
options IPDIVERT
options IPFIREWALL
options IPFIREWALL_FORWARD
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
---2008-8-24 LoveKDE (qq174375@gmail.com)
1
介绍
如果用过 m0n0wall 这个东西的朋友应该知道里面有个 Captive Portal 功能。就是通过 网页认证的方式来接入 internet.最近无聊,准备选一个 open source 在 linux 下或者 BSD 下 自己做一个。本来准备移植 m0n0 的,但是嫌麻烦。
# 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
ether
# Ethernet support
device
sl
# Kernel SLIP
device
ppp # Kernel PPP
device
tun
# Packet tunnel.
device
pty
# Pseudo-ttys (telnet etc)
device
md
# Memory "disks"
# ATA disk drives
# atkbdc0 controls both the keyboard and the PS/2 mouse
device
atkbdc
# AT keyboard controller
device
atkbd
# AT keyboard
device
psm # PS/2 mouse
配置内核
我的内核配置是这样的:
cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident
MYKERNEL
makeoptions DEBUG=-g
# Build kernel with gdb(1) debug symbols
options SCHED_4BSD
# 4BSD scheduler
FreeBSD7.0+opengate+ipfw Captive Portal ( 网页认证 )
介绍 ................................................................................................................................................. 2 安装 FREEBSD ............................................................................................................................... 2 配置内核 ......................................................................................................................................... 2 编译内核 ......................................................................................................................................... 4 安装 BIND9..................................................................................................................................... 4 安装 isc-dhcp3 ................................................................................................................................. 5 安装 apache22 ................................................................................................................................. 6 rc.conf 文件的基本配置.................................................................................................................. 7 安装 opengate .................................................................................................................................. 8 设置 ipfw 防火墙 ............................................................................................................................ 9 设置 syslog 记录日志 ................................................................................................................... 10 测试 ............................................................................................................................................... 10
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options SCSI_DELAY=5000
# Delay (in ms) before probing SCSI
options KTRACE
# ktrace(1) support
options SYSVSHM
options FFS
# Berkeley Fast Filesystem
options SOFTUPDATES
# Enable FFS soft updates support
options UFS_ACL
# Support for access control lists
options UFS_DIRHASH
# ISO 9660 Filesystem
options PROCFS
# Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_PART_GPT
# GUID Partition Tables.
#options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPSEC
device crypto
device
apic
# I/O APIC
device
cpufreq
device
pci
# ATA and ATAPI devices
device
ata
device
atadisk
options GEOM_LABEL
# Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
# Improve performance on big directories
options UFS_GJOURNAL
# Enable gjournal-based UFS journaling
options MD_ROOT
# MD is a potential root device
Baidu Nhomakorabea
2
options CD9660
相关文档
最新文档