[Script] Unauthorized wireless warning light

Discussion in 'Tomato Firmware' started by yaqui, Aug 30, 2007.

  1. yaqui

    yaqui LI Guru Member

    This script came from an idea from kameleon in another thread.
    It will turn on Amber SES led when unauthorized mac is connected.

    Fill in auth1 , auth2 ..etc with your authorized mac's
    Note: MAC spoofing is easy so this may not be the best warning!

    ## Unauthorized Wireless Conn Notice
    if [ ! -x /tmp/wlnote ] ; then
    cat > /tmp/wlnote <<EOF
    auth1='<your auth'd mac here>'
    auth2='<your auth'd mac here>'
    asstest=$(wl assoclist|grep -ve "$auth1" -ve "$auth2")
    if [ -n "$asstest" ] ; then
       led amber on white off
       logger Unauthorized wireless access attempted!
       led amber off white off
    chmod +x /tmp/wlnote
    cru a wlnote "*/2 * * * *" /tmp/wlnote
  2. Macskeeball

    Macskeeball LI Guru Member

    Why not just use the MAC address filtering built into the firmware? Why make make this into yet another thing you have to monitor and deal with when you could let the router deal with it in a completely automated fashion? Also, for wireless security it's best to just to use WPA with TKIP and a very strong password (extremely long and extremely random).
  3. yaqui

    yaqui LI Guru Member

    Why not eat steak for dinner on Thanksgiving instead of turkey? I don't know I just felt like doing it.

    It doesn't work for me anyways, neither does my other script... driving me nuts I don't know why they don't work.
  4. danix71

    danix71 LI Guru Member

    One of your script is just great: is the one with SES lighting-up when PPPoE connection is made. Keep up the good work and thanks ! :clap:
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice