Giada迷你电脑I35V-NP591迷你主机2G/32G家用/办公台式电脑+AR9280 AR5BHB92 802.11ABGN 2.4/5G双频 无线网卡 建立无线ap.
# cat /etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE pppoedev re0 authproto pap authname '******@adsl' authkey '******' up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1
# cat /etc/hostname.re0
up
# cat /etc/hostname.athn0
up media autoselect mediaopt hostap mode 11g chan 6 nwid 123456789 wpakey 123456789
inet 192.168.6.1 255.255.255.0
# cat /etc/sysctl.conf |grep forward
net.inet.ip.forwarding=1 # 1=Permit forwarding (routing) of IPv4 packets
#net.inet.ip.mforwarding=1 # 1=Permit forwarding (routing) of IPv4 multicast packets
#net.inet6.ip6.forwarding=1 # 1=Permit forwarding (routing) of IPv6 packets
#net.inet6.ip6.mforwarding=1 # 1=Permit forwarding (routing) of IPv6 multicast packets
#net.inet6.ip6.accept_rtadv=1 # 1=Permit IPv6 autoconf (forwarding must be 0)
# cat /etc/rc.conf.local
dhcpd_flags=" axe0 axe1 axe2 axe3 athn0"
httpd_flags=""
pkg_scripts="noip2 samba"
# cat /etc/dhcpd.conf
option domain-name-servers 8.8.4.4, 208.67.222.222;
subnet 192.168.6.0 netmask 255.255.255.0 {
option routers 192.168.6.1;
range 192.168.6.32 192.168.6.127;
}
# cat /etc/pf.conf
set skip on lo
block return # block stateless traffic
pass # establish keep-state
block return in on ! lo0 proto tcp to port 6000:6010
#########snat
lan_net="{192.168.2.0/24, 192.168.3.0/24, 192.168.4.0/24, 192.168.6.0/24}"
match on pppoe0 scrub (max-mss 1440)
match out on pppoe0 inet from $lan_net to any nat-to (pppoe0:0)
#reboot
成功建立无线ap
现在我想建立的无线 ap 没有密码就可以访问,开放的wifi,我该怎么做?
openbsd athn0 如何设置成没有密码的无线ap?
-
- 铁 Fe
- 帖子: 80
- 注册时间: 2014-03-20 16:19
Re: openbsd athn0 如何设置成没有密码的无线ap?
谢谢acheng
成功 没有密码的wifi
成功 没有密码的wifi
在线用户
正浏览此版面之用户: 没有注册用户 和 1 访客