FreeBSD7.0+opengate+ipfw(网页网关认证)Captive Portal(3)

# Allow IP fragments to pass through
$fwcmd add pass all from any to any frag

# Allow RIPng
### Forwarding IPv4 http connection from unauth client
$fwcmd add 60000 fwd localhost tcp from ${inet}:${imask} to any 80
$fwcmd add 60000 fwd localhost tcp from ${inet}:${imask} to any 443

### Allow http reply for forwarded request
### (it is sent out from localhost but has original source address)
$fwcmd add 60100 pass tcp from any 80 to any out
$fwcmd add 60100 pass tcp from any 443 to any out

# TCP reset notice message for IPv6 http connection
$fwcmd add 60200 reset tcp from any to any 80
$fwcmd add 60300 reset tcp from any to any 443

设置syslog记录日志
修改/etc/syslog.conf添加
local1.*   /var/log/opengate.log
然后自己创建文件:
# touch /var/log/opengate.log
测试
WINDOWS自动获得IP。然后随便在浏览器里输入地址。用BSD下的系统帐户,登陆。(默
认的页面是英文的,你想怎么改都行。)
FreeBSD7.0+opengate+ipfw(网页网关认证)Captive Portal(3)_第1张图片

FreeBSD7.0+opengate+ipfw(网页网关认证)Captive Portal(3)_第2张图片

FreeBSD7.0+opengate+ipfw(网页网关认证)Captive Portal(3)_第3张图片

你可能感兴趣的:(windows,浏览器,tcp,测试,FreeBSD)