OpenWrt Forum Archive

Topic: Openwrt + WiFidog + Nanostation2 not blocking

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I've been struggling with this problem for days. I have a nanostation2 that's got the latest kamakazi build on it. I've updated opkg and installed wifidog. No problems here, I can edit the wifidog.conf file and start the service just fine.

The problem is that it doesn't block traffic!

I do have it working with the nightwatch firmware (openwrt) but I don't want to run that. Looking around, I think I need the nanostation to be a router and use the WAN port???

Does anyone have any experience with this and if so, what on earth do I have to do!?

Thanks,

Katie

Hi, Katie.

Can you show us /etc/config/network and /etc/config/wireless on your NS2?

Hi,

Thanks for your help!

/etc/config/network

        config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'dhcp'
        option 'defaultroute' '0'
        option 'peerdns' '0'

And /etc/config/wireless]

        config 'wifi-device' 'wifi0'
        option 'type' 'atheros'
        option 'channel' 'auto'
        option 'antenna' 'auto'
        option 'disabled' '0'
        option 'diversity' '0'

config 'wifi-iface'
        option 'device' 'wifi0'
        option 'network' 'lan'
        option 'mode' 'ap'
        option 'ssid' 'OpenWrt'
        option 'encryption' 'none'

Thanks again,

Katie

(Last edited by joneskatie on 18 Jun 2009, 08:36)

Hi, Katie.

How about this?

/etc/config/network

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
#      option 'ifname' 'eth0'
        option 'ifname' 'wifi0'
        option 'type' 'bridge'
#      option 'proto' 'dhcp'
        option 'proto' 'static'
        option ipaddr   '192.168.1.1'
        option netmask  '255.255.255.0'
#      option 'defaultroute' '0'
#      option 'peerdns' '0'

config 'interface' 'wan'
        option 'ifname' 'eth0'
        option 'proto' 'dhcp'
#      option 'proto' 'static'
#      option ipaddr   192.168.0.1
#      option netmask  255.255.255.0
#      option dns      192.168.0.254
#      option gateway  192.168.0.254

/etc/config/wireless

config 'wifi-device' 'wifi0'
        option 'type' 'atheros'
        option 'channel' 'auto'
        option 'antenna' 'auto'
        option 'disabled' '0'
        option 'diversity' '0'

config 'wifi-iface'
        option 'device' 'wifi0'
#      option 'network' 'lan'
        option 'mode' 'ap'
        option 'ssid' 'OpenWrt'
        option 'encryption' 'none'

Hi.

Mayby like this, sorry.

config 'interface' 'lan'
#      option 'ifname' 'eth0'
        option 'ifname' 'ath0' #<-----
        option 'type' 'bridge'
#      option 'proto' 'dhcp'
        option 'proto' 'static'
        option ipaddr   '192.168.1.1'
        option netmask  '255.255.255.0'
#      option 'defaultroute' '0'
#      option 'peerdns' '0'

Please check out Wlan interface name by ifconfig

regards,
zukky

Hi,

Thanks very much for the help.

I've tried this but I can't update the opkg repository now because there is something up with the routing I think. Ping to google fails with bad address.

ifconfig:

ath0      Link encap:Ethernet  HWaddr 00:15:6D:D2:FD:70  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:256 errors:0 dropped:129 overruns:0 frame:0
          TX packets:114 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:28664 (27.9 KiB)  TX bytes:14843 (14.4 KiB)
~
br-lan    Link encap:Ethernet  HWaddr 00:15:6D:D2:FD:70  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:13421 (13.1 KiB)  TX bytes:5357 (5.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wifi0     Link encap:UNSPEC  HWaddr 00-15-6D-D2-FD-70-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:288 errors:0 dropped:0 overruns:0 frame:65
          TX packets:211 errors:6 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:195 
          RX bytes:28880 (28.2 KiB)  TX bytes:27028 (26.3 KiB)
          Interrupt:3 Memory:b0000000-b00ffffc

Apart from that, I've done what you said. One thing I have noticed is that wan is disabled in the webconfig screen and I cannot enable it.

Thanks,

Katie

Oh and iwconfig:

lo        no wireless extensions.

eth0      no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:"OpenWrt"  Nickname:""
          Mode:Master  Frequency:2.422 GHz  Access Point: 00:15:6D:D2:FD:70   
          Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=1/1  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=73/70  Signal level=-23 dBm  Noise level=-96 dBm
          Rx invalid nwid:90  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

br-lan    no wireless extensions.

You are a genius! Turns out it helps if you plug the ethernet cable in wink

It's all working now. Had to sort a symbolic link out to the /etc/init.d/wifidog in rc.d to make it start on boot but apart from that, I think you might be my most favourite person in the world right now!!

Katie

Hi, Katie.

I'm glad to hear that it works.
I'm not a genius but just a openwrt and wifidog user.

I don't know how you made a symbolic link to rc.d, but you can use this command To start wifidog at boot time.
# /etc/init.d/wifidog enable
This makes symbolic link to rc.d.
Reference
http://kamikaze.openwrt.org/docs/openwr … 350001.3.2

BTW, I love you, too. ;-)
Bye

zukky

I get weak wireless between mt linksys router and pc
but get a strong signal when NS2 is directly connected to a computer
please advise ...

thanks
-sam-

The discussion might have continued from here.