OpenWRT

From SOWNWiki
Jump to: navigation, search

logo-yellow.png

Update Needed
This page needs to be updated

This page refers to the original firmware for nodes not that developed in 2015-16. This page should be updated to refer to this.


Name OpenWRT
Deployed on SOWN(at)HOME Node
Was deployed on
Website http://www.openwrt.org/

OpenWRT is the operating system which forms the base of the SOWN firmware.

First Boot

When OpenWRT first boots, it's IP is set to 192.168.1.1 (netmask 255.255.255.0), and only telnet and not SSH is enabled. Telnet into 192.168.1.1 and set the root password using 'passwd', this will disable telnet and enable SSH.

Now set OpenWRT to have an IP address which is visible from 'sown-auth'. For updating nodes, this should be '10.13.0.1'.

Use 'vi' to edit '/etc/config/network' so that it looks as follows:

 # Copyright (C) 2006 OpenWrt.org                                                
                                                                               
 config interface loopback                                                       
       option ifname   lo                                                      
       option proto    static                                                  
       option ipaddr   127.0.0.1                                               
       option netmask  255.0.0.0                                               
                                                                               
 config interface lan                                                            
       option ifname   eth0                                                    
       option proto    static                                                  
       option ipaddr   10.13.0.1                                               
       option netmask  255.255.255.0     

OpenWRT

All development is focussed on Kamikaze and they have an 'official' 7.09 release now.

Stolen from http://downloads.openwrt.org/kamikaze/release.txt

"All of these platforms are based on 2.6 kernels with the exception of Broadcom".

Platforms

  • atheros-2.6 - Fon Fonera, Ubiquiti LiteStation 2/5, Ubiquiti PowerStation2, Atheros AR231x/AR5312 based devices.
  • au1000-2.6 - Access/Meshcube (aka 4G Systems MTX-1)
  • brcm-2.4 - Broadcom devices requiring Broadcom wifi (everyone migrating from Whiterussian)
  • brcm47xx-2.6 - Netgear WGT634U, Broadcom Devices without Broadcom wifi (you can use this instead of brcm-2.4 but wifi won't work)
  • ixp4xx-2.6 - Adi Engineering Pronghorn Metro, Compex NP18A, Compex WP18, Gateworks Avila, Iomega StorCenter, Linksys NSLU2 (NSLU2 avaiable via http://www.slug-firmware.net/)
  • magicbox-2.6 - Magicbox v1.1 / v2.0
  • rb532-2.6 - Mikrotik RouterBoard 532
  • x86-2.6 - x86 based devices (eg. WRAP)

Looking in the files, it appears that 2.4 => 2.4.34, and that 2.6 => 2.6.19.2

2.6.4+ is required for IPv6 etc. Apparently 2.6.21 is bad - good job it's not that!

More discussion on Atheros

Kamikaze

IPv6 Packages (filtered from http://downloads.openwrt.org/kamikaze/7.06/atheros-2.6/packages/Packages)

Package Name Description
6tunnel IPv4 / IPv6 tunnel proxy
aiccu SixXS Automatic IPv6 Connectivity Client Utility
avahi-dnsconfd An Unicast DNS server from mDNS/DNS-SD configuration daemon An mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) implementation (library).
Avahi is a system which facilitates service discovery on a local network -- 
this means that you can plug your laptop or computer into a network and 
instantly be able to view other people who you can chat with, find printers 
to print to or find files being shared. This kind of technology is already 
found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') 
and is very convenient. 

This package contains an Unicast DNS server from mDNS/DNS-SD configuration 
daemon, which may be used to configure conventional DNS servers using mDNS 
in a DHCP-like fashion. Especially useful on IPv6.
dhcp6-client IPv6 DHCP client
dhcp6-server IPv6 DHCP server
dibbler-client Dibbler a portable DHCPv6 implementation (client)
dibbler-relay Dibbler a portable DHCPv6 implementation (relay)
dibbler-server Dibbler a portable DHCPv6 implementation (server)
ip6tables IPv6 firewall administration tool
kmod-ip6tables IPv6 modules Netfilter IPv6 firewalling support
kmod-ipsec6 IPsec related modules (IPv6) Kernel modules for IPsec support in IPv6.
Includes:
- ah6
- esp6
- ipcomp6
- xfrm6_tunnel
kmod-ipsec IPsec related modules (IPv4 and IPv6) Kernel modules for IPsec support in both IPv4 and IPv6.
Includes:
- af_key
- xfrm_user
kmod-ipv6 IPv6 support Kernel modules for IPv6 support
miredo-client Teredo (IPv6 tunneling over UDP through NAT) client and relay daemon
miredo-server Teredo (IPv6 tunneling over UDP through NAT) server daemon
mrd6 IPv6 multicast routing daemon Multicast is becoming a major component in next generation
networks, used in several scenarios, from video broadcasting
to multimedia conferencing. In order to be implemented, new
technology needs supporting hardware and software across a set
of devices and systems. MRD6 is an implementation of a modular
IPv6 Multicast Routing Framework for the Linux operating system
and provides MLDv2 (as well as MLDv1), PIM-SM and MBGP support.
ndisc6 An ICMPv6 neighbour discovery tool
ptrtd Portable Transport Relay Translator Daemon The Portable Transport Relay Translator Daemon (pTRTd)
is a method of allowing IPv6 hosts to communicate with IPv4 hosts.
radvd IPv6 Routing Advertisement Daemon
rdisc6 An ICMPv6 router discovery tool
tcptraceroute6 A TCP/IPv6-based traceroute implementation
totd Small DNS proxy that supports IPv6/IPv4 record translation
totd is a small DNS proxy nameserver which supports IPv6 and enable IPv6
only sites to access IPv4 sites by using some translation mechanism such
as NAT-PT, KAME faith, etc...
tspc Client for Hexago's (Freenet6's) IPv6 service
Client to configure an IPv6 tunnel to 
Hexago's (Freenet6's) migration broker.