WLAN USB-Stick @ 2.0.2 and nanobsd
-
Hi guys!
I'm new in this forum and first want to say HELLO to all here :)
I just installed pfsense with nanobsd on a 512MB compact flash card (HWbase: an old IGEL 5/4 thinclient) - I'm very happy, everything looks good.
But unfortunately I got a problem, wanted to set this box as a WLAN - AP up.
My stick seems to be detected, shown up in system-log section as following:
Dec 22 18:20:26 kernel: ugen4.2: <ralink>at usbus4
Dec 22 18:20:26 kernel: run0: <1.0> on usbus4
Dec 22 18:20:26 kernel: run0: MAC/BBP RT3071 (rev 0x021C), RF RT3022 (MIMO 2T2R), address 00:e0:4c:72:b9:88
Dec 22 18:20:26 kernel: run0: firmware RT3071 loadedI thought the stick has to appear as an interface, not?
Nothing happens :-/
Any ideas out there?
Would be great :)
Thanks a lot!!
Chris</ralink>
-
Hi, welcome. :)
It looks to have been detected correctly as run0.
In the webgui go to Interfaces: (assign) and click the '+' symbol at the bottom of the list to add a new interface. Then assign it as run0 from the drop down selection. Then click on Interfaces: OPT1: (probably) and enable the interface. Then fill in the wifi details.At least that's what should happen. ;)
Steve
Edit: I forgot to say that to make the run device come up correctly on boot you need to add the line:
runfw_load="YES"
to /boot/loader.conf.local
You will probably have to create that file. -
Hi Steve,
wow!! :) Thanks a lot! Now it really works great! The solution was so simple ::)
Perfect!!
Happy X-Mas and a happy new year!
Greets from Germany,
Chris -
Hi,
hm…. Unfortunately I was happy too soon :-/
First it looked really good, I could add the interface named OPT1, and could fill out all wireless settings - even AP-mode.
But after saving the config, he tries to bring up the interface - that fails. The system-log says:
Dec 23 09:23:02 kernel: ugen4.2: <ralink>at usbus4
Dec 23 09:23:02 kernel: run0: <1.0> on usbus4
Dec 23 09:23:02 kernel: run0: MAC/BBP RT3071 (rev 0x021C), RF RT3022 (MIMO 2T2R), address 00:e0:4c:72:b9:88
Dec 23 09:23:02 kernel: run0: firmware RT3071 loaded
Dec 23 09:24:24 check_reload_status: Syncing firewall
Dec 23 09:24:31 php: /interfaces_assign.php: Creating rrd update script
Dec 23 09:24:46 apinger: Error while feeding rrdtool: Broken pipe
Dec 23 09:24:51 php: /interfaces_wireless_edit.php: Cloning new wireless interface run0_wlan1
Dec 23 09:24:51 kernel: wlan0: changing name to 'run0_wlan1'
Dec 23 09:24:52 check_reload_status: Syncing firewall
Dec 23 09:25:12 php: /interfaces.php: Cloning new wireless interface run0_wlan0
Dec 23 09:25:12 php: /interfaces.php: Failed to clone interface run0 with error code 1, output ifconfig: SIOCIFCREATE2: Input/output error
Dec 23 09:25:46 php: /interfaces.php: Cloning new wireless interface run0_wlan0
Dec 23 09:25:46 php: /interfaces.php: Failed to clone interface run0 with error code 1, output ifconfig: SIOCIFCREATE2: Input/output error
Dec 23 09:25:46 check_reload_status: Syncing firewall
Dec 23 09:25:46 php: /interfaces.php: Cloning new wireless interface run0_wlan0
Dec 23 09:25:46 php: /interfaces.php: Failed to clone interface run0 with error code 1, output ifconfig: SIOCIFCREATE2: Input/output error
Dec 23 09:25:50 php: /interfaces.php: Cloning new wireless interface run0_wlan0
Dec 23 09:25:50 php: /interfaces.php: Failed to clone interface run0 with error code 1, output ifconfig: SIOCIFCREATE2: Input/output error
Dec 23 09:25:50 php: /interfaces.php: Cloning new wireless interface run0_wlan0
Dec 23 09:25:50 php: /interfaces.php: Failed to clone interface run0 with error code 1, output ifconfig: SIOCIFCREATE2: Input/output error
Dec 23 09:25:50 php: /interfaces.php: The command '/sbin/ifconfig 'run0_wlan0' country 'DE' 'indoor'' returned exit code '1', the output was 'ifconfig: interface run0_wlan0 does not exist'
Dec 23 09:25:50 php: /interfaces.php: The command '/sbin/ifconfig run0_wlan0 mode ''' returned exit code '1', the output was 'ifconfig: interface run0_wlan0 does not exist'
Dec 23 09:25:50 php: /interfaces.php: The command '/sbin/ifconfig run0_wlan0 up mode '' ssid 'novanet_pfsense' protmode 'off' channel any mediaopt hostap -mediaopt adhoc -hidessid -pureg -puren -apbridge -mediaopt turbo -wme authmode open wepmode off ' returned exit code '1', the output was 'ifconfig: interface run0_wlan0 does not exist'
Dec 23 09:25:53 dnsmasq[36212]: exiting on receipt of SIGTERM
Dec 23 09:25:55 dnsmasq[18537]: started, version 2.63 cachesize 10000
Dec 23 09:25:55 dnsmasq[18537]: compile time options: IPv6 GNU-getopt no-DBus i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack
Dec 23 09:25:55 dnsmasq[18537]: reading /etc/resolv.conf
Dec 23 09:25:55 dnsmasq[18537]: using nameserver 83.169.184.161#53
Dec 23 09:25:55 dnsmasq[18537]: using nameserver 83.169.184.225#53
Dec 23 09:25:55 dnsmasq[18537]: ignoring nameserver 127.0.0.1 - local interface
Dec 23 09:25:55 dnsmasq[18537]: ignoring nameserver 127.0.0.1 - local interface
Dec 23 09:25:55 dnsmasq[18537]: read /etc/hosts - 2 addresses
Dec 23 09:25:56 dhcpd: Internet Systems Consortium DHCP Server 4.2.4-P1
Dec 23 09:25:56 dhcpd: Copyright 2004-2012 Internet Systems Consortium.
Dec 23 09:25:56 dhcpd: All rights reserved.
Dec 23 09:25:56 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Dec 23 09:25:56 check_reload_status: updating dyndns opt1
Dec 23 09:25:58 apinger: Exiting on signal 15.
Dec 23 09:25:59 apinger: Starting Alarm Pinger, apinger(22752)
Dec 23 09:25:59 php: /interfaces.php: Creating rrd update script
Dec 23 09:25:59 php: /interfaces.php: Cloning new wireless interface run0_wlan0
Dec 23 09:25:59 php: /interfaces.php: Failed to clone interface run0 with error code 1, output ifconfig: SIOCIFCREATE2: Input/output error
Dec 23 09:25:59 check_reload_status: Reloading filter
–-------What do I wrong? I guess it can't be that hard to get my stick working in AP mode, its already detected by the system.
I got this stick:
http://trust.com/products/product.aspx?artnr=31065Any ideas on that?
Thanks a lot for your help!!
Chris</ralink>
-
Some WiFi drivers and hardware support multiple virtual interfaces but run is not on of them.
Your log shows:
@chrisnbg:Dec 23 09:24:51 php: /interfaces_wireless_edit.php: Cloning new wireless interface run0_wlan1
. . .
Dec 23 09:25:12 php: /interfaces.php: Cloning new wireless interface run0_wlan0
Dec 23 09:25:12 php: /interfaces.php: Failed to clone interface run0 with error code 1, output ifconfig: SIOCIFCREATE2: Input/output errorIt appears you are trying to create two virtual interfaces. Get rid of one of them (preferably run0_wlan1 since you seem to have specified some parameters for run0_wlan0).
-
Bingo ;)
I filled out Section "Wireless" on interfaces tab, then activated the "real" interface.
Now it works, in AP mode (only b / g standard, but that's enough).
Thank you very much!!
-
I set up something similar with a wifi USB stick (zonet, really ralink chipset). Anyways, it gets detected on bootup as run0 and I can manually configure in the web gui. However, upon a reboot, it prompts me to assign the interfaces since it cannot find this interface. If I remove/replace the stick, I can manually configure again.
Any idea where I can fix the config not working on bootup? I've tried with two different systems using the NIC. Once I manually configure, works like a champ. But, I'd like the config to stick. Or should I be looking for something other than a USB wifi stick?
-
Check the second post of this thread (stephenw10 post)
http://forum.pfsense.org/index.php/topic,57045.msg304449.html#msg304449
-
@ptt:
Check the second post of this thread (stephenw10 post)
http://forum.pfsense.org/index.php/topic,57045.msg304449.html#msg304449
Thanks. I'll modify the /boot/loader.conf.local file as it recommends. I was hoping it'd be something so simple. ;)