Configuring WiFi crashes the system

Started by almodovaris, December 12, 2021, 11:10:13 PM

Previous topic - Next topic
December 12, 2021, 11:10:13 PM Last Edit: December 12, 2021, 11:12:36 PM by almodovaris
Hi, I have already sent the crash report.

When trying to configure WiFi, it crashed. The easy way it says something about cannot clone WiFi adapter, due to lacking BSSID support or something like that.

Here is what works:

<opt4>
      <descr>OPT4</descr>
      <if>ath0_wlan0</if>
      <wireless>
        <mode>hostap</mode>
        <standard>11ng</standard>
        <protmode>off</protmode>
        <ssid>my_own_network</ssid>
        <channel>1</channel>
        <channel_width>ht/20</channel_width>
        <authmode/>
        <txpower>99</txpower>
        <distance>0</distance>
        <regdomain>EIST3</regdomain>
        <regcountry>GB</regcountry>
        <reglocation>indoor</reglocation>
        <wpa>
          <macaddr_acl/>
          <wpa_mode>2</wpa_mode>
          <wpa_key_mgmt>WPA-PSK</wpa_key_mgmt>
          <wpa_pairwise>CCMP</wpa_pairwise>
          <wpa_group_rekey>60</wpa_group_rekey>
          <wpa_gmk_rekey>3600</wpa_gmk_rekey>
          <passphrase>my_own_password</passphrase>
          <ext_wpa_sw/>
          <wpa_eap_client_mode>PEAP</wpa_eap_client_mode>
          <wpa_eap_inner_auth>MSCHAPV2</wpa_eap_inner_auth>
          <wpa_eap_inner_id/>
          <wpa_eap_inner_password/>
          <wpa_eap_cert>61ad9b3de6747</wpa_eap_cert>
          <wpa_eap_ca/>
          <enable/>
        </wpa>
        <auth_server_addr/>
        <auth_server_port/>
        <auth_server_shared_secret/>
        <auth_server_addr2/>
        <auth_server_port2/>
        <auth_server_shared_secret2/>
        <wme>
          <enable/>
        </wme>
        <apbridge>
          <enable/>
        </apbridge>
      </wireless>
      <enable/>
      <ipaddr>192.168.133.8</ipaddr>
      <subnet>24</subnet>
      <spoofmac/>
    </opt4>


I copied it from pfSense, restored the edited config, and this is part of the now working Opnsense config.
OPNsense HW:

Minisforum Venus series UN100C, 16 GB RAM, 512 GB SSD
T-bao N9N Pro, 16 GB RAM, 512 GB SSD

Crashes as in system panic?


Cheers,
Franco

No panic. I get invited nicely to submit a crash report. The firewall does not stop working.

This is the reworked config:

    <opt4>
      <if>ath0_wlan0</if>
      <wireless>
        <mode>hostap</mode>
        <standard>11ng</standard>
        <protmode>off</protmode>
        <ssid>my_own_network</ssid>
        <channel>1</channel>
        <channel_width>ht/20</channel_width>
        <authmode/>
        <txpower>99</txpower>
        <distance>0</distance>
        <regdomain>etsi</regdomain>
        <regcountry>GB</regcountry>
        <reglocation>indoor</reglocation>
        <wpa>
          <macaddr_acl/>
          <auth_algs>1</auth_algs>
          <wpa_mode>2</wpa_mode>
          <wpa_key_mgmt>WPA-PSK</wpa_key_mgmt>
          <wpa_pairwise>CCMP</wpa_pairwise>
          <wpa_group_rekey>60</wpa_group_rekey>
          <wpa_gmk_rekey>3600</wpa_gmk_rekey>
          <passphrase>my_own_password</passphrase>
          <ext_wpa_sw/>
          <ieee8021x/>
          <enable>1</enable>
        </wpa>
        <auth_server_addr/>
        <auth_server_port/>
        <auth_server_shared_secret/>
        <auth_server_addr2/>
        <auth_server_port2/>
        <auth_server_shared_secret2/>
        <wme>
          <enable>1</enable>
        </wme>
        <apbridge>
          <enable>1</enable>
        </apbridge>
        <wep>
          <key/>
        </wep>
        <hidessid/>
        <pureg/>
        <puren>
          <enable>1</enable>
        </puren>
        <ieee8021x/>
        <turbo/>
      </wireless>
      <descr>OPT4</descr>
      <enable>1</enable>
      <spoofmac/>
      <ipaddr>192.168.133.8</ipaddr>
      <subnet>24</subnet>
    </opt4>
OPNsense HW:

Minisforum Venus series UN100C, 16 GB RAM, 512 GB SSD
T-bao N9N Pro, 16 GB RAM, 512 GB SSD

December 13, 2021, 09:48:04 AM #3 Last Edit: December 13, 2021, 09:52:40 AM by chemlud
Do I get this right: You hacked your OPNsense config with a snip from pfsense config.xml and wonder why that doesn't work? :-)
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

No he said it doesn't work unless you stuff the pfSense configuration into the GUI circumventing some sort of validation that seems to be obsolete and needs to be removed from OPNsense. I'll take a look this afternoon. :)


Cheers,
Franco

Hmmm, I configured WAN with a wifi device recently

https://forum.opnsense.org/index.php?topic=25931.msg125088#msg125088

that worked just fine, but the wifi device was already in the (older, as in about 3-4 years old) config.xml.
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....