====== MESHdesk troubleshooting tips ====== * These tips might help you troubleshoot the mesh networks you deployed. ---------------------- ===== Did the node contact the back-end ===== * To check if the node is making contact with the back-end you can run a **tail -f** on the Web server's access log file tail -f /var/log/nginx/access.log * Here we see one of the nodes contacted the back-end as a gateway 17.8.20.18 - - [17/Aug/2015:04:01:04 -0400] "GET /cake2/rd_cake/nodes/get_config_for_node.json?mac=E8-DE-27-DD-4F-E8&gateway=true HTTP/1.1" 200 6060 "-" "curl/7.38.0" --------------------------- ===== What did the back-end say? ===== * You can now use that as reference and query the back-end in the same manner to investigate the reply from the back-end. * We suppose our server is http://rd01.wificity.asia. The URL will this be: http://rd01.wificity.asia/cake2/rd_cake/nodes/get_config_for_node.json?mac=E8-DE-27-DD-4F-E8&gateway=true * Here is the return data our server gave the node: { "config_settings": { "wireless": [ { "wifi-device": "radio0", "options": { "channel": "6", "disabled": 0, "hwmode": "11g", "txpower": 21, "country": "ZA" }, "lists": [ ] }, { "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": "bigsecret", "hidden": false, "isolate": false, "auth_server": "", "auth_secret": "" } } ], "network": [ { "interface": "loopback", "options": { "ifname": "lo", "type": "bridge", "proto": "static", "ipaddr": "127.0.0.1", "netmask": "255.0.0.0" } }, { "interface": "lan", "options": { "ifname": "eth0 eth1 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.1", "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$TJn8xhHP$BLhc3QEW54de0V8yCYD\/T.", "heartbeat_interval": 60, "heartbeat_dead_after": 300, "timezone": "SAST-2", "gw_dhcp_timeout": "240", "gw_use_previous": true, "gw_auto_reboot": true, "gw_auto_reboot_time": "300", "hostname": "Node1" }, "gateways": [ ], "captive_portals": [ { "id": "1", "mesh_exit_id": "33", "radius_1": "69.30.244.107", "radius_2": "", "radius_secret": "testing123", "radius_nasid": "cheetah_cp1", "uam_url": "http:\/\/69.30.244.107\/cake2\/rd_cake\/dynamic_details\/chilli_browser_detect\/", "uam_secret": "greatsecret", "walled_garden": "www.radiusdesk.com", "swap_octets": false, "created": "2014-08-11 12:21:02", "modified": "2015-05-10 19:01:07", "mac_auth": false, "proxy_enable": true, "proxy_ip": "69.30.244.107", "proxy_port": "3128", "proxy_auth_username": "admin", "proxy_auth_password": "admin", "coova_optional": "", "hslan_if": "br-ex_three", "network": "ex_three" } ], "batman_adv": { "aggregated_ogms": true, "ap_isolation": false, "bonding": false, "fragmentation": true, "gw_sel_class": 20, "orig_interval": 1000, "bridge_loop_avoidance": false, "distributed_arp_table": true } }, "success": true, "timestamp": 1 } --------------- ===== SSH into the device ===== * You should also be able to connect to the gateway node through ssh. * The gateway node is a DHCP client and you should thus be able to pick it's IP address up from the DHCP server which seed it (Usually a DSL router). * The username is root and the password is the same as the password that you specify for the mesh under the mesh's common settings (The admin password) login as: root root@10.0.0.3's password: BusyBox v1.22.1 (2015-05-02 02:41:19 SAST) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- BARRIER BREAKER (Barrier Breaker, r44952) ----------------------------------------------------- * 1/2 oz Galliano Pour all ingredients into * 4 oz cold Coffee an irish coffee mug filled * 1 1/2 oz Dark Rum with crushed ice. Stir. * 2 tsp. Creme de Cacao ----------------------------------------------------- root@Node-1:~#