Home

Forums

Statistics

Surveys

Top Ten

Your Account


Login
Nickname

Password

Security Code: Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like a private journal and posting comments or additions to articles.

Who's Online
There are currently, 10 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

Donations
If you find the information here useful,
help keep this web site online with a donation!
YTD Donations
$1.00
Thank You!

Host referer


  
AnOldMan.com: 2: Toshiba Magnia hacks

Search on This Topic:   
[ Go to Home | Select a New Topic ]

9: Making your Magnia a local NTP TIME SERVER
Posted by anoldman on Monday, April 04 @ 23:32:05 CDT (2832 reads)
Topic 2: Toshiba Magnia hacks
Installing ntpd

First, make sure ntp rpm is installed.
By default a Magnia does not have ntp installed.
These are the packages and install order:

libcap-1.10-8.i386.rpm

ntp-4.1.1-1.i386.rpm


Your mileage may vary, I got a failed dependencies error when installing ntp.

You may already have libcap installed.

Use RPMFIND.NET or RPM.PBONE.NET to find the packages you need.
You will want packages for REDHAT 7.3

Webmin is the easiest way to install them:




(Read More... | 8258 bytes more | Score: 4)

8: A small perl upgrade to make perl tk work
Posted by anoldman on Wednesday, March 10 @ 21:45:37 CST (994 reads)
Topic 2: Toshiba Magnia hacks

I run MisterHouse www.misterhouse.net on my magnia, and wanted the perl tk interface to function properly. I was also getting a DB file access error, said that TK.PM was not found in @inc (perl's version of %PATH%). This is how I got perl tk and tk.pm installed.




(Read More... | 2444 bytes more | comments? | Score: 0)

7: GNOME RPM installation order
Posted by anoldman on Sunday, February 29 @ 13:28:20 CST (1090 reads)
Topic 2: Toshiba Magnia hacks
If you want your VNCserver to serve up more than a text window, you need to install a GUI. After much trial-and-error, here's the install order I ended up with:


(Read More... | 14422 bytes more | comments? | Score: 5)

6: Adding VNCSERVER for remote desktop control (like PCAnyWhere)
Posted by anoldman on Sunday, February 29 @ 13:14:33 CST (2490 reads)
Topic 2: Toshiba Magnia hacks

It is assumed that by now you know how to remotely manage your system.
Most of the other steps on this site must be completed before trying this!


Preparation:
go to rpmfind or rpm.pbone and collect the modules first, or download an ISO of redhat 7.3(recommended)

Installed via package manager in WebMin:
(stick to the install order because of module interdependency)

Modules for XFree86:

Glide3-20010520-13.i386.rpm - Glide runtime
XFree86-font-utils-4.2.0-8.i386.rpm - Font utilities required
XFree86-base-fonts-4.2.0-8.i386.rpm - Base fonts
Xaw3d-1.5-12.i386.rpm - MIT Athena widget set 
XFree86-4.2.0-8.i386.rpm - Core program
XFree86-100dpi-fonts-4.2.0-8.i386.rpm - Fonts
XFree86-75dpi-fonts-4.2.0-8.i386.rpm - Fonts

POSSIBLY optional:
XFree86-tools-4.2.0-8.i386.rpm - Various tools for XFree86
XFree86-xdm-4.2.0-8.i386.rpm - X Display Manager
switchdesk-3.9.8-2.i386.rpm - X Desktop Switcher
xinitrc-3.22-1.noarch.rpm - X default startup script
XFree86-twm-4.2.0-8.i386.rpm - A simple window manager

Modules for Xconfigurator:
gtk+-1.2.10-15.i386.rpm - The Gimp Toolkit
gdk-pixbuf-0.14.0-8.i386.rpm - Image loading library
Xconfigurator-4.10.7-1.i386.rpm - Configuration tool for X

Module for VNC: 
vnc-3.3.7-1.i386.rpm - (www.realvnc.com)

You now have vncserver ready to run.
Open a telnet session, su - to root, and run vncserver :1
supply a password and you are ready to go.
Just start a vncviewer on your desktop and enter the name or IP of the server (ie: 192.168.1.1:1) followed by a :1
You can use WebMin to create a start/stop button in other commands, just remember to set root user and environment.
(if your a true worrywart, please set up a user account - don't use root all the time like I do!)

If you want to set up internet access, remember to do two things:
1. add SSH to vnc - if you can't figure out how... don't do the next step!!
2. open vnc's port in your firewall - 5900 is the default I think, check the vnc documentation.

Now all you need is a GUI like GNOME or KDE and you'll really be cooking!
(there is a trial-and-error module install order list on this site for GNOME)




(Read More... | 2769 bytes more | Score: 5)

5: Adding serial ports to your magnia
Posted by anoldman on Friday, January 23 @ 11:32:19 CST (1479 reads)
Topic 2: Toshiba Magnia hacks

One of the most annoying aspects of the SG20 is the lack of ports for add-ons.

I wanted, very badly, to utilize the machine to run MisterHouse - a perl based home automation program.

All of the required software exists, but there is no serial interface for controlling the X10 modules.

I decided upon a network based serial port.

I have purchased and tested several, the only one I have gotten to work properly - due mostly to lack of linux based drivers - was the COMTROL ROCKETPORT SERIAL HUB.

With this device I now have FOUR external serial ports for my magnia!

The older unit was fairly easy and inexpensive to acquire on eBay - about $50.

I now have MisterHouse running flawlessly on my Magnia!




(Read More... | 7317 bytes more | Score: 5)

4: PORT FORWARDING
Posted by anoldman on Monday, September 29 @ 21:41:55 CDT (3663 reads)
Topic 2: Toshiba Magnia hacks

HOW TO DO IT EVEN THOUGH YOU SHOULDN'T

THIS ARTICLE WORKS, BUT THERE IS AN EASIER WAY NOW.

VISIT UPDATED: Forwarding Ports on your Magnia SG20 FOR MORE INFO

This document assumes you have ftp access to your magnia, or are willing to edit files from a bash prompt (yuck!). If you have ver 2.5xx you will also need to understand IPCHAINS.
If you don’t understand what I just said you are going to have SERIOUS trouble! Go bowling or something.

One of the first things a power user asks after replacing his/her router with a Magnia is "How the heck do I forward ports?"

The short of it is: YOU CAN'T!

Toshiba very thoroughly and completely locked the bugger down tight for security reasons.
Your Magnia is a COMPUTER running SOFTWARE and CAN BE HACKED!! It is not a simple router with firmware!

If you want to access stuff on the other side of your firewall - use VPN. It works great.

If you want others to be able to access stuff on the other side of your firewall... make sure you have a drive image of your magnia (sooner or later you're going to need it) and follow along with me.

This example applies to a Magnia SG20 ver 2.6xx. Note I’ve said this twice now.
2.5xx uses IPCHAINS not IPTABLES so the rules syntax is different!
The menu setup, however, is the same... so if you are clever you can use the example to figure the rest out - menus YES rules NO!!

The next most common question is "How can I get my magnia upgraded to ver 2.6xx?" The simple answer is: you must find a hard drive image, download it, and write the image to the magnia's drive with another computer. OR you need to get somebody who has the image to write it for you - this process requires special software and hardware. Buy a spare drive for your magnia and send it to someone who can image it for you! If this doesn’t sound simple to you, remember, that was the simple answer!

Firewall rules are located in /sa2/firewall

These are the firewall rules available by default in the administration menu 
under Firewall --> Customize

1: Checkpoint VPN Client (UDP Encapsulation Mode) 
2: Cisco VPN Client (IPSec over UDP) 
3: Internet Games
4: FTP Server 
5: Telnet Server 
6: WWW Server


These firewall options offer limited access and are of almost no use to anyone. I have no idea why Toshiba even bothered with some of them.
I put the numbers in (instead of checkboxes) for a reason... bear with me.

Each firewall rule is in it's own folder.
Each folder contains the following files:

index - contains the number that determines the order the rule appears in the magnia's firewall menu (i.e. 60)
description - contains the description of the rule that appears in the magnia's firewall menu (i.e. WWW Server)
rule - contains the actual IPTABLES rule
type - for most port forwarding will contain the word "server"

By far the easiest way to "make" a new rule for opening a port is:
1: copy an existing rule folder to your local machine using ftp
2: modify the folder name, index #, description, and rule
3: copy the new folder back to the magnia with ftp
4: enable the rule through the magnia's firewall "customize" menu

Tips:
Use a short description, I use ports. IE: "Forward port 4240 to 192.168.1.249:80
The index number for the new rule must be greater than existing rules. The format seems to be in tens. So rule one is 10, rule two is 20, and so on. Your first new rule would be 70.

Examples: (taken from working RULES files, comment lines start with #)

1:     # forward anything going to port 4240 to 192.168.1.249 port 80
        $IPTABLES -A PREROUTING -t nat -p tcp --dport 4240 -j DNAT --to 192.168.1.249:80
        # allow packets trying to go from the wan to lan to the forward port 4240 thru.
        $IPTABLES -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport 80 -j ACCEPT
        $IPTABLES -A FORWARD -i $INTIF -o $EXTIF -p tcp --sport 80 -j ACCEPT

2:     # forward anything going to port 4662 to 192.168.1.2 port 4662
        $IPTABLES -A PREROUTING -t nat -p tcp --dport 4662 -j DNAT --to 192.168.1.2:4662
        # allow packets trying to go from the wan to lan to the forward port 4662 thru.
        $IPTABLES -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport 4662 -j ACCEPT
        $IPTABLES -A FORWARD -i $INTIF -o $EXTIF -p tcp --sport 4662 -j ACCEPT




(Read More... | 4928 bytes more | Score: 5)

3: WebMin Installation
Posted by anoldman on Friday, August 29 @ 21:40:02 CDT (2175 reads)
Topic 2: Toshiba Magnia hacks

It is assumed we have full FTP access, if not then find the FTP access instructions, or use telnet to tell the magnia to ftp the current webmin rpm.

Download newest version of Webmin from http://www.webmin.com
Use your ftp program to upload the noarch.rpm to /root of the magnia.
Telnet into the magnia, issue the su- command, and issue the command:

rpm -U webmin-x.xxx-x.noarch.rpm
(where "x.xxx-x" is the version number you have downloaded) and the install will be done automatically to /usr/libexec/webmin.
The install takes about 30 seconds.

TRY THIS ALSO:  It has come to my attention that you can go to the Magnia administration menu http://192.168.1.1:8282/ -->Upgrades --> Advanced -->Perform a manual upgrade --> Next and browse to the Webmin RPM on your local machine and have the Toshiba install Webmin for you!  I still like having FTP and Telnet access, but some less-technical users might appreciate this approach.  You can, of course, install/manage rpm's quite easily from Webmin once it is installed.

Red Hat Linux release 7.3 (Valhalla)
Kernel 2.4.18-3custom on an i686
login: telnetuser
Password: *********
Last login: Thu Jul 10 22:18:36 from pc-106
bash-2.05a$ su -
Password: *********
[root@magnia root]# rpm -U webmin-1.100-1.noarch.rpm
Operating system is Redhat Linux 7.3
Webmin install complete. You can now login to http://magnia.magnia.loc:10000/
as root with your root password.
[root@magnia root]#


(for maybe not-so-obvious reasons) The statement above -You can now login to http://magnia.magnia.loc:10000/-
is right for ME but probably wrong for you. Your message will be different, based on your machine name.

Your URL will be http://MACHINE NAME:10000 -or- http://MACHINE IP:10000

just like going to port 8282 for Toshiba's admin, but WebMin uses port 10,000.

My MACHINE NAME is "magnia", not the default which is "myserver"
My MACHINE IP is the default "192.168.1.1"

So by default you would go to http://myserver:10000 or http://192.168.1.1:10000.

The administration username for Webmin is set to root and the password is your current appliance admin password.




(Read More... | 2946 bytes more | comments? | Score: 5)

2: Adding FULL FTP Access
Posted by anoldman on Friday, August 29 @ 20:52:37 CDT (1690 reads)
Topic 2: Toshiba Magnia hacks

-WARNING-

It is ASSUMED that you are running your magnia with the FIREWALL ON.

If you do this, and leave the firewall off, people WILL hack your system!

Get a telnet program - I recommend TeraTerm Pro
Telnet into the magnia: 192.168.1.1 is the default address.

Red Hat Linux release 7.3 (Valhalla)
Kernel 2.4.18-3custom on an i686
login: telnetuser
Password: **********
(password is whatever your default -appliance admin- password is)
bash-2.05a$ su -
Password: **********
(password is whatever your default -appliance admin- password is)
[root@magnia root]# cd /etc
[root@magnia etc]# vi ftpaccess


Now be carefull with your keys!
You want to add "real,guest," back in before anonymous
You also want to change root's permission to 666
Move to the "a" of the line "class all anonymous *" with your arrow keys.
press "i" (for insert) on your keyboard.
type "real,guest," then hit the "ESC" key on your keyboard.
Use your arrow keys to move to the first zero of "600"
Hit "x" twice to delete those zeroes.
Hit "a" (append) and "66"
Hit the "ESC" key

File should look like this:

# DO NOT EDIT THIS FILE! IT IS AUTOGENERATED!
# edit the files in /sa2/templates/etc/ftpaccess
# to modify this file, then call /sa/bin/template
#
class    all    real,guest,anonymous *

email root@localhost

readme README*   login
readme README*   cwd=*

message /welcome.msg     login
message .message             cwd=*

compress     yes     all
tar               yes     all
chmod         no     anonymous
delete         no     anonymous
overwrite     no     anonymous
rename         no     anonymous
upload     /home/ftp     /incoming     yes     root     root     666

log transfers anonymous inbound,outbound
#


shutdown /etc/shutmsg
# END AUTOGENERATED TEMPLATE


HOLD shift and hit "ZZ" to save and exit file.
"ftpaccess" 27L, 687C written
[root@magnia etc]#


Now that real users are able to gain ftp access you're set, right?
Nope, only "root" seems to have full ftp access, and root is blocked by default.
You must now edit ftpusers

[root@magnia etc]# vi ftpusers

Just move around with your arrows to the "r" of "root"
Hit "x" four times to remove root
File should look like this:

# The ftpusers file is deprecated. Use deny-uid/deny-gid in ftpaccess.

bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
~
~
~
~
~
~
~
~
"ftpusers" 15L, 150C 2,0-1 All


HOLD shift and hit "ZZ" to save and exit file.
"ftpusers" 15L, 146C written
[root@magnia etc]#


You now have full ftp access to your magnia's file system.
Keep in mind that if you don't edit /sa2/templates/etc/ftpaccess/10base to match your changes in /etc/ftpaccess then sooner or later a trigger will wipe out your changes, so edit that file as soon as you can.




(Read More... | 3874 bytes more | comments? | Score: 5)

1: Magnia SG20
Posted by anoldman on Friday, August 29 @ 20:35:04 CDT (6614 reads)
Topic 2: Toshiba Magnia hacks

Toshiba Magnia SG20 Small-Business Server

Overview:
- 8 Port Router
- Wireless Ready
- 20GB Hard Drive
- VPN (Virtual Private Network)
- Firewall, Server, Network Attached Storage and much more!

System:
- Celeron 566mhz processor
- 128MB RAM
- 20 GB HDD
- Wireless 802.11b Ready
- Ethernet LAN Network Interface
- 10/100 Mbps Auto configuration
- 1 public WAN RJ-45 port
- 7 private LAN RJ-45 ports
- 1 private RJ-45 uplink port
- Wireless LAN Network Interface
- Access Point capable  with PCMCIA  IEEE 802.11b Card. (Orinoco ONLY)

General I/O
- 16-character x 2-line backlit LCD with Scroll Button on the front of the machine
- 1 25-pin D-SUB Centronics parallel port
- 1 RJ-11 V.90 DSP Modem Port
- Power Button (front)
- Reset Button (rear)
- Administrator Password Reset Button (rear)
- Power Supply 100V-240V 50/60Hz  50 Watts

Dimensions:
- Width: 13.375in (339.90mm)
- Depth: 10.625in (269.88mm)
- Height: 2.625in (67.40mm)
- Weight: 10 lbs. (4.5 kg)

Software and Services:
- Red Hat Linux based kernel
- Simple Network Configuration
- Automatic DHCP, DNS, NAT, and Web Services.
- Personalized Intranet without learning to program HTML by managing the pre-configured templates included with the Magnia SG20.
- Security: Packet filter & IP tables Firewall protects company data from Internet intrusion.
- Cross-platform File Sharing: Windows® and Mac OS® users can exchange information with the Magnia SG20 using file sharing services.
- Enhanced Backup and Restore: The Magnia SG20 includes an application for file backup and restore. The application can backup and restore files to/from a backup device connected to a networked client computer, to a shared directory or through secure FTP to Toshibas Internet-based storage service (fee based).
- Second Hard Disk Drive Configuration: An optional second hard drive (2.5") can be configured for additional storage capacity or it can be configured to mirror the primary hard drive.
- Content Filtering: Built-in application that allows administrator to restrict access to specific Web sites, or to sites that contain certain phrases or words in their domain name.
- Internet Connectivity: Connect to the Internet via the built-in 56K Modem or auto-sensing 10/100 Ethernet WAN port. The 10/100 Ethernet WAN Port can connect to broadband Internet service from a Corporate LAN, a DSL line, or a Cable line.
- Virtual Private Networking: Virtual Private Networking is certified only for client computers running Microsoft® Windows operating systems. The Virtual Private Network requires the Magnia SG20 be connected to the Internet using the Public WAN Ethernet port. The Magnia SG20 can manage a Point -to-Point Tunneling Protocol (PPTP) Virtual Private Network with authorized users.
- Digital Photo Album: Includes an application to manage centrally stored digital pictures (JPEG) and digital videos.
- Digital Jukebox: Includes the capability to store and organize digital music (MP3 and WMA file formats). The Magnia SG20 can deliver music to any wired or wireless connected computer or supported Pocket PC device, as well as through a Voyetra® Turtle Beach® AudioTron to a home stereo system.



(Read More... | 3855 bytes more | Score: 5)

  
Old Articles
There isn't content right now for this block.

Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2003 by AnOldMan.com
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.07 Seconds