openbsd athn0 如何设置成没有密码的无线ap?

OpenBSD的安装、升级、更新等日常问题。

版主: chenjun天地乾坤

回复
openbsdsir008
铁 Fe
帖子: 80
注册时间: 2014-03-20 16:19

openbsd athn0 如何设置成没有密码的无线ap?

帖子 openbsdsir008 » 2014-05-05 21:28

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,我该怎么做?

头像
bsdplus
铁 Fe
帖子: 77
注册时间: 2013-08-16 12:02

Re: openbsd athn0 如何设置成没有密码的无线ap?

帖子 bsdplus » 2014-05-06 11:22

去掉/etc/hostname.athn0 中的"wpakey 123456789"试试
=acheng

openbsdsir008
铁 Fe
帖子: 80
注册时间: 2014-03-20 16:19

Re: openbsd athn0 如何设置成没有密码的无线ap?

帖子 openbsdsir008 » 2014-05-11 18:23

谢谢acheng
成功 没有密码的wifi

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客