Openwrt

Uradna stran projekta se nahaja na spletni strani openwrt.org.
Zadnja stabilna izdaja je Kamikaze 8.09.1.

Buildroot

V okolju Debian veje Lenny potrebujete pakete: build-essential gawk libncurses5-dev python-minimal subversion unzip zlib1g-dev.

mkdir ~/kamikaze/
mkdir ~/dl-kamikaze/
cd ~/kamikaze/
ln -s ~/dl-kamikaze/ dl
svn checkout svn://svn.openwrt.org/openwrt/tags/8.09.1 .
make package/symlinks
make menuconfig
make

Configuration

System

If you are using the ext2 filesystem on a CF card, you should limit write cycles by modifying /sbin/mount_root as:

mount -o remount,rw,noatime,nodiratime /dev/root /

Network

Wired IEEE 802.1X

If you need IEEE 802.1X authentication, install package wpa_supplicant and edit /etc/init.d/done as:

date -s 122000002009
wpa_supplicant -Dwired -ieth2 -c/etc/wpa_supplicant.conf &
sleep 1
ifconfig eth2 192.168.110.110 netmask 255.255.255.128
route add default gw 192.168.110.1
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth2 -p tcp --dport 22 -j DNAT --to 10.0.12.2
bridge
brctl addbr gbridge
brctl addif gbridge eth1
brctl addif gbridge eth2
ifconfig eth2 0.0.0.0
ifconfig eth1 0.0.0.0
ifconfig gbridge 10.82.4.1 netmask 255.255.255.224 broadcast 10.82.4.31 up
dnsmasq

/etc/dnsmasq.conf

dhcp-authoritative
dhcp-range=eth1,10.10.31.2,10.10.31.30,255.255.255.224,48h
dhcp-range=eth0,10.0.12.4,10.0.12.10,255.255.255.240,6h
dhcp-leasefile=/tmp/dhcp.leases
dhcp-option=eth1,3,10.10.31.1
dhcp-option=eth0,3,10.0.12.1
dhcp-option=eth1,6,193.2.1.66
dhcp-option=eth0,6,193.2.1.66
dhcp-host=00:00:00:4f:33:49,10.0.12.2,48h
Uporaba:
dhcp-range=[net device],[start ip],[stop ip],[netmask],[lease time]
dhcp-option=[net device],3,[gateway ip]
dhcp-option=[net device],6,[dns server ip]