thanks for  Stefan's good idvice .

i add
3)too common , only dhcpd & pf (no bridge)

internet-router:192.168.1.1--FON192.168.10.1...wifi...rum0[openbsd]axe0---TV

/etc/hostname.rum0
nwid MyPlace
wpakey 70810
dhcp

/etc/hostname.axe0
inet 192.168.0.1 255.255.255.0

/etc/dhcpd.interfaces                                        <
axe0

/etc/dhcpd.conf
option  domain-name "my.domain";
option  domain-name-servers  8.8.8.8;
subnet 192.168.0.0 netmask 255.255.255.0 {
        option routers 192.168.0.1;
        range 192.168.0.10;
}


/etc/pf.conf
OUT="rum0"
int_if="axe0"
table <martians> { 0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 169.254.0.0/16     \
      172.16.0.0/12 192.0.0.0/24 192.0.2.0/24 224.0.0.0/3 \
      192.168.0.0/16 198.18.0.0/15 198.51.100.0/24        \
      203.0.113.0/24 }
set block-policy drop
set loginterface egress
set skip on lo0
match in all scrub (no-df random-id max-mss 1440)
match out on egress inet from !(egress:network) to any nat-to (egress:0)
block in quick on egress from <martians> to any
block return out quick on egress from any to <martians>
block all
pass out quick inet
pass in on $int_if inet


TV get 192.168.0.10
       gateway adress 192.168.0.1
       dns            8.8.8.8

how to rerite pf.conf inorder to access TV from 192.168.10.0/24 ?


by the way , there is /etc/rc.d/hostapd
and
hostapd.conf is
wlan="ath0"
wired="sis0"
table <myess> {
        00:90:4b:0d:fd:c8,
        00:02:6f:21:ea:8b
}
.......

i do not understand hostapd any .
i noticed 'wlan phrase' only

---------
regards

Reply via email to