1. Repeater

by pier11, loic — last modified 2008-05-19 00:23

Applicable: Kamikaze, Broadcom.

Tested: WRT54G v2.0, Kamikaze r6816(02 Apr). Linksys WRT54GL, Kamikaze 7.09 (19 may 2008).

This page describes configuration of Kamikaze as a wireless repeater. In this configuration it uses open wireless network and creates your own private wireless network on top of it.

All you have to do is edit the following two files and reboot. That's it!

/etc/config/wireless

config wifi-device  wl0
        option type     broadcom
        option channel  5
# disable radio to prevent an open ap after reflashing:
        option disabled 0

config wifi-iface
        option device   wl0
        option network  lan
        option mode     ap
        option ssid     YourSSIDHere
        option hidden   0
        option encryption       wep
        option key      '1'
        option key1     'XXXXXXXXXXXXXXXXXXXXXXXXXX'

config wifi-iface
        option device   wl0
        option mode     sta
        option ssid     HostSSIDHere
        option encryption none

/etc/config/network

#### VLAN configuration 
config switch eth0
        option vlan0    "1 2 3 4 5*"
        option vlan1    "0 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    'static'
        option ipaddr   '10.0.0.1'
        option netmask  '255.255.255.0'
        option gateway  ''
        option dns      ''


#### WAN configuration
config interface        wan
        option ifname   "wl0"
        option proto    dhcp

Notes:

References:

2. Encrypted Repeater

by Wildfire — last modified 2008-08-07 20:56 (CEST)

Here's my current repeater configuration. For improved security it uses WPA(2) encryption between each access point and client and WPA encryption between the stations (WPA2 is currently not supported). I very strongly discourage the usage of WEP, current algorithms are able to crack WEP encryption in a matter of minutes (<<20).

Tested: WRT54GL v1.1 KAMIKAZE (bleeding edge, r10542)

2.1. Access Point #1 (Access to LAN)

/etc/config/network

#### VLAN configuration
config switch eth0
        option vlan0    "0 1 2 3 5*"
        option vlan1    "4 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration (vlan0)
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   aaa.bbb.ccc.2
        option netmask  255.255.255.0


#### WAN configuration (vlan1)
config interface wan
        option ifname   "eth0.1"
        option proto    dhcp
        option hostname "{hostname-router-1}"

/etc/config/wireless

config wifi-device wl0
        option type             broadcom
        option channel          6
        option disabled         0

config wifi-iface
        option device           wl0
        option network          lan
        option mode             ap
        option hidden           0
        option isolate          0
        option ssid             {client-network-ssid}
        option encryption       psk+psk2
        option key              {strong-encryption-key}

config wifi-iface
        option device           wl0
        option network          lan
        option mode             wds
        option hidden           0
        option isolate          0
        option ssid             {wds-network-ssid}
        option bssid            {mac-address-router-2}
        option encryption       psk
        option key              {strong-encryption-key}

2.2. Access Point #2 (Stand-alone repeater)

/etc/config/network

#### VLAN configuration
config switch eth0
        option vlan0    "1 2 3 5*"
        option vlan1    "4 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration (vlan0)
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   aaa.bbb.ccc.4
        option netmask  255.255.255.0
        option gateway  aaa.bbb.ccc.2


#### WAN configuration (vlan1)
config interface        wan
        option ifname   "eth0.1"
        option proto    dhcp
        option hostname "{hostname-router-2}"

/etc/config/wireless

config wifi-device wl0
        option type             broadcom
        option channel          6
        option disabled         0

config wifi-iface
        option device           wl0
        option network          lan
        option mode             ap
        option hidden           0
        option isolate          0
        option ssid             {client-network-ssid}
        option encryption       psk+psk2
        option key              {strong-encryption-key}

config wifi-iface
        option device           wl0
        option network          lan
        option mode             wds
        option hidden           0
        option isolate          0
        option ssid             {wds-network-ssid}
        option bssid            {mac-address-router-1}
        option encryption       psk
        option key              {strong-encryption-key}

Repeater (last edited 2008-08-07 18:56:59 by Wildfire)

Almost all of these pages are editable, create an account and click the edit (Edit) button at the top of the page.