Menu

Nodes not connecting to radiusdesk server

Help
Skeyelab
2015-11-11
2016-01-13
  • Skeyelab

    Skeyelab - 2015-11-11

    I installed radiusdesk on a VPS today and flashed 2 WR841N-v9 routers today. When I pull up the config utility, the address of the VPS comes up. I have everything configured as the set up instructions say and my routers never fetch their config from the server. How can I fix this? What could be going wrong?

     
  • Skeyelab

    Skeyelab - 2015-11-11

    So I am configuring this at work and I think its an issue with our network. I will try again from home tonight where I have better control of the settings.

     
  • Skeyelab

    Skeyelab - 2015-11-12

    So I have made some progress, but things are not running as planned.

    In order to be able to edit any "Node Settings" I had to manually make an entry in the MySQL database. After doing that, the routers seemed to get their settings from the server and now I have a wifi network running. I have done this with both router and things are happy with just one routher hooker up.

    However, when I power on the 2nd one, it never joins the mesh.

     
    • Steven Kusters

      Steven Kusters - 2016-01-13

      Hello,

      I recently bought a WR841N to experiment with, and I must say I am experiencing the same issue with the node settings being "greyed out" as it were.

      I compared my JSON output with yours as well, and it is almost exactly the same.
      So I am, too, wondering what is going on here.

       
  • Filip

    Filip - 2015-11-12

    Hi Skeylab,
    does your VPS respond to ping ?
    My routers never fetched their config from the server until I allowed ping responses
    I dont think it is mentioned anywhere in the documentation made by Dirk. I took me few days to figure it out.

     
  • Skeyelab

    Skeyelab - 2015-11-12

    Yes. Its a newly spun up Ubuntu VPS at digital ocean. The routers fetch the config once at boot, MeshDesk reports they are active, then in 5 mins they go red and never ping again. I assumed they pinged periodically.

    More importantly, the router not connected to the internet (lets call it "B"), never connects to the one that is connected to the net ("A").

    I had issues saving various settings in MeshDesk until i manually duplicated some rows in the database and changed the mesh IDs. I feel like the config script is missing values or stuff is not populated properly when a new mesh is configured.

    I'm hoping to use this system to redo the wifi at my friend's hostel in Croatia, collecting Facebook likes or simply email addresses of the guests to provide wifi access. (Before I go any farther, this will do this, correct?) Is it always this complicated to configure? I will not be on site (I'm in Chicago) and want things to be 100% plug and play. Is it because i used the cheapest router available for the project? I'm willing to try a different router if thats why.

     

    Last edit: Skeyelab 2015-11-12
  • Filip

    Filip - 2015-11-13

    Do you use a two radio AP ?
    I had the same problem and found that when I switch to one radio (2,4Ghz) solution nodes where up and the mesh worked correctly.
    As soon as I changed to a two radio solution one ping and then red...
    The fix for me was removing all the values (leaving an empty field) from HT Capabilities field for the 5GHz Radio,
    The field is found under the 'Advanced' tab when editing a node in your mesh

     
  • Skeyelab

    Skeyelab - 2015-11-13

    No, this is just the WR841N.

    Here is a screenshot of my settings:
    http://cloud.skeyelab.com/image/0Z0x1F0H0Z43

     
  • Dirk van der Walt

    Hi,

    Sorry for comming so late to this discussion.

    I see you use the latest SVN

    I suspect the problems you experience is due to recent enhancements that might have not been propagated to the DB.

    Can you perhaps to the following test. To simulate the node fetching its settings use this as reference:

    http://rd01.wificity.asia/cake2/rd_cake/nodes/get_config_for_node.json?mac=00-C0-CA-8B-42-A0&gateway=true

    Replace the hostmane with your server's IP or hostname and the MAC with the mac of the 841.

    Inspect the JSON output and see that it is without errors.

    Let us know how it went.

    I'll also upload the Chaos Calmer images during the week-end there has been quite a lot of enhancements recenlty.

    Kind regards

     
  • Filip

    Filip - 2015-11-13

    You can still try to remove all HT cap. settings ans see if it helps.
    Otherwise I am surprised you had to mess with the DB. I installed RD a couple times now and never had to mess with it. The only problem I had during the install of RD was that cron and/or anacron somehow didn't install during my minimal network installation but sudo apt-get install cron anacron fixed that.

     
  • Skeyelab

    Skeyelab - 2015-11-13

    @dirk, I am not sure what to look for, but here is what is returned:
    {
    "config_settings": {
    "wireless": [{
    "wifi-device": "radio0",
    "options": {
    "channel": 8,
    "disabled": 0,
    "hwmode": "11g",
    "country": "US",
    "distance": 300,
    "htmode": "HT20",
    "txpower": 21,
    "beacon_int": 100,
    "noscan": 0,
    "diversity": 1,
    "ldpc": 1
    },
    "lists": [{
    "name": "ht_capab",
    "value": "SHORT-GI-40"
    }, {
    "name": "ht_capab",
    "value": "RX-STBC1"
    }, {
    "name": "ht_capab",
    "value": "TX-STBC"
    }, {
    "name": "ht_capab",
    "value": "DSSS_CCK-40"
    }]

    }, {
    "wifi-iface": "zero",
    "options": {
    "device": "radio0",
    "ifname": "mesh0",
    "network": "mesh",
    "mode": "adhoc",
    "ssid": "02_CA_FE_CA_00_02",
    "bssid": "02:CA:FE:CA:00:02"
    }
    }, {
    "wifi-iface": "one",
    "options": {
    "device": "radio0",
    "ifname": "one0",
    "mode": "ap",
    "encryption": "psk-mixed",
    "network": "one",
    "ssid": "meshdesk_config",
    "key": "radiusdesk",
    "hidden": "1"
    }
    }, {
    "wifi-iface": "two",
    "options": {
    "device": "radio0",
    "ifname": "two0",
    "mode": "ap",
    "network": "ex_three",
    "encryption": "none",
    "ssid": "Cheetah guest",
    "key": "",
    "hidden": false,
    "isolate": true,
    "auth_server": "",
    "auth_secret": ""
    }
    }, {
    "wifi-iface": "three",
    "options": {
    "device": "radio0",
    "ifname": "three0",
    "mode": "ap",
    "network": "lan",
    "encryption": "psk2",
    "ssid": "Cheetah wireless",
    "key": "cheetahwireless",
    "hidden": false,
    "isolate": false,
    "auth_server": "",
    "auth_secret": ""
    }
    }],
    "network": [{
    "interface": "loopback",
    "options": {
    "ifname": "lo",
    "proto": "static",
    "ipaddr": "127.0.0.1",
    "netmask": "255.0.0.0"
    }
    }, {
    "interface": "lan",
    "options": {
    "ifname": "eth0 eth1 bat0.100 bat0.2",
    "type": "bridge",
    "proto": "dhcp"
    }
    }, {
    "interface": "b",
    "options": {
    "ifname": "bat0"
    }
    }, {
    "interface": "mesh",
    "options": {
    "mtu": "1560",
    "proto": "batadv",
    "mesh": "bat0"
    }
    }, {
    "interface": "one",
    "options": {
    "ifname": "bat0.1",
    "proto": "static",
    "ipaddr": "10.5.5.6",
    "netmask": "255.255.255.0",
    "type": "bridge"
    }
    }, {
    "interface": "bat_vlan_one",
    "options": {
    "ifname": "bat0.1",
    "proto": "batadv_vlan",
    "ap_isolation": "0"
    }
    }, {
    "interface": "ex_three",
    "options": {
    "ifname": "bat0.3",
    "type": "bridge"
    }
    }, {
    "interface": "bat_vlan_three",
    "options": {
    "ifname": "bat0.3",
    "proto": "batadv_vlan",
    "ap_isolation": "0"
    }
    }]
    ,
    "system": {
    "password_hash": "$1$gx1BDX3p$8lVzFTYWy8ghcjuwQvMxY.",
    "heartbeat_interval": "60",
    "heartbeat_dead_after": "300",
    "timezone": "CST6CDT,M3.2.0,M11.1.0",
    "gw_dhcp_timeout": "120",
    "gw_use_previous": true,
    "gw_auto_reboot": true,
    "gw_auto_reboot_time": "600",
    "hostname": "Tp2"
    },
    "gateways": [

    ],
    "captive_portals": [{
      "id": "1",
      "mesh_exit_id": "33",
      "radius_1": "104.131.233.174",
      "radius_2": "",
      "radius_secret": "testing123",
      "radius_nasid": "cheetah_cp1",
      "uam_url": "http:\/\/104.131.233.174\/cake2\/rd_cake\/dynamic_details\/chilli_browser_detect\/",
      "uam_secret": "greatsecret",
      "walled_garden": "www.skeyelab.com",
      "swap_octets": false,
      "created": "2014-08-11 12:21:02",
      "modified": "2015-11-13 13:46:37",
      "mac_auth": false,
      "proxy_enable": false,
      "proxy_ip": "69.30.244.107",
      "proxy_port": "3128",
      "proxy_auth_username": "admin",
      "proxy_auth_password": "admin",
      "coova_optional": "dnsparanoia",
      "hslan_if": "br-ex_three",
      "network": "ex_three"
    }],
    "batman_adv": {
      "aggregated_ogms": true,
      "ap_isolation": false,
      "bonding": false,
      "bridge_loop_avoidance": true,
      "fragmentation": true,
      "distributed_arp_table": true,
      "orig_interval": "1000",
      "gw_sel_class": "20"
    }
    

    },
    "success": true,
    "timestamp": 1
    }

     
  • Skeyelab

    Skeyelab - 2015-11-13

    Are the "chaos calmer" images new firmware? or virtualbox images? I am not using a virtual box server

     
  • Skeyelab

    Skeyelab - 2015-11-14

    I think its becoming clear that the commercial product Open Mesh is the way to go. I hoped to save money, but the time in configuring and the need to host my own server is not worth it. Am I missing something?

    I hope this project matures, as I really think there is something here.

     
  • Dirk van der Walt

    Hi,

    You can get the CC images here:

    https://sourceforge.net/projects/radiusdesk/files/MESHdesk/Firmware/CC/TP-Link/

    If you still want to give it another try.

    Yes OpenMesh is probably a better option if you want to have a shrinked wrapped solution with commercial support.

    Thanks, we are constantly improving the software so maybe you can revisit it later.

    Kind regards

     
  • Skeyelab

    Skeyelab - 2015-11-15

    I prefer an open source system and hope these work. I think I left one of my routers in my office and cannot test until tomorrow.

     
  • Skeyelab

    Skeyelab - 2015-11-16

    This is starting to seem promising. Can hardware be mixed? I've got 2 of the routers mentioned above and an tp-link 3600

    Its also going to come down to user experience and how slick the logon process is. so far the built in captive portal looks rather 'dated'. Ultimately want people to check in via facebook, email or bypass code.

    However, Ill deal with that once I get things meshing well.

     
  • Dirk van der Walt

    Sure you can mix diffrerent vendors and also select which radios on those dual radio nodes you want to use for the mesh.

    These days its also fairly easy to locate Atheros based hardware on Alibaba from China where the guys at the factory are helpfull in getting their hardware up and running with the latest OpenWrt.

    This in turn opens a whole new hardware world of options.

    You are welcome to give suggestions how we can make the captive portal more modern, however, it does already support all those options and these options are configured under the Dynamic Login Pages.

    Regards

     
  • Skeyelab

    Skeyelab - 2015-11-16
    Post awaiting moderation.
  • Skeyelab

    Skeyelab - 2015-11-17

    Router B still doesnt seems to get its settings from Router A (gateway).

    I hooked each one up to my internet and booted each up. They each fetched the Meerkat settings frommy server and work when plugged to the internet. Then, I turn Router B off, disconnect it from the internet, put it in another room, and boot it up. I see its SSID come online, but cannot connect to it and it never seems to ping my server. It should at this point right?

    Should I be using the WAN or LAN port to connect to my cable modem at Router A?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.