Discussion:
Actiontec 701 soft reset?
(too old to reply)
s***@xmission.com
2007-10-27 01:47:41 UTC
Permalink
Has anyone come up with a better way of power-cycling an Actiontek 701 DSL
modem from a scheduled task/cron job/etc?

My modem has needed a theraputic reboot every few weeks ever since I've had
it. Normally, no big deal. But today, it managed to hang just a short time
after I'd left for work, leaving me unable to retrieve some files from my
home network all day. Still not a big problem, but slightly annoying, and
I'm bored enough to try to solve it.

So, I bodged up a script to test for connectivity every 15 minutes or so,
with the idea of bouncing the modem if the line is down. I started with the
idea of a serial/parallel/X10-controlled power switch, but then realized
that I don't need hardware for this: the Actiontec allows you to "save and
restart" on its web interface, so it should be a simple (?) matter to have a
shell script do the same thing.

After some fiddling and digging around in the modem's webpage sources, I
came up with an HTTP request that *should* do the trick...but I haven't
tested it for fear of bricking my modem. Can anyone take a look at this and
tell me if I'm on the right track?

Here's what I came up with:

---cut---
POST /cgi-bin/webcm HTTP/1.0
Authorization: Basic [Password here]
Content-Type: application/x-www-form-urlencoded
Content-Length: 123

getpage=..%2Fhtml%2Fbasic_setup_congrats.html&logic%3Acommand%2Fsave=&var%3Afrom=fromsave&Save+and+Restart=Save+and+Restart
---cut---

Thanks,
-Scott
Truly Truckle
2007-10-27 18:48:46 UTC
Permalink
I found on my interaction that when I telnet'd in and used iptables
(it's running linux) and fire walled all ports except the ones i have
services on the need to kick the 701 completely went away. I didn't take
the time to see just which port and what was going on that would make
it hang up but that corrected it. I have not had to power cycle mine
in six months. when using telnet it takes the same login and password
as the web interface. some rule like
/sbin/iptables -A FORWARD -p tcp -i ppp0 --dport 1:19 -j DROP
/sbin/iptables -A FORWARD -p udp -i ppp0 --dport 1:19 -J DROP
/sbin/iptables -A FORWARD -p tcp -i ppp0 --dport 23:10000 -j DROP
/sbin/iptables -A FORWARD -p udp -i ppp0 --dport 23:10000 -j DROP

the above will block "everthing" execpt ftp and ssh unfortuneatly I have
not figured out a way to save it. there are some problems in the web
firewall setup. where it gives the impression that you can bloc
connections to "inside" ports, it's using the wrong rule. it uses the -s
(source port) flag instead of the -d (destination port)so it actualy
ends up setting an "outbound" rule. it is possible to ftp to/from the
actionteck but the port is different for each revision of the FW usualy
it's someplace around 5376
Post by s***@xmission.com
Has anyone come up with a better way of power-cycling an Actiontek 701 DSL
modem from a scheduled task/cron job/etc?
My modem has needed a theraputic reboot every few weeks ever since I've had
it. Normally, no big deal. But today, it managed to hang just a short time
after I'd left for work, leaving me unable to retrieve some files from my
home network all day. Still not a big problem, but slightly annoying, and
I'm bored enough to try to solve it.
So, I bodged up a script to test for connectivity every 15 minutes or so,
with the idea of bouncing the modem if the line is down. I started with the
idea of a serial/parallel/X10-controlled power switch, but then realized
that I don't need hardware for this: the Actiontec allows you to "save and
restart" on its web interface, so it should be a simple (?) matter to have a
shell script do the same thing.
After some fiddling and digging around in the modem's webpage sources, I
came up with an HTTP request that *should* do the trick...but I haven't
tested it for fear of bricking my modem. Can anyone take a look at this and
tell me if I'm on the right track?
---cut---
POST /cgi-bin/webcm HTTP/1.0
Authorization: Basic [Password here]
Content-Type: application/x-www-form-urlencoded
Content-Length: 123
getpage=..%2Fhtml%2Fbasic_setup_congrats.html&logic%3Acommand%2Fsave=&var%3Afrom=fromsave&Save+and+Restart=Save+and+Restart
---cut---
Thanks,
-Scott
Loading...