OpenWRT

aus ThiesenWiki, der freien Wissensdatenbank

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Installed Packages

arpwatch - 2.1a11-1 - Ethernet monitor program for keeping track of ethernet/ip address pairings
freeradius-mod-eap-gtc - 1.0.2-2 - an EAP/GTC module for FreeRADIUS
robocfg - 0.01-1 - Broadcom BCM5325E/536x switch configuration utility
tc - 2.6.11-050330-1 - iproute2 traffic control utility
tcpdump - 3.8.3-1 - A tool for network monitoring and data acquisition.
ttcp - 3.8-1 - A small utility to test TCP connection performance
root@OpenWrt:/dev/mtdblock# ipkg list_installed
aiccu - 2005.01.31-1 - SixXS Automatic IPv6 Connectivity Client Utility
base-files - 2 -
base-files-brcm - 1 -
bridge - 1.0.6-1 - Ethernet bridging tools
busybox - 1.00-2 - Core utilities for embedded Linux systems
dnsmasq - 2.22-2 -
dropbear - 0.45-3 - a small SSH 2 server/client designed for small memory environments.
ez-ipupdate - 3.0.11b8-1 - a client for dynamic DNS services
ip - 2.6.11-050330-1 - iproute2 routing control utility
ip6tables - 1.3.1-1 - The netfilter firewalling software for IPv6
ipkg - 0.99.149-1 - lightweight package management system
iptables - 1.3.1-1 - The netfilter firewalling software for IPv4
kernel - 2.4.30-brcm-2 -
kmod-brcm-et - 2.4.30-brcm-2 - Proprietary driver for Broadcom Ethernet chipsets
kmod-brcm-wl - 2.4.30-brcm-2 - Proprietary driver for Broadcom Wireless chipsets
kmod-diag - 2.4.30-brcm-2 - Driver for Router LEDs and Buttons
kmod-ipv6 - 2.4.30-brcm-2 - Kernel modules for the IPv6 protocol
kmod-ppp - 2.4.30-brcm-2 - PPP support
kmod-pppoe - 2.4.30-brcm-2 - PPP over Ethernet support
kmod-sched - 2.4.30-brcm-2 - Kernel schedulers for IP traffic
kmod-wlcompat - 2.4.30-brcm-3 -
libgcc - 3.4.3-2 -
libpthread - 0.9.27-1 - POSIX threads library
microperl - 5.8.6-1 - Perl without operating-specific functions such as readdir.
mtd - 1 -
nvram - 1 -
openntpd - 3.6.1p1-1 - OpenNTPD is a FREE, easy to use implementation of NTP
ppp - 2.4.3-6 -
ppp-mod-pppoe - 2.4.3-6 -
radvd - 0.7.3-1 - Routing Advertisement Daemon for IPv6
tc - 2.6.11-050330-1 - iproute2 traffic control utility
uclibc - -2 -
wificonf - 4 -
wireless-tools - 28.pre7-1 - Tools for setting up WiFi cards using the Wireless Extension
zlib - 1.2.2-2 - an implementation of the deflate compression method (library)

Configuration

#/bin/sh

#general
nvram set lan_ipaddr=192.168.1.2

#wan
nvram set ppp_username=<name>
nvram set ppp_passwd=<pw>
nvram set pppoe_ifname=eth0
nvram set wan_proto=pppoe
nvram set ppp_redialperiod=0
nvram set ppp_idletime=0
nvram set ppp_mtu=1492
nvram set wan_ifname=ppp0

#dyndns
touch /etc/dyndns.comf
echo "user=thiesenweb:<pw>" >> /etc/dyndns
echo "service-type=dyndns" >> /etc/dyndns
echo "interface=ppp0" >> /etc/dyndns
echo "host=thiesenweb.dyndns.org" >> /etc/dyndns

#dhcp
touch /etc/ethers
echo "00:50:FC:62:C1:62 hal2000 192.168.1.10" >> /etc/ethers
echo "00:40:D0:2A:08:A6 mobilhal 192.168.1.11" >> /etc/ethers
echo "00:D0:09:E8:06:9F bene 192.168.1.12" >> /etc/ethers
echo "00:80:AD:46:96:76 regine 192.168.1.13" >> /etc/ethers
echo "00:02:2D:27:82:02 mobilhalw 192.168.1.14" >> /etc/ethers
chmod og+r /etc/ethers

echo "192.168.1.2 router" >> /etc/hosts
echo "192.168.1.10 hal2000" >> /etc/hosts
echo "192.168.1.11 mobilhal" >> /etc/hosts
echo "192.168.1.12 bene" >> /etc/hosts
echo "192.168.1.12 blackdeath" >> /etc/hosts
echo "192.168.1.13 regine" >> /etc/hosts
echo "192.168.1.14 mobilhalw" >> /etc/hosts

#wlan
nvram set wl0_ssid=Thiesenwave
nvram set wl0_channel=9
nvram set wl0_wep=enabled
nvram set wl0_key1=<key>
nvram set wl0_key2=<key>
nvram set wl0_key3=<key>
nvram set wl0_key4=<key>
nvram set wl0_wep_bit=128
nvram set wl0_mode=ap

#maclist
nvram set wl0_macmode=allow
nvram set wl0_maclist="00:02:2D:27:82:02 00:0E:A6:A8:BF:C3 00:0E:35:DA:81:3B"

#misc
nvram set ntp_server=pool.ntp.org

#nvram commit

Customization

pppd

Once the PPP link is established, pppd looks for /etc/ppp/ip-up:

#!/bin/sh

. /etc/profile

/usr/sbin/rdate 192.43.244.18
/etc/init.d/S51aiccu restart
/sbin/dnynds restart

ez-ipupdate

#!/bin/sh

EZ="/usr/sbin/ez-ipupdate -d"
PID=/tmp/ez-ipupdate.pid

SERVICE=dyndns
WAN=$(nvram get wan_ifname)
USER=$(nvram get ddns_username_x)
PW=$(nvram get ddns_passwd_x)
HOST=$(nvram get ddns_hostname_x)


case "$1" in
    start)
        $EZ -F $PID -S $SERVICE -u $USER:$PW -h $HOST -i $WAN
        ;;

    stop)
        kill -9 `cat $PID`
        ;;

    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

IPv6

If the Prefix is wrong, you'll see errors like this:

ICMP redirect: target address is not linklocal
ICMP NDISC: fake message with non-255 Hop Limit received: 254

To change the prefix length with ip, just use the right prefix length when adding the IP:

ip addr add 2001:6f8:1238::1/48 dev br0

Usually, I add this to the first line of /etc/init.d/S51radvd

Misc

Upgrading

mtd -e linux -r write blah.trx linux 
(generic nehmen für den ASUS)

Backup

dd if=/dev/mtdblock/1ro of=/tmp/firmware.trx









[l_sp_11] antibiotic zithromax buy zithromax zithromax z pack atenolol atenolol side effects atenolol weight gain Norvasc norvasc side effects norvasc 5mg Levothyroxine levothyroxine sodium levothyroxine recall Synthroid synthroid side effects synthroid and weight gain paroxetine paroxetine hcl paroxetine hydrochloride gabapentin apo gabapentin gabapentin 300mg Levaquin levaquin 500mg levaquin antibiotic










[l_sp_24]

aciphex 20mg Deltasone buy amaryl actos met plus adalat xl adalat cc altace and hair thinning arava side effects atarax hydroxyzine

beach flower sympathy mlm local lead chicago sympathy flower affiliate lead marketing mlm network mlm lead generation art clip flower sympathy mlm lead generation company generation lead site web mlm lead generation network marketing mlm software free sample mlm lead free mlm lead generation 1,000 free lead mlm 1000 free lead mlm sympathy flower toronto mlm lead generation online generation lead mlm program generation lead real time mlm buy flower funeral sympathy uk generation in lead mlm real time generation lead marketing mlm network flower ontario sympathy everyday free lead mlm targeted mlm lead opt in mlm email lead mlm opt in lead opt in mlm lead opt mlm lead flor carpet tile milliken carpet carpet cleaning franchise chem dry carpet cleaning mohawk carpet berber carpet dalton carpet miele vacuum cleaner electrolux vacuum cleaner ultrasonic cleaner kirby vacuum cleaner ultrasonic jewelry cleaner grout cleaner hardwood floor cleaner upholstery cleaner hoover steam cleaner exclusive mlm lead 20 generation lead marketing mlm network wild flower triathlon email free in lead mlm opt generation mlm lead custom business free lead mlm opportunity seeker capture free lead mlm affiliate free lead lead marketing mlm network nutrition business opportunity seeker mlm lead capture free lead mlm system flower from made silk sympathy wreath mlm genealogy lead ikebana flower arrangement flower hibiscus picture tattoo double opt in mlm lead flower mississauga sympathy generating guerilla lead marketing mlm program etobicoke flower sympathy

'Persönliche Werkzeuge