News: This forum is now permanently frozen.
Pages: [1]
Topic: Bug in wireless  (Read 3585 times)
« on: February 06, 2014, 05:59:57 »
momothefox *
Posts: 49

m0n0wall 1.8.1
fresh installation
network setup.
LAN 10.10.101.55
WAN 10.10.102.1
OPT1 wlan0 bridged with LAN
DHCP relay to 10.10.10.1 on LAN
"Mark" Disable Spoof Checking on bridge
"Mark" Enable Ralink USB wireless devices
firewall ruls allow any to any on all interfaces

Hardware IBM Desktop with tl-wn7200d which is the USB wifi

the bug is when running AP mode in wireless without security and surfing the net - data is flowing - and i go to my WLAN card utility and switch the network from SSID m0n0 to another one. or .
i disable the wireless card from the utility. m0n0wall panic and show error logs on VGA console

Fatal trap 12:page fault while in kernel mode
cpuid = 0; apic id =00
fault virtual address    = 0xc462a908
fault code                    = supervisor read, page not present
instruction pointer       = 0x20:0xc081249e
stack pointer               = 0x20:0xc087bc3c
frame pointer              = 0x20:0xc087bc68
code segment             = base 0x0, limit 0xfffff, type 0x1b
                                   = DPL 0, pres1, def32 1, gran 1
processor eflags         = interrupt enabled, resume, IOPL = 0
Current process          = 0 (run0 taskq)
trap number                = 12
panic: page fault
cpuid = 0
uptime: 1m17s
cannot dump. Device not defined or unavailable.
automatic reboot in 15 ........

i wonder if it is realy something or it is related to my hardware
m0n0 hardware or my laptop hardware or software

Mohammed Ismail
« Reply #1 on: February 07, 2014, 18:15:43 »
Lee Sharp *****
Posts: 517

A client connecting of disconnecting from the wireless should not crash your system.  Start by making sure your platform is sound.  Run memtext86+ for several passes as that will both test memory, and show problems in CPUs and power supplies.  If it is solid, and reproducible still, let us know.
« Reply #2 on: February 08, 2014, 09:06:52 »
momothefox *
Posts: 49

well, i could not do memtest86+ on that machine. So i took the HDD and USB wifi tl-wn7200d. to another machine, and it is still crashing.


by the way  
i did test that before on pfsense 2.x and it was crashing too. and i thought it might work on m0n0wall 1.8.x

this is my config.xml file

Quote
<?xml version="1.0"?>
<m0n0wall>
   <version>2.0</version>
   <lastchange>1391846311</lastchange>
   <system>
      <hostname>m0n0wall</hostname>
      <domain>local</domain>
      <dnsserver/>
      <dnsallowoverride/>
      <username>admin</username>
      <password>$1$2xGLA75j$W/jiJc00HYBZX7kFjxjQv0</password>
      <timezone>Etc/UTC</timezone>
      <time-update-interval>300</time-update-interval>
      <timeservers>2.m0n0wall.pool.ntp.org</timeservers>
      <webgui>
         <protocol>http</protocol>
         <mbmon>
            <type>C</type>
         </mbmon>
         <certificate/>
         <private-key/>
      </webgui>
      <harddiskstandby/>
   </system>
   <interfaces>
      <lan>
         <if>re0</if>
         <ipaddr>10.10.101.55</ipaddr>
         <subnet>16</subnet>
         <media/>
         <mediaopt/>
      </lan>
      <wan>
         <if>rl0</if>
         <ipaddr>dhcp</ipaddr>
         <subnet/>
         <gateway/>
         <blockpriv/>
         <dhcphostname/>
         <media/>
         <mediaopt/>
      </wan>
      <opt1>
         <descr>WLAN</descr>
         <if>wlan0</if>
         <ipaddr/>
         <subnet>31</subnet>
         <bridge>lan</bridge>
         <enable/>
      </opt1>
   </interfaces>
   <staticroutes>
      <route>
         <interface>lan</interface>
         <network>0.0.0.0/32</network>
         <gateway>10.10.10.1</gateway>
         <descr/>
      </route>
   </staticroutes>
   <pppoe>
      <username/>
      <password/>
      <provider/>
   </pppoe>
   <pptp>
      <username/>
      <password/>
      <local/>
      <subnet/>
      <remote/>
   </pptp>
   <dyndns>
      <type>dyndns</type>
      <username/>
      <password/>
      <host/>
      <mx/>
      <server/>
      <port/>
   </dyndns>
   <dnsupdate/>
   <dhcpd>
      <lan>
         <range>
            <from>192.168.1.100</from>
            <to>192.168.1.199</to>
         </range>
         <defaultleasetime/>
         <maxleasetime/>
         <next-server/>
         <filename/>
      </lan>
   </dhcpd>
   <pptpd>
      <mode/>
      <nunits>16</nunits>
      <redir/>
      <localip/>
      <remoteip/>
   </pptpd>
   <dnsmasq>
      <enable/>
   </dnsmasq>
   <snmpd>
      <syslocation/>
      <syscontact/>
      <rocommunity>public</rocommunity>
   </snmpd>
   <diag/>
   <bridge>
      <nospoofcheck/>
   </bridge>
   <syslog>
      <reverse/>
      <nentries>50</nentries>
      <remoteserver/>
      <remoteport/>
   </syslog>
   <nat>
      <portrange-low/>
      <portrange-high/>
   </nat>
   <filter>
      <rule>
         <type>pass</type>
         <interface>wan</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
         <descr/>
      </rule>
      <rule>
         <type>pass</type>
         <interface>opt1</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
         <descr/>
      </rule>
      <rule>
         <type>pass</type>
         <interface>lan</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
         <descr>Default LAN -&gt; any</descr>
      </rule>
      <rule>
         <type>pass</type>
         <descr>Default IPsec VPN</descr>
         <interface>ipsec</interface>
         <source>
            <any/>
         </source>
         <destination>
            <any/>
         </destination>
      </rule>
      <bypassstaticroutes/>
      <tcpidletimeout/>
   </filter>
   <shaper/>
   <ipsec>
      <dns-interval/>
   </ipsec>
   <aliases/>
   <proxyarp/>
   <wol/>
   <croen>
      <interval>10</interval>
   </croen>
   <wlans>
      <wlan>
         <if>run0</if>
         <descr/>
         <standard>11g</standard>
         <mode>hostap</mode>
         <ssid>m0n0</ssid>
         <channel>8</channel>
         <txpower>23</txpower>
         <wep/>
         <wpa>
            <mode>none</mode>
            <version/>
            <cipher/>
            <psk/>
            <radius>
               <server/>
               <authport/>
               <acctport/>
               <secret/>
            </radius>
         </wpa>
      </wlan>
   </wlans>
   <dhcrelay>
      <server>10.10.10.1</server>
      <lan>
         <enable/>
      </lan>
   </dhcrelay>
</m0n0wall>

« Last Edit: February 08, 2014, 09:13:33 by momothefox »

Mohammed Ismail
« Reply #3 on: February 08, 2014, 18:27:51 »
Lee Sharp *****
Posts: 517

I did some looking and could not find a tl-wn7200d but I did find a tl-wn7200nd, so is that what you have?

If so, I have seen some miss-detections of this card under Linux. http://ubuntuforums.org/showthread.php?t=2038456

Still, it seems odd that this can crash the whole system.
« Reply #4 on: February 09, 2014, 07:36:26 »
momothefox *
Posts: 49

it is tl-wn7200nd ver 1.0, sorry for that.

it is working fine loding firmware fine.
run0 : <1.0> on usbus0
root mount waiting for: usbus0
run0: RT3070,RT3020
run0: firmare RT2870 ver 0.236 loaded

and it is saying in crash report
Quote
Current process          = 0 (run0 taskq)

so it leads me to this
http://www.freebsd.org/cgi/man.cgi?query=run&apropos=0&sektion=4&manpath=FreeBSD+8.4-stable&arch=default&format=html

so in http://svn.m0n0.ch/wall/branches/freebsd8/build/kernelconfigs/M0N0WALL_GENERIC.i386
i cannot find "device runfw"
as it is needed by "run" to work. so it needs to be added to the kernel.
« Last Edit: February 09, 2014, 07:39:22 by momothefox »

Mohammed Ismail
« Reply #5 on: February 13, 2014, 00:51:05 »
brushedmoss ****
Posts: 446

your won't find

device runfw , we don't compile it directly into the kernel, we compile it as a kernel loadable module (so those that don't need it, don't load it !)

see the end of the line in the kernel config

makeoptions   MODULES_OVERRIDE="dummynet glxsb aesni padlock ipfw acpi if_tap if_vlan runfw"

to make this module load, you tick the box in the bottom of the advanced page  (System: Advanced setup)

 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines