OpenWAG200

SourceForge

Forums
Files
Bugs
Patches
Feature Requests
Mailing Lists
Developers
OpenWAG200 is open source software registered on SourceForge

SourceForge Logo

Special Features

posted 08.11.2009

Static DHCP Assignments

You can use static DHCP assignment functionality (after enabling mtd5 filesystem).

Note: MAC address for static dhcp should be specified in xx:xx:xx:xx:xx:xx format

 

Management via SSH

You can enable/disable management via telnet and SSH. You can also change SSH port to something other than the default port (22). Go to ssh/telnet from MySetup, change access settings, save settings and reboot the router.

Note: SSH is enabled by default, telnet is disabled by default. Remote user is root, password is same as your web admin password.

Note: You can generate your own sshd rsa key, using dropbearkey shell command.
(Place the key in the /mnt/mtd5/dropbear_rsa_host_key)

 

Routed WLAN

You can move Wireless LAN to different ip network, which enables greater control of WLAN clients (firewalling LAN from WLAN). WLAN can have it's own DHCP service with static entries. Thanks to Grzegorz Sadowski for the idea and sharing the example script :)

 

Link Utilization Graphs

There are Utilization Graphs for DSL and Wireless/Wired LAN on Bandwidth Monitor page.

Note: You can also see uptime of your router (and uptime of PPP connection as of v0.10) on the page.

 

MAC Address Cloning

Some ISPs will require you to register your MAC address. If you do not wish to re-register your MAC address, you can have the router clone the MAC address that is registered with your ISP.

 

256KB writable minix filesystem

You can have 256KB writable minix filesystem ( it is needed if you want to run custom scripts ).
To enable this feature, open ssh or telnet to the router, log in, and issue a "make_mtd5" command.
The command will make a minix filesystem on /dev/mtdblock/5 - the space originaly designed to
hold optional language version of the www interface.

You must then enable automounting of the filesystem from the "MySetup" webpage of the router.
WARNING !!! - DO NOT TRY TO WRITE ANYTHING TO FLASH PARTITIONS OTHER THAN /dev/mtdblock/5 !!!
YOU'LL BRICK YOUR ROUTER FOR GOOD THIS WAY.


After creating writable fs and enabling automounting on the webconfig, you can create your own
scripts in /mnt/mtd5 directory.

these scripts will be executed automatically during the boot process:

/mnt/mtd5/rc.local
/mnt/mtd5/rc.myfirewall

You can also execute some commands from ip-up/ip-down scripts (executed when ppp0 is going up/down) as of v0.10.
(Create /mnt/mtd5/ip-up and/or /mnt/mtd5/ip-down, and make it executable)

 

SCP (Secure Copy Protocol)

Secure copying (scp) files to/from the WAG200 is now possible. Use your scp client to connect your WAG200G to securely transfer files.

Note: Remote user is root, password is same as your web admin password.

 

Cron (Job Scheduler)

You can run shell commands (and of course your custom scripts) periodically on a schedule (after enabling mtd5 filesystem).

Note: You should create your crontab in /mnt/mtd5/crontab file

Note: When creating a crontab for the root user, the user name (root) must be specified as a parameter after the date/time parameters. (You are going to create a crontab for the root user on your WAG as it doesnt have any other users)

 

Useful Commands

arp - manipulate the system ARP cache
awk - pattern scanning and processing language
df - report filesystem disk space usage
ftpget - file transfer program
ftpput - file transfer program
hostname - set your prompt to your chosen hostname
login - sign on
lutz - small nmap like network scanner
netstat-nat - display network connections routed/nated
passwd - update a user's authentication tokens(s)
tcpdump - lite version of the network packet decoder
top - display top CPU processes
traceroute - print the route packets take to network host
vi - a programmers text editor
wakelan - wake up a host with a wake-on-lan packet
dropbearkey - generate your own sshd rsa key
reboot_every - auto reboot every n hours
sysinfo.sh - displays various debug information