parameter | value | description |
---|---|---|
user | string | your username |
passwd | string | your password |
parameter | value | description |
---|---|---|
mac | mac | The mac address of the router, without separator |
version (optional) | int | The revision of the document |
This will retrieve the stored configuration about this router.
If version is not given, the last configuration will be retrieved.
/get_config/04A151301C41/
/get_config/841b5e52bae7/50/
GET /get_config/841b5e52bae7/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
This will store a new configuration for a router.
POST /set_config/ HTTP/1.1
Host: 127.0.0.1
Connection: keep-alive
Content-Length: 1718
User-Agent: curl/7.37.0
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip,deflate
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
{
"active_script_v6": false,
"add_rh": false,
"block_wan": false,
"change_mac_vlan_tv": true,
"client_pro": false,
"date_create": "2014-10-06 15:50:16.463319",
"dhcp_lease": 240,
"dhcpd_dmdns": true,
"dhcpd_endip": "192.168.1.100",
"dhcpd_startip": "192.168.1.10",
"dhcpd_static": [],
"firmware_version": "10",
"get_ip_dhcp": true,
"igmp_version": 2,
"ipv6_service": "",
"lan_ipaddr": "192.168.1.1",
"lan_lease": 240,
"lan_proto": true,
"mac_bridge": "",
"mode_bridge": false,
"mode_cpe": true,
"model": "v2",
"ms_enable": false,
"multicast_pass": true,
"new_mac_vlan_tv": "00:05:69:dd:ee:fe",
"portforward": [],
"rrule": "",
"smbd_autoshare": 1,
"smbd_passwd": "",
"smbd_share_desc": "PARTAGE SAMBA - KBOX",
"smbd_share_directory": "/mnt",
"smbd_share_name": "KBOX",
"smbd_user": "",
"tv_no_vlan": false,
"udpxy_clients": 15,
"udpxy_enable": true,
"udpxy_miface": "vlan1989",
"udpxy_port": 3333,
"update_by": "Jack",
"update_ip": "192.168.1.5",
"upnp_enable": false,
"upnp_lan": true,
"usb_enable": false,
"vlan1971hwname": "et0",
"vlan1971ports": "0t 8",
"vlan1989hwname": "et0",
"vlan1989ports": "0t 4 8",
"vlan1ports": "1 2 3 8*",
"vlan_admin": "vlan2",
"vlan_internet": "vlan1971",
"vlan_tv": "vlan1989",
"wan_dns": [],
"wl0_akm": "psk2",
"wl0_channel": 0,
"wl0_closed": false,
"wl0_crypto": "aes",
"wl0_gmode": 1,
"wl0_maclist": [],
"wl0_macmode": "disabled",
"wl0_nbw": 20,
"wl0_net_mode": "n-only",
"wl0_nmcsidx": 32,
"wl0_nmode": 1,
"wl0_nreqd": 1,
"wl0_radio": true,
"wl0_security_mode": "wpa2_personal",
"wl0_ssid": "KNET_ccddeeff",
"wl0_wpa_psk": "morCrjcV0kKUM",
"workgroup": "WORKGROUP",
"mac_address": "aabbccddeeff"
}
This will retrieve runtime information about the router (cpu, mem, uptime etc).
/infos/04A151301C41/
/infos/841b5e52bae7/
GET /infos/841b5e52bae7/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
This will retrieve all stored configuration for this router.
/all_versions/04A151301C41/
/all_versions/841b5e52bae7/
GET /all_versions/841b5e52bae7/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
Get a m3u file.
/m3u/04A151301C41/
/m3u/841b5e52bae7/
GET /m3u/841b5e52bae7/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
parameter | value | description |
---|---|---|
nb_line (optional) | integer | The number of line you will get back. You will always get the last of them. |
Get router system logs.
Example request URI(s):/log/04A151301C41/
/log/841b5e52bae7/50
GET /log/841b5e52bae7/10/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
parameter | value | description |
---|---|---|
address | string | The address to ping. This can only be an IPv4. |
count (optional) | int | The number of ICMP echo request packet to send. |
pkt_size (optional) | int | The size of each packet, in byte. Can be useful to test the network behavior (MTU etc). |
Ping an host from the router.
Note that the 'count' params must be set in order to use this (misconception, again!)
/ping/04A151301C41/178.250.208.80/
/ping/04A151301C41/178.250.208.80/20/
/ping/841b5e52bae7/178.250.208.80/50/1516/
GET /ping/841b5e52bae7/k-net.fr/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
This will scan the wireless channels around the router.
A lot of handy informations will be retrieved.
GET /scan_wifi/841b5e52bae7/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
Reboot a router.
GET /reboot/841b5e52bae7/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
Reset a router.
GET /reset/841b5e52bae7/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
parameter | value | description |
---|---|---|
address | string | The address to trace. This can only be an IPv4. |
max_hops (optional) | int | Limit the trace to the first 'n' hops. |
max_wait (optional) | int | Limit the waiting time for each probe, in sec. Decrease this value makes the call faster. Must be between 0 and 5, included. |
Run a traceroute from the router.
/trace/841b5e52bae7/178.250.208.80/
/trace/841b5e52bae7/178.250.208.80/10/5/
GET /trace/841b5e52bae7/178.250.208.80/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
parameter | value | description |
---|---|---|
peripheral_mac | string | The mac address to be woken up. |
Wake up a slave.
The call uses a so-called "magic" packet, send through
a wired network.
Also, please note that this call can be used to make a "wake on lan",
and not a "wake on wireless lan".
/trace/841b5e52bae7/eca86baa4597/
GET /trace/841b5e52bae7/eca86baa4597/ HTTP/1.1
User-Agent: curl/7.37.0
Host: 127.0.0.1
Accept: */*
Cookie: PHPSESSID=kvfljqubp0ve1c8j9219c5gp44
Get the list of your mac. Only usefull for simple user, as
admin can play with all of them.
GET /list_mac/ HTTP/1.1
User-Agent: curl/7.37.0
Host: localhost
Accept: */*