OPNsense Forum

Archive => 15.1 Legacy Series => Topic started by: hemant908thakur on May 22, 2015, 07:31:40 am

Title: Wifi Configuration
Post by: hemant908thakur on May 22, 2015, 07:31:40 am
How to configure our wifi card? I added wireless network but I am unable to to the name and password to my wifi? how i can give the name and pass-phrase to my wifi.
Title: Re: Wifi Configuration
Post by: franco on May 22, 2015, 11:47:36 am
You can add and modify Wireless settings such as SSID and passphrase from this page: https://your.OPNsense.ip/interfaces_wireless.php
Title: Re: Wifi Configuration
Post by: gregober on May 28, 2015, 10:31:02 am
Hi,

Don't really know where to report bug.

The default WLAN is not auto-detected, even though interface has been assigned.
I had to go through interface assign to assign a second interface (I am using Atheros device which allows this).

Normally the interface should have been detected as a WLAN Interface and allowed config to be done directly at interface level.

Code: [Select]
May 28 08:07:53 OPNsense opnsense: /interfaces.php: The command '/sbin/ifconfig 'ath0_wlan0' inet6 -accept_rtadv' returned exit code '1', the output was 'ifconfig: interface ath0_wlan0 does not exist'
May 28 08:07:53 OPNsense opnsense: /interfaces.php: The command `/sbin/ifconfig 'ath0_wlan0' txcsum rxcsum -tso -lro -polling' failed to execute
May 28 08:07:53 OPNsense opnsense: /interfaces.php: The command `/sbin/ifconfig 'ath0_wlan0' alias '10.100.101.1/24'' failed to execute

Also after I managed to assign yet another interface - I had these errors :

Code: [Select]
May 28 08:19:02 OPNsense opnsense: /interfaces_assign.php: The command '/sbin/ifconfig 'ath0_wlan1' mode ''' returned exit code '1', the output was 'ifconfig: SIOCSIFMEDIA (media): Device not configured'
May 28 08:19:02 OPNsense opnsense: /interfaces_assign.php: The command '/sbin/ifconfig 'ath0_wlan1' up mode '' protmode '' mediaopt hostap -mediaopt adhoc -hidessid -pureg -puren -apbridge -mediaopt turbo -wme authmode open wepmode off '

Title: Re: Wifi Configuration
Post by: franco on May 29, 2015, 04:50:35 pm
Hi gregober,

which version are you running? We've had interface renaming issues with 15.1.10.

I added a bug to the issue tracker:

https://github.com/opnsense/core/issues/200


Thanks so far,
Franco
Title: Re: Wifi Configuration [Dirty Solved ;-)]
Post by: gregober on June 01, 2015, 11:21:55 am
Hi Franco,

I can confirm the interface detection problem. I'll try to comment (if needed) the ticket you created.

This can be "worked around" in a bit dirty way… but if you need wireless to work rapidly, It'll fix your problem (as long as your WiFi card allows the creation of "instances" of interface / sub-interface -- most atheros cards do allow this).

You can go to > Interfaces > Assign > Wireless

Add an interface and map It to your card's interface (parent interface).
Select mode Access Point and save.

Add this interface in > Interfaces > Assign

The interface created should be "ok" - not really nice work around but It will work.



I have also noticed that bridging (as on pfSense) does not work reliably at all when you try to create a bridged network between your LAN and WLAN for example. Maybe the interface declaration will solve this.

Beside that testing of 802.11n seems ok - At least I was able to use that mode in a much more reliable way than with pfSense. Further testing needs to be conducted in order to validate that.


Gratefully Yours
Title: Re: Wifi Configuration
Post by: franco on June 15, 2015, 12:37:56 pm
Hi guys,

is this still the case with the latest 15.1.11.4? We've found that a FreeBSD script gets executed on numerous interface creation which may have been the cause of these troubles (wifi, bridge, vlan, etc).


Cheers,
Franco
Title: Re: Wifi Configuration
Post by: franco on June 22, 2015, 09:29:41 am
I am testing this at the moment, I've found no issues with 15.1.12. Please let me know if the problem persists.