Changes between Version 4 and Version 5 of BridgedNetwork
- Timestamp:
- Feb 22, 2011, 1:16:46 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BridgedNetwork
v4 v5 4 4 }}} 5 5 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. 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. 7 To start the WLAN and bridging 8 add the following symlinks 9 {{{ 10 ln -snf /etc/init.d/hostapd /etc/rc0.d/K20hostapd 11 ln -snf /etc/init.d/hostapd /etc/rc1.d/K20hostapd 12 ln -snf /etc/init.d/hostapd /etc/rc2.d/S20hostapd 13 ln -snf /etc/init.d/hostapd /etc/rc3.d/S20hostapd 14 ln -snf /etc/init.d/hostapd /etc/rc4.d/S20hostapd 15 ln -snf /etc/init.d/hostapd /etc/rc5.d/S20hostapd 16 ln -snf /etc/init.d/hostapd /etc/rc6.d/K20hostapd 17 18 ln -snf /etc/init.d/robocfg /etc/rcS.d/S38robocfg 19 }}} 20 21 At my device i did get an error bridging wlan0 and eth0_lan to lanbridge 22 I had to do the following: 23 {{{ 24 mv /etc/rcS.d/S40networking /etc/rcS.d/S42networking 25 ln -snf /etc/init.d/hostapd /etc/rcS.d/S41hostapd 26 }}} 27 28 By default hostapd is enabled in /etc/default/hostapd 29 Also here is the confif file for hostapd mentioned: etc/hostapd/hostapd-nokey.conf 30 This is were you can change your WLAN config 31 32 33 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. 7 34 8 35 Resulting into the following IP/routing/wireless setup: … … 12 39 Gateway received from WAN DHCP 13 40 WiFi ESSID Angel 14 WiFi WPA1/WPA2 passphrase angelangel15 Firewall Minimalfirewall Masquarading LAN/WLAN traffic to the Internet(WAN)41 WiFi WPA1/WPA2 passphrase debwrtdebwrt 42 Firewall No firewall Masquarading LAN/WLAN traffic to the Internet(WAN) 16 43 }}} 17 44 … … 33 60 = Init scripts and configuration files involved = 34 61 * /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 39 65 * /etc/network/interfaces* Debian networking – 3 example setup’s 40 66 * interfaces.firstboot All switch ports in one VLAN, IP 10.0.2.1, WLAN disabled 41 67 * interfaces.lan-wlan-bridge LAN/WLAN bridge, WAN DHCP, LAN/WLAN bridge masqueraded over WAN 42 68 * 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 45 70 46 71 = Available Network Interfaces = … … 48 73 * eth0_wan DHCP vlan interface – VLAN-ID 100 49 74 * eth0_lan no IP vlan interface – VLAN-ID 101 50 * wl0 no IP Wireless interface when using kernel 2.4 (Broadcom driver)51 75 * wlan0 no IP Wireless interface when using kernel 2.6 (b43 driver) 52 76 * mon.wlan0 no IP Wireless interface when using kernel 2.6 (b43 driver) – not directly used