OpenWrt

From Wildsong
Revision as of 19:54, 22 November 2011 by Brian Wilson (talk | contribs)
Jump to navigationJump to search

At home I use this router from Newegg ($65, cheaper now)

BUFFALO WZR-HP-G300NH 802.11b/g/n Nfiniti Wireless High Power Gigabit Router up to 300Mbps/ Open Source DD-WRT Support

I have one minor problem, it won't start OpenVPN for me after reboots, I have to log in and start it myself. I will chase this down someday.

Interesting things about this router:

  1. It has a USB port to which you can connect an external drive.
  2. It has an internal TTL level serial port. Have not tried it yet.
  3. It has some buttons that you can access programmatically.
  4. It has some LEDs that you can control

I have also used the classic Linksys WRT54G routers and a RouterBoard.

There is bug in the WZR-HP-G300NH where it holds onto a WAN IP address even when the cable modem is swapped out. See the end of this page. http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300h#supported.versions

See also Single board computers

Set up

FAQ page: http://wiki.openwrt.org/Faq

Configuration page: http://wiki.openwrt.org/OpenWrtDocs/KamikazeConfiguration

Services running

  • dropbear (ssh) server
  • httpd server
  • telnet server
  • dhcp client
  • dnsmasq (dns cache, server, dhcp server)

Available tools

iptables (netfilter)

The usual plethora of busybox tools.

       [, [[, arping, ash, awk, awx, basename, bunzip2, bzcat,                 
       cat, chgrp, chmod, chown, chroot, clear, cp, crond, crontab,            
       cut, date, dd, df, dirname, dmesg, du, echo, egrep, env,                
       expr, false, fgrep, find, free, grep, gunzip, gzip, halt,               
       head, hexdump, hostid, httpd, id, ifconfig, init, insmod,               
       ipkg, kill, killall, killall5, klogd, length, less, ln,                 
       lock, logger, logread, ls, lsmod, md5sum, mesg, mkdir,                  
       mkfifo, mknod, mktemp, mount, mv, nc, netmsg, netstat,                  
       nslookup, passwd, pidof, ping, ping6, pivot_root, poweroff,             
       printf, ps, pwd, rdate, reboot, reset, rm, rmdir, rmmod,                
       route, sed, seq, sh, sleep, sort, strings, switch_root,                 
       sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd,                 
       test, time, top, touch, tr, traceroute, true, udhcpc,                   
       umount, uname, uniq, uptime, vconfig, vi, watchdog, wc,                 
       wget, which, xargs, yes, zcat