DD-WRT Manual (SE)

From DD-WRT Wiki

Revision as of 09:32, 9 November 2005 by 213.67.32.200 (Talk)
Jump to: navigation, search

Du är här: Main_Page Startsida/DD-WRT Manual (SE)


Contents



Projekt beskrivning

Denna wiki's mål är att skapa en komplett användar och teknisk manual för DD-WRT.

Precis som alla media-wiki projekt, hålls denna levande av community

Like every media-wiki project, this one is kept alive by samarbete! Alla är tillåtna att skriva, editera och kommentera artiklar. Ha kul!

Vad är "DD-WRT"?

DD-WRT är en 100% gratis firmware för Linksys WRT54G/GS och Asus WL-500 deluxe 802.11g trådlösa routrar (som körs av ett Linux OS).

DD-WRT Firmwaren är gjord av BrainSlayer och är hostad på dd-wrt.com. Den första versionen av DD-WRT var baserad på Alchemy Firmware från Sveasoft Inc, vilken är tillverkad från original firmwaren från Linksys och ett antal andra öppen källkodsprojekt. DD-WRT existerar som en som ett resultat av att Sveasoft's tar $20 betalt för att ladda ner deras firmware.

De nyare versionerna av DD-WRT, just nu finns v23 i beta, är ett helt nytt projekt. DD-WRT tillhandahåller många avancerade funktioner som inte finns i original Linksys firmwaren, eller den dyrbara firmwaren från Sveasoft. De är också fritt från produkt aktiveringar eller spion funktioner som var funna i Sveasoft firmwaren.

Bland andra funktioner som inte var funna i den originala Linksys firmwaren, DD-WRT tillhandahåller Kai Daemon för Kai Console Gaming network, WDS trådlös brygga/förlängningsprotokoll, Radius Authentication för högre trådlös säkerhet, avancerade Quality of Service kontroller för bandbreddsfördelning, och support för SD-Kort via modifiering i hårdvaran.

Funktionslista

  • Hotspot Portal (Chillispot)
  • PPTP VPN Server
  • 2-vägs bandbreddsdelning (incl. P2P, VoIP, IM)
  • SSH Klient och Server (dropbear)
  • Telnet
  • Uppstart, brandväggs, och avstängnings skript
  • WDS Förlängningsinställning
  • Client Mode (stödjer flera anslutna klienter)
  • Adhoc Mode
  • OSPF Routing
  • RIP2 Routing
  • Power Boost Function (max 251mW power)
  • Valbar antenn
  • Statiska DHCP uppgifter
  • DDNS
  • Clone Wireless MAC Addresses
  • VLAN
  • WPA över WDS
  • WPA/TKIP med AES
  • WPA2
  • Client Mode WPA
  • Client Isolering
  • QoS Bandbreddsfördelning
  • Port Triggering
  • Port Forwarding (max. 30 entries)
  • Wake-On-Lan
  • Remote Syslog
  • Remote Ntop Statistic
  • Xbox Kaid
  • SNMP
  • IPv6 Support
  • Lista med trådlösa klienter och WDS med system Uptime/Processor visning.
  • Site Survey
  • Extern NTP Server
  • 12 språk
  • Stil (Modifieringsbart webbgränsnitt; v.23)
  • Stödjer nya enheter (WRT54G V3, V3.1, V4 och WRT54GS V2.1, V3, V4), dock inte WRT54G V5 eftersom denna använder annat operativsystem och har mindre minne.

v23 Filversioner

Från och med v23 (Changelog) har projektet uppdelats i:

OBS: DD-WRT Nerladdningsspegel: here


I samtliga ovan finns det sex olika versioner i varje zip fil:

1. dd-wrt.v23_type_generic.bin
2. dd-wrt.v23_type_wrt54g.bin
3. dd-wrt.v23_type_wrt54gs.bin
4. dd-wrt.v23_type_wrt54gsv4.bin
5. dd-wrt.v23_type_asus.trx
6. dd-wrt.v23_type_moto.trx


1. allmän version för att flasha via webbgränsnitt på alla enheter som stöds (inklusive Linksys WRT54G/GS) och Siemens SE505 med boot tftp på 192.168.2.1

2-4. tftp version för de olika versionerna WRT54G, WRT54GS och WRTGSv4.

5. webbgränssnitt version för Asus WL-500G Deluxe

6. för flashing av Motorola WR850G vid användning av boot wait state.


Tänk på att v23 är en tidig beta. Om du vill ha en "stabil" version av DD-WRT bör du överväga att använda v22-R2. Såvida du inte använder en v4 router eftersom endast v23 kan köras på den.

Vad behövs?

Först av allt behöver du en dator. Sedan, en internet anslutning vilken redan borde finnas, och en internet anslutning som bör vara bredband (DSL, kabel, eller liknande). Om dessa krav är uppfyllda borde du köpa en Linksys WRT54G/GS router. Routern kan beställas direkt från internetbutikerna (DustinHome, Datorbutiken m.fl.). Efter detta ska du ladda ner den helt gratis DD-WRT firmwaren från http://www.dd-wrt.com och följa instruktionerna under #Rätt sätt att flasha din WRT54G/GS för att installera den på din router.

Rätt sätt att flasha din WRT54G/GS

Denna del kommer översättas till svenska senare, vill du hjälpa till? Läs "Jag vill hjälpa till" i slutet av sidan.:

Flashing the Firmware should be done with stable wired connection.
Flashing via wireless is inherently unstable and will likely brick your router.
You will not have/need internet access from steps 2 through 5

1) Download firmware
- Download the latest release or pre-release version HERE or go to the DD-WRT homepage at http://www.dd-wrt.com/
- Extract the archive

2) Access the Web Interface
Note for users not using the original linksys firmware: you cannot use tftp! Change your firmware to the official linksys firmware, and then continue below.
- From a PC connected to one of the 4 LAN ports on the router open a web browser and go to the IP of the router (default ip is 192.168.1.1).
- You will be prompted for username and password (username is not required, default password is admin).
- Enter username and password and you should be at the Web Interface of your WRT54G/S
    if you forgot the username and password, proceed to step 3 alternate.

3) Reset to factory defaults
Alternatively, you can press and hold the reset button on the back of the router for 30 seconds. This will also clear your password.
- Click the "Administration" tab.
- Click the "Factory Defaults" sub-tab.
- Select "Yes".
- Click the "Save Settings" button.
- A new page will open, click "continue".

4) Upgrade Firmware
Do not turn off the computer, nor close the web browser, neither turn off the router during this process
- Click the "Administration" tab
- Click the "Firmware Upgrade" sub-tab.
- Click the "Browse" button and select the DD-WRT .bin file you extracted in step 1.
- The router will take a few minutes to upload the file, flash the firmware, and then reset.
- A new page will open, wait 2-5 minutes before clicking "Continue".
- If flashed successfully you will now be at the DD-WRT web interface and the Router Name will be DD-WRT.

5) Reset to factory defaults AGAIN
-Repeat step 3 above

6) Enjoy
-It is strongly advised that you enable the "Boot Wait" option under the "Administration" tab. This will help you recover in the future should you flash your router improperly.

7) ?? Uh-oh ??
-If your router fails to reboot (power light doesn't stop flashing, no web interface, etc) you will need to Recover from a Bad Flash.


Flasha din Asus WL-500G Deluxe

Denna del kommer översättas till svenska senare, vill du hjälpa till? Läs "Jag vill hjälpa till" i slutet av sidan.:

Flasing the Asus WL-500g Deluxe is pretty easy, at least if you have access to a Windows machine with a wireless card and the Asus tools installed.

Download the firmware zip file and unpack it (e.g. with WinZip on Windows, or (g)unzip on Linux). There are many files contained in the archive, but the one you should look for is called dd-wrt.<version_number>_<typ>_asus.trx, where <version_number> is v23 at the moment and <typ> is either mini, std, or voip (e.g. the file is called dd-wrt.v23_mini_asus.trx).

Now on to the flashing procedure:

  1. Unplug the power cord from the device.
  2. While holding down the reset button plug in the power again.
  3. Keep the reset button down for some seconds. After about 5 seconds the power LED blinks from time to time. You can now release the reset button.
  4. On the Windows machine start up the "Firmware Restoration" tool from Asus. It usually is located at "Start > Programs > ASUS Utility > Wireless Router".
  5. Press the "Browse" button and browse to the trx file you just unpacked.
  6. Press the "Upload" button. The firmware should now be copied to the device. The application will tell you when the procedure is finished.

You should now be able to acces your router again via the IP-address it had before the flashing.


Flasha din Siemens SE505

Denna del kommer översättas till svenska senare, vill du hjälpa till? Läs "Jag vill hjälpa till" i slutet av sidan.:

BrainSlayer said: "DD-WRT v23 (starting from 27/10/05 version) does now officially support the Siemens Gigaset SE505 router. That means you can use the very latest features like WPA2 on this unit too. Due the limited ram of this unit, you cannot use all features at the same time, but from the base it is much better than the original firmware for this Router"


For flashing the Siemens Gigaset SE505, you have to use the dd-wrt.v23_mini_generic.bin with boot tftp on 192.168.2.1 since the Siemens default settings do not fit to the Linksys/dd-wrt ones you have additionally to check your configuration details after flashing.

(From BrainSlayer's note in hwsupport.txt)


Flasha din Buffalo WBR-G54, WLA-G54

Denna del kommer översättas till svenska senare, vill du hjälpa till? Läs "Jag vill hjälpa till" i slutet av sidan.:


WARNING: The Buffalo is not yet officially supported: USE AT YOUR OWN RISK!!! WARNING: The WAN port and LAN ports could be temporally swapped WARNING: Some router's status lights (LEDs) will not work WARNING: Reset button will not work WARNING: Currently no way to go back to original firmware (I did it once, but could not reproduce)

1) Buffalo's firmware header: Inspecting the original Buffalo firmware one can see the custom 34 bytes header (before HDR0).

WBR-G54, WBR-B11

00h:  57 42 52 2D 42 31 31 20 32 2E 32 30 20 31 2E 31 ; WBR-B11 2.20 1.1
01h:  36 0A 66 69 6C 65 6C 65 6E 3D 33 32 31 39 34 35 ; 6.filelen=321945
02h:  36 0A                                           ; 6.

WLA-G54

00h:  57 4C 41 2D 47 35 34 20 32 2E 30 35 20 31 2E 30 ; WLA-G54 2.05 1.0
01h:  32 0A 66 69 6C 65 6C 65 6E 3D 32 35 34 37 37 31 ; 2.filelen=254771
02h:  32 0A                                           ; 2.

You will need to insert these 34 bytes to the DD-WRT generic firmware if you want to flash using Buffalo's WEB interface. You must also adjust the "filelen=" number to reflect the size of DD-WRT.


2) Buffalo's default IP address: 192.168.11.1. Router will also listen to this address during boot. It will answer to pings with TTL=128. (DD-WRT answers with TTL=64)


3) Flashing

Before flashing be sure to restore to factory defaults. Also check if you can connect to the router wirelessly.

3a) Flashing using tftp:

Use the original DD-WRT generic version. Load it at boot time at 192.168.11.1. After successful transfer please wait 2-3 min., or util router reboots.

3b) Flashing using Buffalo's WEB interface:

Use the DD-WRT generic version with added 34 bytes header. After succesful transfer please wait 2-3 min., or until router reboots.


4) After flash:

You will be able to access the router at 192.168.11.1. Do not restore to factory defaults, but you could erase nvram. Telnet to the router (usename: root , password: admin , mtd erase nvram [enter], reboot [enter].

Please note: If you do restore to factory defaults, the router will respond at 192.168.1.1, but you will no longer be able to access router via LAN ports. Try WAN port, or wireless (this always works, ssid = linksys, ch.6, no encryption). Telnet to the router and erase nvram (usename: root , password: admin , mtd erase nvram [enter], reboot [enter]. This will bring back the LAN port at 192.168.11.1.

Please note: Clearing nvram will also change the MAC addresses from 00:07:40:xx:xx:xx (Melco Inc.) to 00:90:4c:xx:xx:xx (Epigram Inc.).


You can now enjoy your DD-WRT....


5) Upgrading to new DD-WRT version

Once the router runs DD-WRT, please use the generic version when upgrading firmware. (Starts with HDR0).


Webbgränssnittet

För mer information om webbgränssnittet, inklusive en simulering, see Web Interface.

Linux version

Just nu används kerneln 2.4.20 (2.4.32-rc2 används i den senaste v23 beta versionen).

Detta betyder att du kan köra linux program på din DD-WRT som inte är inkluderade i installationen. Du kan även skriva dina egna shell skripts i kommandoraden

Skript exempel

För exempel av dessa skript, se vår Script Examples sida.

Olika konfigueringsexemel / Moddar

Vanliga konfigueringsguider

Här är några guider för att hjälpa dig att slutföra steg 4 i firmware flash ;)
Chillispot
Client Mode Wireless
DNSMasq_as_DHCP_server
Firewall
Firewall Builder
Access Restrictions
Using ipkg to install OpenWRT packages
IPv6
Kai Console Gaming
Port Forwarding
Quality of Service (QoS)
Samba Filesystem
Separate LAN and WLAN
Setting up a Transparent Proxy Server using Squid
SNMP
SSH access from internet
Static DHCP
Telnet/SSH and the Command Line
Use WAN port as a normal switched port
VLan Configuration
WDS Linked router network
Wireless Bridge
Wake On Lan (WOL)
HotSpot HTTP Redirect
NoCatSplash


Vanliga installeringsbara program

Mer programvaror som inte finns i DD-WRT som kan köras på din WRT54G

Kismet Server/Drone -- använder windows för att visa resultat
wrt54g kismet with linux server -- använder linux för att visa resultat
Port Knocker daemon
Miau IRC Bouncer
Multi Router Traffic Grapher
No-IP.com Client
OpenSwan
OpenVPN
Bandwidth Log
iftop -- för ncurses-baserad kontrollering av aktiva anslutningar och dess bandbreddsanvändning.

Hårdvaru modifieringar

Hårdvaru modifieringar behöver inte nödvändigtvis vara gjorda för DD-WRT eller vara kompatibla.

Seriell Port
Dubbel Seriell Port
SD-Kort
Temperatur sensor för WRT54G 2.x och WRT54GS med DS1820

WRT54G/S Versioner

De fyra första siffrorna i serie numret (finns på ovansidan eller undersidan av din router) representerar hårdvaran i din router:

CDF0 = WRT54G v1.0
CDF1 = WRT54G v1.0
CDF2 = WRT54G v1.1
CDF3 = WRT54G v1.1
CDF5 = WRT54G v2.0
CDF7 = WRT54G v2.2
CDF8 = WRT54G v3.0
CDF9 = WRT54G v3.1
CDFA = WRT54G v4.0
CDFB = WRT54G v5.0

CGN0 = WRT54GS v1.0
CGN1 = WRT54GS v1.0
CGN2 = WRT54GS v1.1
CGN3 = WRT54GS v2.0
CGN4 = WRT54GS v2.1
CGN5 = WRT54GS v3.0
CGN6 = WRT54GS v4.0


Se mer information på Linksys Info Autopsy.

DD-WRT stödjer alla versioner av WRT54G och WRT54GS förutom WRT54G v5. Denna nya router har begränsat med ram minne (2/8) och körs på VxWorks och inte på Linux. DD-WRT stödjer förnärvarande inte WRT-54GX, Linksys's MiMo versions router. DD-WRT är också rapporterat att fungera på WAP54G, men var försiktig med denna.

VARNING: v22 är inte kompatibla med v4 routrar. De är helt olika. Endast v23 kan köras på dessa. Du skulle annars behöva återställa din router (pin 15-16 metoden <huh? länk

You would otherwise have to 'un-brick' your router (pin 15-16 method) NOTERING: Standard firmwaren från Linksys på WRT54G v4 accepterar inte firmwares som är över 3MB i storlek (du kommer få felmeddelandet: "Upgrade are failed!" om du försöker) så du behöver flasha med mini versionen (eftersom denna är mindre än 3MB) av DD-WRT på din router INNAN du flashar med str eller voip versionen. (Glöm inte att hålla i reset knappen i 30 sekunder efter du flashat med mini versionen.)

Funktions önskning

Det bästa sättet att önska funktioner är att gå till forumet och skriva ett inlägg om det. Huvudutvecklaren (BrainSlayer) läser forumen och svarar för det mesta.

Someone started a wiki page for feature requests, though, so if you'd like to try posting your request there go ahead. I wouldn't expect a response, however. I'm not sure Brainslayer reads the English side of the Wiki...:
Feature Request

Jag vill hjälpa till!

Väldigt enkelt: Klicka på "edit" länken, editera, spara och tryck refresh i din webbläsare ;)

Några noteringar:

  • När du ändrar finns det en sammanfattningsbox. Fyll i en sammanfattning av editeringen du gör.
  • Det finns också en editeringsflik överst på denna sida för att editera hela sidan.
  • Om du skapar en ny sida, eller börjar arbeta på en tidigare tom sida, kontrollera att lägg till den på index sidan.
  • Försök att lägg till "Du är här" koden i slutet av varje sida. Du kan kolla i slutet av denna sida för att ett exempel.

Du är här: Main_Page Startsida/DD-WRT Manual (SE)