23 августа 2012 г.

HotSpot - freebsd

FIREWALL > > >
#!/bin/sh
ipfw -q -f flush
cmd="ipfw -q add"
ifout="fxp0"
local="re0"
stburdns="62.33.133.2"
localip="192.168.0.0/24"

$cmd 200 divert natd all from any to any via ${ifout}
$cmd 1000 fwd 192.168.0.1,80 tcp from any to any 80 via ${local}
$cmd 1100 allow ip from any to ${stburdns}
$cmd 1200 allow ip from ${stburdns} to any
$cmd 1300 deny ip from ${localip} to any via ${ifout}
$cmd 1400 deny ip from any to ${localip} via ${ifout}

CRON > > >
Добавляем путь: /usr/local/bin 
и команду:
*/1     *     *     *     *     root     php /usr/local/www/data-dist/1/123.php 

KERNEL > > >
options     IPFIREWALL
options     IPFIREWALL_VERBOSE
options     IPFIREWALL_DEFAULT_TO_ACCEPT
options     IPFIREWALL_FORWARD
options     IPDIVERT
options     DUMMYNET

Окончание статьи:
http://www.lissyara.su/articles/freebsd/programms/hotspot/