Changes between Version 4 and Version 5 of BridgedNetwork


Ignore:
Timestamp:
Feb 22, 2011, 1:16:46 PM (9 years ago)
Author:
e.d.grootjans@…
Comment:

Changes because off version change of debwrt and there fore some changes in name/version etc.

Legend:

Unmodified
Added
Removed
Modified
  • BridgedNetwork

    v4 v5  
    44}}}
    55
    6 Afer setting the symlink and rebooting the router ( or starting the correct /etc/init.d scripts in the correct order ;-) ) the router will be configured like OpenWRT’s default network config. A WAN interface, which uses DHCP to get it’s IP information. And the LAN and WLAN bridged together.  The WLAN by default will be setup with ESSID Angel using WPA1/WPA2. A minimal firewall is installed which also does masquarading for LAN/WLAN traffic.
     6Afer setting the symlink and rebooting the router ( or starting the correct /etc/init.d scripts in the correct order ;-) ) the router will be configured like OpenWRT’s default network config. A WAN interface, which uses DHCP to get it’s IP information. And the LAN and WLAN bridged together. 
     7To start the WLAN and bridging
     8add the following symlinks
     9{{{
     10ln -snf /etc/init.d/hostapd /etc/rc0.d/K20hostapd
     11ln -snf /etc/init.d/hostapd /etc/rc1.d/K20hostapd
     12ln -snf /etc/init.d/hostapd /etc/rc2.d/S20hostapd
     13ln -snf /etc/init.d/hostapd /etc/rc3.d/S20hostapd
     14ln -snf /etc/init.d/hostapd /etc/rc4.d/S20hostapd
     15ln -snf /etc/init.d/hostapd /etc/rc5.d/S20hostapd
     16ln -snf /etc/init.d/hostapd /etc/rc6.d/K20hostapd
     17
     18ln -snf /etc/init.d/robocfg /etc/rcS.d/S38robocfg
     19}}}
     20
     21At my device i did get an error bridging wlan0 and eth0_lan to lanbridge
     22I had to do the following:
     23{{{
     24mv /etc/rcS.d/S40networking /etc/rcS.d/S42networking
     25ln -snf /etc/init.d/hostapd /etc/rcS.d/S41hostapd
     26}}}
     27
     28By default hostapd is enabled in /etc/default/hostapd
     29Also here is the confif file for hostapd mentioned: etc/hostapd/hostapd-nokey.conf
     30This is were you can change your WLAN config
     31
     32
     33The WLAN by default will be setup with ESSID Angel using WPA1/WPA2. A minimal firewall is installed which also does masquarading for LAN/WLAN traffic.
    734
    835Resulting into the following IP/routing/wireless setup:
     
    1239Gateway         received from WAN DHCP
    1340WiFi ESSID      Angel
    14 WiFi WPA1/WPA2 passphrase       angelangel
    15 Firewall        Minimal firewall Masquarading LAN/WLAN traffic to the Internet(WAN)
     41WiFi WPA1/WPA2 passphrase       debwrtdebwrt
     42Firewall        No firewall Masquarading LAN/WLAN traffic to the Internet(WAN)
    1643}}}
    1744
     
    3360= Init scripts and configuration files involved =
    3461* /etc/init.d/robocfg   Integrated switch & VLAN configuration
    35 * /etc/init.d/firewall  basic firewall with masquarading
    36 * /etc/init.d/nas       2.4 WEP/WPA deamon
    37 * /etc/init.d/hostapd-mini      2.6 WEP/WPA/wireless deamon
    38 * /etc/init.d/dnsmasq   DNS-server for LAN/WAN
     62* /etc/init.d/ebtables  not configured yet!
     63* /etc/init.d/hostapd   2.6 WEP/WPA/wireless deamon
     64* /etc/init.d/dnsmasq   DNS-server for LAN/WAN - enable it in /etc/default
    3965* /etc/network/interfaces*      Debian networking – 3 example setup’s
    4066 * interfaces.firstboot         All switch ports in one VLAN, IP 10.0.2.1, WLAN disabled
    4167 * interfaces.lan-wlan-bridge   LAN/WLAN bridge, WAN DHCP, LAN/WLAN bridge masqueraded over WAN
    4268 * interfaces.seperate-wlan-lan         WAN, LAN, WLAN in separate VLAN’s
    43 * /etc/nas      NAS config
    44 * /etc/hostapd-mini     hostapd-mini config
     69* /etc/hostapd          hostapd-mini config
    4570
    4671= Available Network Interfaces =
     
    4873* eth0_wan      DHCP    vlan interface – VLAN-ID 100
    4974* eth0_lan      no IP   vlan interface – VLAN-ID 101
    50 * wl0   no IP   Wireless interface when using kernel 2.4 (Broadcom driver)
    5175* wlan0         no IP   Wireless interface when using kernel 2.6 (b43 driver)
    5276* mon.wlan0     no IP   Wireless interface when using kernel 2.6 (b43 driver) – not directly used