Re: bf_next not NULL!

2016-07-18 Thread Willem Offermans
Hello Adrian and FreeBSD friends,

Great news, I cannot wait till stable/11 is out. Thank you for all your 
effort.

On Sat, Jul 16, 2016 at 08:51:04AM -0700, Adrian Chadd wrote:
> hi!
> 
> both of these should be fixed in stable/11 :)
> 
> 
> -adrian
> 
> 
> On 16 July 2016 at 03:58, Willem Offermans <wil...@offermans.rompen.nl> wrote:
> > Hello FreeBSD friends,
> >
> > On Sat, Jul 16, 2016 at 12:12:40PM +0200, Andrew Stevenson wrote:
> >> Hi,
> >>
> >> I have an Atheros 9227 card in AP mode. It looks like there is some packet 
> >> loss at the wireless layer, resulting in large delays at the IP layer. 
> >> Also, every few days, nothing seems to be able to associate. Restarting 
> >> the interface (/etc/rc.d/netif restart wlan0) fixes that but the possible 
> >> packet loss remains.
> >>
> >> I notice quite numerous errors in dmesg. Bursts of:
> >>
> >> ath0: ath_tx_default_comp: bf 0xfe826aa0: seqno 550: bf_next not 
> >> NULL!
> >> ath0: ath_tx_default_comp: bf 0xfe831d20: seqno 551: bf_next not 
> >> NULL!
> >> ath0: ath_tx_default_comp: bf 0xfe827298: seqno 552: bf_next not 
> >> NULL!
> >> ath0: ath_tx_default_comp: bf 0xfe815bb0: seqno 553: bf_next not 
> >> NULL!
> >> ath0: ath_tx_default_comp: bf 0xfe821160: seqno 554: bf_next not 
> >> NULL!
> >>
> >> That can go on for about 20 lines, plus the ubiquitous:
> >>
> >> ath0: stuck beacon; resetting (bmiss count 4)
> >> ath0: stuck beacon; resetting (bmiss count 4)
> >> ath0: stuck beacon; resetting (bmiss count 4)
> >>
> >> that seems to be pretty regular.
> >>
> >> My card from dmesg:
> >>
> >> ath0:  mem 0x4810-0x4810 irq 21 at device 0.0 on pci4
> >> ath0: [HT] enabling HT modes
> >> ath0: [HT] enabling short-GI in 20MHz mode
> >> ath0: [HT] 1 stream STBC receive enabled
> >> ath0: [HT] 1 stream STBC transmit enabled
> >> ath0: [HT] 2 RX streams; 2 TX streams
> >> ath0: Enabling register serialisation
> >> ath0: AR9227 mac 384.2 RF5133 phy 15.15
> >> ath0: 2GHz radio: 0x; 5GHz radio: 0x00c0
> >>
> >> And ifconfig output:
> >>
> >> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> >> ether 64:70:02:f0:c8:03
> >> inet 10.0.1.1 netmask 0xff00 broadcast 10.0.1.255
> >> inet6 fe80::6670:2ff:fef0:c803%wlan0 prefixlen 64 scopeid 0x6
> >> nd6 options=61<PERFORMNUD,AUTO_LINKLOCAL,NO_RADR>
> >> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g 
> >> status: running
> >> ssid UgH channel 11 (2462 MHz 11g) bssid 64:70:02:f0:c8:03
> >> regdomain ETSI country DE indoor ecm authmode WPA2/802.11i
> >> privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit
> >> txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
> >>
> >> I had previously been using 11ng but have just tried switching to see if 
> >> 11g had the same problems (it seems to).
> >>
> >> I'm running 10.3-STABLE r302736.
> >>
> >> Any ideas?
> >>
> >> Thanks,
> >>
> >
> > Maybe it is not related, maybe it is. I tried to use an Atheros AR938x
> > card in AP mode on FreeBSD 10.3, r302295 and 11.0, r297415 for quite some
> > time now. Of course I got the ``ath0: stuck beacon; resetting (bmiss count
> > 4)`` over and over again. Beside this, I also observed the following
> >   messages:
> >
> > Jul 12 11:15:47 kwik kernel: ath0: ath_edma_tx_processq: Q3: empty?
> > Jul 12 11:15:47 kwik kernel: ath0: ath_edma_tx_processq: Q3: empty?
> > Jul 12 12:13:33 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 
> > 0; skipping
> > Jul 12 15:10:19 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 
> > 0; skipping
> > Jul 12 16:10:32 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 
> > 0; skipping
> > Jul 12 18:40:01 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 
> > 0; skipping
> > Jul 12 18:42:36 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 
> > 0; skipping
> > Jul 12 19:52:05 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 
> > 0; skipping
> > Jul 12 20:11:45 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 
> > 0; skipping
> >
> > and
> >
>

Re: bf_next not NULL!

2016-07-16 Thread Willem Offermans
Hello FreeBSD friends,

On Sat, Jul 16, 2016 at 12:12:40PM +0200, Andrew Stevenson wrote:
> Hi,
> 
> I have an Atheros 9227 card in AP mode. It looks like there is some packet 
> loss at the wireless layer, resulting in large delays at the IP layer. Also, 
> every few days, nothing seems to be able to associate. Restarting the 
> interface (/etc/rc.d/netif restart wlan0) fixes that but the possible packet 
> loss remains.
> 
> I notice quite numerous errors in dmesg. Bursts of:
> 
> ath0: ath_tx_default_comp: bf 0xfe826aa0: seqno 550: bf_next not NULL!
> ath0: ath_tx_default_comp: bf 0xfe831d20: seqno 551: bf_next not NULL!
> ath0: ath_tx_default_comp: bf 0xfe827298: seqno 552: bf_next not NULL!
> ath0: ath_tx_default_comp: bf 0xfe815bb0: seqno 553: bf_next not NULL!
> ath0: ath_tx_default_comp: bf 0xfe821160: seqno 554: bf_next not NULL!
> 
> That can go on for about 20 lines, plus the ubiquitous:
> 
> ath0: stuck beacon; resetting (bmiss count 4)
> ath0: stuck beacon; resetting (bmiss count 4)
> ath0: stuck beacon; resetting (bmiss count 4)
> 
> that seems to be pretty regular.
> 
> My card from dmesg:
> 
> ath0:  mem 0x4810-0x4810 irq 21 at device 0.0 on pci4
> ath0: [HT] enabling HT modes
> ath0: [HT] enabling short-GI in 20MHz mode
> ath0: [HT] 1 stream STBC receive enabled
> ath0: [HT] 1 stream STBC transmit enabled
> ath0: [HT] 2 RX streams; 2 TX streams
> ath0: Enabling register serialisation
> ath0: AR9227 mac 384.2 RF5133 phy 15.15
> ath0: 2GHz radio: 0x; 5GHz radio: 0x00c0
> 
> And ifconfig output:
> 
> wlan0: flags=8843 metric 0 mtu 1500
> ether 64:70:02:f0:c8:03
> inet 10.0.1.1 netmask 0xff00 broadcast 10.0.1.255 
> inet6 fe80::6670:2ff:fef0:c803%wlan0 prefixlen 64 scopeid 0x6 
> nd6 options=61
> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g 
> status: running
> ssid UgH channel 11 (2462 MHz 11g) bssid 64:70:02:f0:c8:03
> regdomain ETSI country DE indoor ecm authmode WPA2/802.11i
> privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit
> txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
> 
> I had previously been using 11ng but have just tried switching to see if 11g 
> had the same problems (it seems to).
> 
> I'm running 10.3-STABLE r302736.
> 
> Any ideas?
> 
> Thanks,
> 

Maybe it is not related, maybe it is. I tried to use an Atheros AR938x 
card in AP mode on FreeBSD 10.3, r302295 and 11.0, r297415 for quite some 
time now. Of course I got the ``ath0: stuck beacon; resetting (bmiss count 
4)`` over and over again. Beside this, I also observed the following 
  messages:

Jul 12 11:15:47 kwik kernel: ath0: ath_edma_tx_processq: Q3: empty?
Jul 12 11:15:47 kwik kernel: ath0: ath_edma_tx_processq: Q3: empty?
Jul 12 12:13:33 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; 
skipping
Jul 12 15:10:19 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; 
skipping
Jul 12 16:10:32 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; 
skipping
Jul 12 18:40:01 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; 
skipping
Jul 12 18:42:36 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; 
skipping
Jul 12 19:52:05 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; 
skipping
Jul 12 20:11:45 kwik kernel: ath0: ath_edma_recv_tasklet: sc_inreset_cnt > 0; 
skipping

and

Jun  9 07:37:57 kwik kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun  9 22:21:35 kwik kernel: ath0: hardware error; resetting
Jun  9 22:21:35 kwik kernel: ath0: 0x 0x 0x, 0x 
0x 0x
Jun  9 22:21:35 kwik kernel: ath0: hardware error; resetting
Jun  9 22:21:35 kwik kernel: ath0: 0x 0x 0x, 0x 
0x 0x
Jun  9 23:07:35 kwik kernel: ath0: stuck beacon; resetting (bmiss count 4)

The Wifi was so unstable that I looked for a different solution.


My card from dmesg:

ath0:  mem 0xfbfe-0xfbff irq 16 at device 0.0 on pci1
ar9300_attach: calling ar9300_hw_attach
ar9300_hw_attach: calling ar9300_eeprom_attach
ar9300_flash_map: unimplemented for now
Restoring Cal data from DRAM
Restoring Cal data from EEPROM
ar9300_hw_attach: ar9300_eeprom_attach returned 0
ath0: [HT] enabling HT modes
ath0: [HT] enabling short-GI in 20MHz mode
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] 3 RX streams; 3 TX streams
ath0: AR9380 mac 448.3 RF5110 phy 3779.2
ath0: 2GHz radio: 0x; 5GHz radio: 0x

wlan0: flags=8c43 metric 0 mtu 
1500
ether c4:6e:1f:1e:b6:32
inet 192.168.5.1 netmask 0xff00 broadcast 192.168.5.255
nd6 options=29
media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng 

Re: nanobsd and mutli vap support

2016-03-11 Thread Willem Offermans
Hello Marten and FreeBSD friends,

On Wed, Mar 09, 2016 at 03:14:52PM +0100, Marten wrote:
> 
> > On Mar 9, 2016, at 2:25 PM, Willem Offermans <wil...@offermans.rompen.nl> 
> > wrote:
> > 
> > Dear Marten and FreeBSD friends,
> > 
> > On Wed, Mar 09, 2016 at 01:49:32PM +0100, Marten wrote:
> >> 
> >>> On Mar 9, 2016, at 11:54 AM, Willem Offermans 
> >>> <wil...@offermans.rompen.nl> wrote:
> >>> 
> >>> Hi Marten and FreeBSD friends,
> >>> 
> >>> On Tue, Mar 08, 2016 at 11:38:22PM +0100, Marten wrote:
> >>>> Hi,
> >>>> 
> >>>> While it tool me a while how get multi  VAP support working on FreeBSD I 
> >>>> made a write
> >>>> up how to get it working… The site is in dutch, but I think the drawing 
> >>>> and configs
> >>>> are clear enough to save some people some time…
> >>>> 
> >>>> http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP 
> >>>> <http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP>
> >>>> 
> >>>> 
> >>>> If another place a full english it wish feel free to copy and translate,
> >>>> where off course I am willing to help...
> >>>> 
> >>>> So thanks for all your work,
> >>>> cheers Marten
> >>> 
> >>> Maybe I have missed the previous e-mails, but could you provide some
> >>> context to your project on makerspaceleiden? I would be highly interested.
> >>> What is ``Alix board'' you are referring to in your text?
> >> 
> >> 
> >> Hi Will,
> >> 
> >> The Alix board are embedded soc boards from pcengines.ch 
> >> <http://pcengines.ch/>  here we also got the atheros wlancards, casings, 
> >> pigtails and antenna’s.
> >> If are looking for hardware you could also check soekris.com 
> >> <http://soekris.com/> .
> >> 
> >> If you need some hardware for testing pls let me know..
> >> 
> >> The MakerSpace a kind of offtopic on this list, so ‘ll email you a longer 
> >> email off list.
> >> 
> >> But in a null shell:
> >> Our infrastructure runs FreeBSD on the core router/firewall, mqtt, mail , 
> >> http server and NanoBSD on the accents points.
> >> We have linux on the door system (RFID+Actuators) and LoraWan Gateway.
> >> There some arduino-code on ESP’s (NodeMCU) for our sensor network that 
> >> posts to the mqtt server..
> >> 
> >> Kinds regards,
> >> Marten
> >> 
> > 
> > I'm planning to ``build'' wireless access points myself. I would love to
> > run them on nanobsd. I prefer to have several networks at the end:
> > 
> > - admin net1
> > - gebruikers net2
> > - gasten net3
> > 
> > Basically the same as you provide in your NetworkSetup_AP. I imagine to
> > tune a firewall such that the networks (i.e. net1, net2, and net3) are
> > separated. So that the users (gebruikers) can use the services of an
> > available server and the guests (gasten) can only use (a limited amount of)
> > the internet and no access or only limited access to the server.
> > 
> > Would this be possible with your approach?
> That is what we do, the filtering is done with pf on the router
> and the router has some jails..
> > 
> > If yes, could you help me to do this project step by step.
> in a limited timespan .. ( or hire me :) )
> > 
> > If yes, probably I need to order the appropriate hardware. Can you be more
> > specific about the hardware you were using?
> > 
> > -Alix board? Which one?
> 
> i think this one:
> http://www.pcengines.ch/alix3d2.htm <http://www.pcengines.ch/alix3d2.htm>
> 
> 
> > -The board needs to be in a case at the end. Which case?
> 
> I would reuse the current cases because i need more space for a 802.3at 
> compliant poe splitter..
> 
> > -Which wireless network adapters?
> > etc.
> I have choose for 11a only and 11g only adapters no 11a/g
>  try to find terminators for not user antenna connectors like:
> 
> http://www.pcengines.ch/mmcxterm.htm
> 
> so something like this
> 
> layer2 : modem <=uplink=> freebsd router <=vlan trunk => switch + PoE <=> 
> wlan trunk => ap’s
> 
> layer3:  internet <->  router/firewall/dhcpd <-> ap <-> notebook
> 
> We have separate 802.3at compliant (try china) adapters to power the ap’s
> 
> I bought the hardware abou

Re: nanobsd and mutli vap support

2016-03-11 Thread Willem Offermans
Hello Marten and FreeBSD friends,

On Thu, Mar 10, 2016 at 11:54:01PM +0100, Marten wrote:
> hi ,
> > 
> > I had a closer look to and deeper thought about your howto
> > (http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP).
> > 
> > 1) Do I understand correctly that a VAP (virtual access point) is nothing 
> > more
> > than a bridge between a vlan and a wlan in hostap mode?
> > 
> no it’s more like a virtual interface stacked on a physical interface.
> The bridge is used to connect it to the vlan .
> 
> https://www.freebsd.org/cgi/man.cgi?query=ieee80211_vap=9=0=FreeBSD+10.0-RELEASE
>  
> 
> 
> 
> Actuallty some config maybe be needed/wished
> to avoid loops by  propagating spanning tree on the vlan interfaces
> 
> man ifconfig => check for edge / stp
> 
> 
> > 2) Why didn't you assign IP addresses to the bridges? Do you do this at a
> >   later stage?
> 
> I have no reason to, but for any interface you can replace “up” for  
> "ip/mask” if you wish to.
> If it has no ip sshd won’t bind to it. For monitoring I would prefer to 
> monitor the ESP/NodeMCU sensors
> that would give trough network performance from the wlan-clients perspective. 
> (packet loss)
> 
> > 
> > 3) From the NetworkSetup_AP:
> > 
> > 
> > ifconfig_wlan0="channel 6 ssid MakerSpaceLeiden_gasten up"
> > ifconfig_wlan1="channel 6 ssid MakerSpaceLeiden_deelnemers up"
> > ifconfig_wlan2="channel 48 ssid MakerSpaceLeiden_5G_gasten up"
> > ifconfig_wlan3="channel 48 ssid MakerSpaceLeiden_5G_deelnemers up"
> > ifconfig_wlan4="channel 6 ssid MakerSpaceLeiden_IoT up"
> > 
> > 
> > The channels will be the same in all access points. Will this lead to
> > instabilities when the access points are in close proximity?
> 
> This is just one acces point, in the space I currently run 4 ap’s (but i 
> could be a much larger number.. )
> where a push the configs from the router to the ap’s. The current space has 
> 300 square meter, but i would
> not surprise me if that triples in the coming years…  This is config has:
> - ip adresses
> - ssid
> - channels
> - ssh-keys
> - remote syslog
> - ntp
> - sysctl
> 
> And since it has key, there is a small shell script that mounts /cfg/ and 
> copies of a tarbal
> with that config, so there is also a backup / restore mechanism.
> 
> and later maybe:
> - bsnmp  to get en set values
> - tx power management (smaller cell and more ap when need)
> - auto up and down scaling combined with the sensor net or clients per ap…
> - auto cycling password’s for the guest work (bottom on the wall and a lcd 
> screen...
> - sflow
> - mqtt posts for clients per network
> - maybe maybe :: radius authentication
> - mqtt-snmp bridge to drive PoE-switch related to information for the sensor 
> netwerk
> 
> 
> 
> cheers Marten
> 
> 

O.K., next try in understanding of VAP. My FreeBSD 10.2 Server has several 
network interfaces:

ath0
bge0
wlan0
vlan2
bridge2

So what you call a VAP is actually expressed by wlan0, which is a virtual 
interface stacked on a physical interface, namely ath0 in this case.

vlan2 is a different interface, but also virtual and stacked on bge0. Its 
purpose is to have a tagged network. Several vlan2 interfaces might be 
combined to a network by switches, that understand vlan and are physically 
connected to bge0. This enables several networks running through the same 
switches.  Is this correct? vlan cannot be directly stacked onto ath0, 
since this would not make sense.

The bridge2 glues all together and ensures that the vlan2 network is 
extended to a wireless endpoint. Is this correct?

I'm not sure what to do with the info provided by your recommendation to 
have a look to edge / stp.

man ifconfig => check for edge / stp 

What is this looping about?

I also don't understand how you get your bridges working, if you do not 
assign IP addresses. 

The info you gave at point 3) is a bit overwhelming. I just picked the 
following:

`` ... where a push the configs from the router to the ap’s''
``.. - ip addresses ''. 

So, do I understand correctly that you push the IP addresses to the APs at 
a later stage.



-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Will

*
W.K. Offermans

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Re: nanobsd and mutli vap support

2016-03-10 Thread Willem Offermans
Hello Marten and FreeBSD friends,

On Wed, Mar 09, 2016 at 03:14:52PM +0100, Marten wrote:
> 
> > On Mar 9, 2016, at 2:25 PM, Willem Offermans <wil...@offermans.rompen.nl> 
> > wrote:
> > 
> > Dear Marten and FreeBSD friends,
> > 
> > On Wed, Mar 09, 2016 at 01:49:32PM +0100, Marten wrote:
> >> 
> >>> On Mar 9, 2016, at 11:54 AM, Willem Offermans 
> >>> <wil...@offermans.rompen.nl> wrote:
> >>> 
> >>> Hi Marten and FreeBSD friends,
> >>> 
> >>> On Tue, Mar 08, 2016 at 11:38:22PM +0100, Marten wrote:
> >>>> Hi,
> >>>> 
> >>>> While it tool me a while how get multi  VAP support working on FreeBSD I 
> >>>> made a write
> >>>> up how to get it working… The site is in dutch, but I think the drawing 
> >>>> and configs
> >>>> are clear enough to save some people some time…
> >>>> 
> >>>> http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP 
> >>>> <http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP>
> >>>> 
> >>>> 
> >>>> If another place a full english it wish feel free to copy and translate,
> >>>> where off course I am willing to help...
> >>>> 
> >>>> So thanks for all your work,
> >>>> cheers Marten
> >>> 
> >>> Maybe I have missed the previous e-mails, but could you provide some
> >>> context to your project on makerspaceleiden? I would be highly interested.
> >>> What is ``Alix board'' you are referring to in your text?
> >> 
> >> 
> >> Hi Will,
> >> 
> >> The Alix board are embedded soc boards from pcengines.ch 
> >> <http://pcengines.ch/>  here we also got the atheros wlancards, casings, 
> >> pigtails and antenna’s.
> >> If are looking for hardware you could also check soekris.com 
> >> <http://soekris.com/> .
> >> 
> >> If you need some hardware for testing pls let me know..
> >> 
> >> The MakerSpace a kind of offtopic on this list, so ‘ll email you a longer 
> >> email off list.
> >> 
> >> But in a null shell:
> >> Our infrastructure runs FreeBSD on the core router/firewall, mqtt, mail , 
> >> http server and NanoBSD on the accents points.
> >> We have linux on the door system (RFID+Actuators) and LoraWan Gateway.
> >> There some arduino-code on ESP’s (NodeMCU) for our sensor network that 
> >> posts to the mqtt server..
> >> 
> >> Kinds regards,
> >> Marten
> >> 
> > 
> > I'm planning to ``build'' wireless access points myself. I would love to
> > run them on nanobsd. I prefer to have several networks at the end:
> > 
> > - admin net1
> > - gebruikers net2
> > - gasten net3
> > 
> > Basically the same as you provide in your NetworkSetup_AP. I imagine to
> > tune a firewall such that the networks (i.e. net1, net2, and net3) are
> > separated. So that the users (gebruikers) can use the services of an
> > available server and the guests (gasten) can only use (a limited amount of)
> > the internet and no access or only limited access to the server.
> > 
> > Would this be possible with your approach?
> That is what we do, the filtering is done with pf on the router
> and the router has some jails..
> > 
> > If yes, could you help me to do this project step by step.
> in a limited timespan .. ( or hire me :) )
> > 
> > If yes, probably I need to order the appropriate hardware. Can you be more
> > specific about the hardware you were using?
> > 
> > -Alix board? Which one?
> 
> i think this one:
> http://www.pcengines.ch/alix3d2.htm <http://www.pcengines.ch/alix3d2.htm>
> 
> 
> > -The board needs to be in a case at the end. Which case?
> 
> I would reuse the current cases because i need more space for a 802.3at 
> compliant poe splitter..
> 
> > -Which wireless network adapters?
> > etc.
> I have choose for 11a only and 11g only adapters no 11a/g
>  try to find terminators for not user antenna connectors like:
> 
> http://www.pcengines.ch/mmcxterm.htm
> 
> so something like this
> 
> layer2 : modem <=uplink=> freebsd router <=vlan trunk => switch + PoE <=> 
> wlan trunk => ap’s
> 
> layer3:  internet <->  router/firewall/dhcpd <-> ap <-> notebook
> 
> We have separate 802.3at compliant (try china) adapters to power the ap’s
> 
> I bought the hardware about 

Re: nanobsd and mutli vap support

2016-03-09 Thread Willem Offermans
Dear Marten and FreeBSD friends,

On Wed, Mar 09, 2016 at 01:49:32PM +0100, Marten wrote:
> 
> > On Mar 9, 2016, at 11:54 AM, Willem Offermans <wil...@offermans.rompen.nl> 
> > wrote:
> > 
> > Hi Marten and FreeBSD friends,
> > 
> > On Tue, Mar 08, 2016 at 11:38:22PM +0100, Marten wrote:
> >> Hi,
> >> 
> >> While it tool me a while how get multi  VAP support working on FreeBSD I 
> >> made a write
> >> up how to get it working… The site is in dutch, but I think the drawing 
> >> and configs
> >> are clear enough to save some people some time…
> >> 
> >> http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP 
> >> <http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP>
> >> 
> >> 
> >> If another place a full english it wish feel free to copy and translate,
> >> where off course I am willing to help...
> >> 
> >> So thanks for all your work,
> >> cheers Marten
> > 
> > Maybe I have missed the previous e-mails, but could you provide some
> > context to your project on makerspaceleiden? I would be highly interested.
> > What is ``Alix board'' you are referring to in your text?
> 
> 
> Hi Will,
> 
> The Alix board are embedded soc boards from pcengines.ch 
> <http://pcengines.ch/>  here we also got the atheros wlancards, casings, 
> pigtails and antenna’s.
> If are looking for hardware you could also check soekris.com 
> <http://soekris.com/> .
> 
> If you need some hardware for testing pls let me know..
> 
> The MakerSpace a kind of offtopic on this list, so ‘ll email you a longer 
> email off list.
> 
> But in a null shell:
> Our infrastructure runs FreeBSD on the core router/firewall, mqtt, mail , 
> http server and NanoBSD on the accents points.
> We have linux on the door system (RFID+Actuators) and LoraWan Gateway.
> There some arduino-code on ESP’s (NodeMCU) for our sensor network that posts 
> to the mqtt server..
> 
> Kinds regards,
> Marten
> 

I'm planning to ``build'' wireless access points myself. I would love to 
run them on nanobsd. I prefer to have several networks at the end:

- admin net1
- gebruikers net2
- gasten net3

Basically the same as you provide in your NetworkSetup_AP. I imagine to 
tune a firewall such that the networks (i.e. net1, net2, and net3) are 
separated. So that the users (gebruikers) can use the services of an 
available server and the guests (gasten) can only use (a limited amount of) 
the internet and no access or only limited access to the server.

Would this be possible with your approach?

If yes, could you help me to do this project step by step.

If yes, probably I need to order the appropriate hardware. Can you be more 
specific about the hardware you were using?

-Alix board? Which one?
-The board needs to be in a case at the end. Which case?
-Which wireless network adapters?
etc.

I might consider to write a detailed manual on this project. This would 
certainly help other people in developing such infrastructure.



-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,

Will

*
 W.K. Offermans

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Re: nanobsd and mutli vap support

2016-03-09 Thread Willem Offermans
Hi Marten and FreeBSD friends,

On Tue, Mar 08, 2016 at 11:38:22PM +0100, Marten wrote:
> Hi,
> 
> While it tool me a while how get multi  VAP support working on FreeBSD I made 
> a write
> up how to get it working… The site is in dutch, but I think the drawing and 
> configs
> are clear enough to save some people some time…
> 
> http://makerspaceleiden.nl/wiki/index.php/NetworkSetup_AP 
> 
> 
> 
> If another place a full english it wish feel free to copy and translate,
> where off course I am willing to help...
> 
> So thanks for all your work,
> cheers Marten

Maybe I have missed the previous e-mails, but could you provide some 
context to your project on makerspaceleiden? I would be highly interested.  
What is ``Alix board'' you are referring to in your text?


-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,

Will

*
 W.K. Offermans

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

coovachilli howto

2016-03-04 Thread Willem Offermans
Dear FreeBSD friends,

Is there a manual on howto setup coovachilli on FreeBSD? 

-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*
W.K. Offermans

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


multiple ssid with hostap

2015-10-16 Thread Willem Offermans
Dear FreeBSD friends,

To enable multiple SSIDs by hostapd, I needed to do the following:

1) add to rc.conf:
wlans_ath0="wlan0 wlan1 ..."
create_args_wlan0="wlanmode hostap"
create_args_wlan1="wlanmode hostap"
...
ifconfig_wlan0="inet 192.168.x.y netmask 255.255.255.0 ssid Wifi0 mode 
11ng channel 1"
ifconfig_wlan1="inet 192.168.a.b netmask 255.255.255.0 ssid Wifi1 mode 
11ng channel 7" 
...

2) create the following files:

/etc/hostapd-wlan0.conf
/etc/hostapd-wlan1.conf

look for documentation to setup above configuration files, for
example:
http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
man hostapd.conf

3) change /etc/rc.d/hostapd by adding:

conf_file="/etc/${name}-wlan0.conf /etc/${name}-wlan1.conf"

Do this BEFORE the following line in /etc/rc.d/hostapd

command_args="-P ${pidfile} -B ${conf_file}" in the file


First of all, this procedure is not well documented.
``man hostapd'' does not explain the possibility of multiple config files.
Can this be changed?

Secondly, I don't like the hack in /etc/rc.d/hostapd. Can we change
/etc/rc.d/hostapd in a way that /etc/hostapd-wlan0.conf and
/etc/hostapd-wlan1.conf are searched for and automagically added in
${conf_file}"?

Out of ``man rc.conf'':


`` On the other hand, if you want to configure your wireless 
interface with 
 hostapd(8), you need to add ``HOSTAP'' to the 
ifconfig_ variable.  
 hostapd(8) will use the settings from 
/etc/hostapd-.conf''

I don't think that this is totally correct. /etc/hostapd-.conf
will not be used without a change to /etc/rc.d/hostapd.



-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Will

*
W.K. Offermans
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: hostapd + freeradius can't connect

2015-05-21 Thread Willem Offermans
Dear FreeBSD friends,

Sorry to interrupt here, but I got triggered by this e-mail thread.

Do I understand correctly that it is possible to connect hostapd with
FreeRadius and OpenLDAP? Would it be possible to do the authentication of
wireless access over the ldap server? If yes, do I need FreeRadius to
intermediate between hostapd and OpenLDAP? 

Is there some documentation around to setup hostapd + OpenLDAP or hostapd +
FreeRadius + OpenLDAP under FreeBSD?

Sorry, to interrp

On Wed, May 20, 2015 at 07:20:33PM +0200, Johann wrote:
 On 2015/05/20 06:29 PM, Johann wrote:
 On 2015/05/16 08:03 AM, Adrian Chadd wrote:
 Hi,
 Has this ever worked?
 
 Yes.
 
 I got it working in April 2012 on FreeBSD 8 and 9. I've used a
 FreeRadius server and a FreeBSD client with wpa_supplicant to test
 it.
 
 At that stage you had to enable the eap_server when you compile hostapd
 
 # echo HOSTAPD_CFLAGS+=-DEAP_SERVER  /etc/src.conf
 # cd /usr/src/usr.sbin/wpa/hostapd
 # make
 # make install
 
 but Bernhard Schmidt fixed it so that EAP_SERVER was enabled by default.
 
 
 Here is the configs that I used:
 
 rc.conf
 hostname=AP-vlan
 wlans_ath0=wlan0
 create_args_wlan0=wlanmode hostap country ZA
 ifconfig_wlan0=146.64.5.5/24 mode 11g channel 6
 defaultrouter=146.64.5.1
 hostapd_enable=YES
 cloned_interfaces=bridge0
 ifconfig_bridge0=addm sis0 addm wlan0 up
 ifconfig_sis0=up
 
 
 hostapd.conf
 interface=wlan0
 ctrl_interface=/var/run/hostapd
 ctrl_interface_group=wheel
 ssid=testAP
 hw_mode=g
 channel=6
 
 wpa=1
 wpa_pairwise=CCMP TKIP
 wpa_key_mgmt=WPA-EAP
 wpa_pairwise=TKIP CCMP
 rsn_pairwise=CCMP
 
 Hope it helps
 
 Regards
 Johann
 ___
 freebsd-wireless@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
 To unsubscribe, send any mail to
 freebsd-wireless-unsubscr...@freebsd.org
 
 Looks like this part of hostapd.conf got lost.
 
 ieee8021x=1
 own_ip_addr=146.64.5.5
 auth_server_addr=146.64.8.25
 auth_server_port=1812
 auth_server_shared_secret=same-as-on-freeradius
 
 Johann
 
 ___
 freebsd-wireless@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
 To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*
 W.K. Offermans
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


captive portal recommendation

2015-05-13 Thread Willem Offermans
Dear FreeBSD friends,

I like to install a ``captive portal'' system
(https://en.wikipedia.org/wiki/Captive_portal) on my running FreeBSD
server. I like to connect possible authentication with a ticket system,
where possible users need to obtain a ticket for web access. The ticket 
should be valid for a limited amount of time.

Can anyone recommend such a system?

-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*
 W.K. Offermans
e-mail: wil...@offermans.rompen.nl

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org