DD-WRT executing system commands remotely using cURL

What you need:

1. A router loaded with DD-WRT.
2. cURL – http://curl.haxx.se/ (Windows users may be able to get a precompiled binary with this google search query)
3. The IP address of your router (default is usually
4. The Web GUI username & password of your router.

Here’s is the syntax, just replace the information in red (Note that spaces in your system command must be replaced with + signs):

curl -d "submit_button=Ping&action=ApplyTake&submit_type=start&change_action=gozila_cgi&next_page=Diagnostics.asp&ping_ip=your+system+command" -u username:password

Here is an example to add a static route, using the typical username/password combination:

curl -d "submit_button=Ping&action=ApplyTake&submit_type=start&change_action=gozila_cgi&next_page=Diagnostics.asp&ping_ip=route+add+-net+" -u admin:admin


Linksys WRT54G Wireless Ethernet Bridge

I found that our PS3’s streaming was pretty bad using it’s internal radio, so I setup a wireless bridge using two LinkSys WRT54G’s. One was a version 7 (non-hackable), and the other a version 4 (hackable). I loaded HyperWRT onto the V4 in order to activate the ‘wireless ethernet bridge’ mode.

After PS3 is wired directly into the V4 box, and establishing a wireless bridge between the routers… streaming has improved considerably. Here is view of things today:

Internet -wired-> *WRT54G v7* -wireless->*WRT54G v4* -wired-> PS3

I put the improvement down to the router’s having proper external antenna’s and prehaps more powerful radios. Here are the settings and firmware versions I used:

Main router
Firmware version: 7.00.6
Internet connection: Auto

DHCP server: Enabled

SSID: whateveryoulike
SSID broadcast: enable

Security: WPA Personal
WPA Alogrithm: AES
WPA Shared Key: whateveryoulike

Bridge router
Firmware version: 4.30.1, HyperWRT 2.1b1 +tofu13c
Internet connection: Disabled

LAN Gateway:
LAN Mask:
DHCP server: disabled

Wirless mode: Wireless Ethernet Bridge
SSID: same as main WLAN network
SSID broadcast: enable

Security: WPA Personal
WPA Alogrithm: AES
WPA Shared Key: same as main WLAN network