dslreports logo
 
    All Forums Hot Topics Gallery
spc
uniqs
49

ronpaul
@direcpc.com

ronpaul to Belinrahs

Anon

to Belinrahs

Re: [Networking] You can permanently turn off TurboPage and DNS

Here's the basic thing to do, without using the script, just manually.

1. ftp 192.168.0.1
2. login to modem
3. switch to ftp binary mode (type 'bin')
4. cd /cfg0/config/
5. get QA
6. get QD
7. quit ftp
8. edit the QA file, switch the very first line to,
tpcCfEnabled=1 (1=off, 2=on). This is Turbopage, but
not necessary if you don't need the porn blocking.
9. edit th QD file, change the first line to
todnsCfProxyEnabled=1 . This is the DNS Cache,
needed to make OpenDNS work.
10. ftp 192.168.0.1
11. login to modem
12. switch to binary mode again
13. cd /cfg0/config
14. put QA
15. put QD
16. quit ftp, reboot modem

I am suspecting a DW6000 config may be in a different
location, which sucks, because I only have a DW7000 and
figured out how it works, not the DW6000. Maybe do an 'ls'
command in the /cfg0/config directory and then do a get
command for each of those files, zip them up and send them
to me (bitbytebit69@yahoo.com), I can figure out from
that what needs to be done hopefully for the DW6000. It
seems that the /cfg0/config directory does exist, but
may have different config files or something.

Also when editing those files, need to be careful in
Windows, since it can add the line feed character \r\n
instead of just \n, which is why ftp has to use binary
mode. Use Wordpad, not notepad, and save the files with
quotes around the names (as in "QA" and "QD") as a text
file, so it won't make them into QA.txt and QD.txt.

Best probably to zip the files up though and send them
to me, since I can have the script change behavior for
the modem type and make sure it is safe, doing it manually
seems more dangerous and why I wrote the script, so
everything is as deterministic as possible.

TurboPage is a forced Proxying through the modem and on to
the Cache Servers HughesNet uses, may like it better leaving
it on, depends on your experience, and if you really need
the porn blocking features (and also the stats etc...,
things requiring OpenDNS to know your real IP).

Thanks,
Tom
ronpaul

ronpaul

Anon

ftp_dw7000.zip
2,402 bytes
Also here's a revised version of the script not using the send() function, seems it may not be always available, and only used for error messages, so I removed the usage of it.

Belinrahs
I have an ego the size of a small planet
Premium Member
join:2007-09-07
Nashville, MI

3 edits

Belinrahs

Premium Member

Thanks, ronpaul, for the help. I'll be sure to try it.

EDIT: Sent ronpaul an email with the QA and QD files zipped up , fresh from "the beast".

EDIT2: Just reread your asking for the entire cfg0/config directory, and I redid the zip file, and sent it off to you. Cheers!

EDIT3: I tried your new .pl file, and it didn't work, with the following results:

isabling Turbo MODE for 192.168.0.1 using user=XXXXXXX pass=XXXXXXXX
Disabling DNS Cache for 192.168.0.1 using user=XXXXXXX pass=XXXXXXXX
Logging in to HughesNet Modem at 192.168.0.1
Username and Password ACCEPTED
Passive mode entered successfully
Changed to the directory /cfg0/config without any trouble - DOWNLOADING Configiles QA and QD
Changed to BINARY Mode No Problem
Can not Transfer QD file Bad file descriptor
EXITING"

when I retrieved those files I had to do:

get "QA"
get "QD".

the names had to have quotes around them.

Hope this helps, Beli

ronpaul
@direcpc.com

ronpaul

Anon

Interesting, what operating system are you using, is it Windows. I'm guessing the Perl stuff for FTP in Windows, and ftp in Windows in general needs that, so will fix the program to use those in a little bit.

I'm wondering too if it's because your local directory the perl script is using isn't writable by your user permissions in Windows, just one thought offhand I had, then it would fail for the get(). oddly just trying the quotes here in Linux it fails, I'm looking at it more still.

Also interesting looking at the configs for the DW6000, about the same but also have some more stuff that probably is just extra stuff that would work on the DW7000 too. Specifically the 'firewall' features are shown in these configs. Some of the configs have variables they leave out since not setup, which interests me because these modems can do things like port forwarding and some other odd features. Eventually with the knowledge I've learned, could in theory really do some neat stuff with these modems to setup things that they are said to not be possible to do. So thanks for those, does look like it's just simply the ftp stuff for WIndows probably requires quotes, although definitely odd/new to me but I'd believe just about anything like this looking at how Windows can be sometimes (have programmed in both Windows/Linux, so not just a linux person, but hands down Windows API/Libraries can be just loony sometimes).

Thanks,
Tom
ronpaul

ronpaul to Belinrahs

Anon

to Belinrahs
ftp_dw7000.zip
2,515 bytes
I tried to make the ftp command more portable here, and also am trying to change to a directory that should be writable in Windows and also Linux.

Let me know how this goes, definitely strange after researching, seems it has to be the local directory is unwritable when in Perl Land while the script is executing.

Thanks,
Tom

Belinrahs
I have an ego the size of a small planet
Premium Member
join:2007-09-07
Nashville, MI

2 edits

Belinrahs to ronpaul

Premium Member

to ronpaul
I'm using Windows XP pro;
I'm admin, and I'm executing from the root of the drive so that's where "get" would put the files.

I managed to use your manual instructions, and it worked like a charm.

However I'm still interested in helping with this, so any question you have about the 6000, let me know and I'll try whatever.