Problem summary
Thank you in advance for your time and attention.
Miles
Hardware:
What I'm trying to accomplish
My rc.conf file
hostapd.conf
initial
After restarting netif (bridge is fine, wlan is broken).
After restarting hostapd (bridge and wlan are now fine... I think).
- When booting, a bridge is created, but the two member networks are not added.
- if I just do service netif restart, the members are added and the bridge is fine
- but wlan0 is now open instead of secured.
- if I then do service hostapd restart, the wlan0 is back to protected.
Thank you in advance for your time and attention.
Miles
Hardware:
- I'm running 11.0-ALPHA6 on a Raspberry pi 2
- cheap RT5370 wireless adapter.
- The ethernet port is connected to my house router through a powerline adapter.
What I'm trying to accomplish
- a range extender upstairs (lots of concrete/stone in buildings here in Germany)
- a simple backup/file server by connecting a usb drive to it.
- I'm using bridge mode because I believe that Plex really wants to be on the same subnet as my firestick. Boot type stuff was fine when using gateway mode, but plex ran slow.
My rc.conf file
Code:
hostname="malcolm"
ntpd_enable="YES" # keep the system regular
ntpd_sync_on_start="YES"
sshd_enable="YES"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
growfs_enable="YES"
wlans_run0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="ssid rapi mode 11g channel 3 up"
hostapd_enable="YES"
# allow packets to be passed from one network interface to another
gateway_enable="YES" # Enable as LAN gateway
cloned_interfaces="bridge0"
ifconfig_bridge0="addm wlan0 addm ue0 up"
ifconfig_ue0="DHCP"
## PF firewall
pf_enable="YES" # Enable PF (load module if required)
pf_rules="/etc/pf.conf" # rules definition file for pf
pf_flags="" # additional flags for pfctl start up
pflog_enable="YES" # start pflogd(8)
pflog_logfile="/var/log/pflog" # where pflogd should store the logfile
pflog_flags="" # additional flags for pflogd start up
hostapd.conf
Code:
interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=rapi
wpa=2
wpa_passphrase=notactuallymypasscode
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
initial
ifconfig
(note bridge members are missing and wlan0 is secured).
Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
ether b8:27:eb:03:50:49
inet 192.168.0.87 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:1b:5b:e1:94:00
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 7c:dd:90:69:59:22
groups: wlan
ssid rapi channel 3 (2422 MHz 11g) bssid 7c:dd:90:69:59:22
regdomain FCC country US authmode WPA2/802.11i privacy MIXED
deftxkey 2 AES-CCM 2:128-bit txpower 30 scanvalid 60 protmode CTS wme
dtimperiod 1 -dfs
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33184
groups: pflog
After restarting netif (bridge is fine, wlan is broken).
Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
ether b8:27:eb:03:50:49
inet 192.168.0.87 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 7c:dd:90:69:59:22
groups: wlan
ssid rapi channel 3 (2422 MHz 11g) bssid 7c:dd:90:69:59:22
regdomain FCC country US authmode OPEN privacy OFF txpower 30
scanvalid 60 protmode CTS wme dtimperiod 1 -dfs
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:1b:5b:e1:94:00
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: ue0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 2 priority 128 path cost 55
member: wlan0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 3 priority 128 path cost 370370
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>
After restarting hostapd (bridge and wlan are now fine... I think).
Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
ether b8:27:eb:03:50:49
inet 192.168.0.87 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=100<PROMISC> metric 0 mtu 33184
groups: pflog
wlan0: flags=8903<UP,BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 7c:dd:90:69:59:22
groups: wlan
ssid rapi channel 3 (2422 MHz 11g) bssid 7c:dd:90:69:59:22
regdomain FCC country US authmode WPA2/802.11i privacy MIXED
deftxkey 2 AES-CCM 2:128-bit txpower 30 scanvalid 60 protmode CTS wme
dtimperiod 1 -dfs
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:1b:5b:e1:94:00
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: ue0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 2 priority 128 path cost 55
member: wlan0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 3 priority 128 path cost 370370
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>
Last edited by a moderator: