Point d'accès dans la fenêtre vers la ruelle entre Saint-Vallier et Saint-Denis.
Technical details
- hostname
- lacou-ap
- type:
- accesspoint
- SSID
- lacou.acces.reseaulibre.ca
- MAC address
- 00:B0:C0:02:1A:9F
- IPv6 address
- fd64:2c08:9fa7:19::1/128
- IP address
- 172.16.2.19
- Software
- OpenWrt Barrier Breaker (trunk @ 1 dec. 2012)
- Hardware
- Bococom-DWR150
- Power
- Location
- window
- Azimuth
- 360°
- Panorama
- N/A
- Status
- down
- Operator
- elecnix
- Links
- lacou
# after flashing, LAN is not accessible; use serial port to fix it:
uci set network.lan.ifname=eth0
uci commit ; reboot & exit
# Notes:
# * lan is a bridge with eth0 and wlan0
# * babel runs on lan bridge
uci set system.@system[0].hostname=lacou-ap
uci set system.@system[0].timezone=EST
uci delete wireless.radio0.disabled
uci set wireless.radio0.channel=11
uci set wireless.@wifi-iface[0].device=wlan0
uci set wireless.@wifi-iface[0].ssid=lacou.acces.reseaulibre.ca
uci set wireless.@wifi-iface[0].network=lan
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].encryption=none
# scp kmod-ipv6_* ip_* kmod-ip6tables_* ip6tables_* radvd_* libip6tc_* libdaemon_* root@192.168.1.1:/tmp/
opkg install /tmp/*.ipk
uci set network.lan.ip6addr=fd64:2c08:9fa7:19::1/64
uci set radvd.@interface[0].ignore=0
uci set radvd.@prefix[0].ignore=0
uci set radvd.@prefix[0].AdvRouterAddr=1
uci set radvd.@prefix[0].prefix=fd64:2c08:9fa7:19::1/64
/etc/init.d/radvd enable
uci set firewall.defaults.disable_ipv6=0
echo net.ipv6.conf.all.forwarding=1 >> /etc/sysctl.conf
uci commit ; reboot & exit
/etc/init.d/babeld enable
uci delete babeld.lan.ignore
echo "package babeld
config general
option local_server '33123'
config filter
option ignore 'true'
config interface 'wan'
option ignore 'true'
config interface 'lan'" | uci import
uci commit ; reboot & exit
uci export radvd
package radvd
config interface
option interface 'lan'
option AdvSendAdvert '1'
option AdvManagedFlag '0'
option AdvOtherConfigFlag '0'
list client ''
config prefix
option interface 'lan'
option AdvOnLink '1'
option AdvAutonomous '1'
option ignore '0'
option AdvRouterAddr '1'
option prefix 'fd64:2c08:9fa7:19::1/64'
config route
option interface 'lan'
list prefix ''
Switching bridge to router, to avoid interaction between the AP clients and the relais.
Change 'lan' from bridge to wireless
uci del network.lan.type uci del network.lan.ifname uci set wireless.@wifi-iface[0].network=lan uci set network.lan.ipaddr=192.168.1.1 uci set network.lan.netmask=255.255.255.0
Add 'wan' interface (wired to the relay node)
uci set network.wan=interface uci set network.wan.ifname=eth0 uci set network.wan.proto=static uci set network.wan.ipaddr=192.168.2.1 uci set network.wan.netmask=255.255.255.0 uci set network.wan.ip6addr=fd64:2c08:9fa7:19::1/64
Update firewall (TODO)
/etc/init.d/firewall disable
Keep radvd configured for advertising on 'lan' (see above)
Reconfigure babel to use 'wan'
echo "package babeld
config general option local_server '33123'
config interface 'wan'
config interface 'lan' option ignore 'true'
config filter option type 'redistribute' option local 'true' option ip fd64:2c08:9fa7:19::/64 option action 'allow'
config filter option type 'redistribute' option local 'true' option ip '192.168.1.0/16' option action 'deny' " | uci import
Modify /etc/config/firewall:
# Leave unchanged: defaults, lan zone config zone option name wan option network 'wan' option input ACCEPT option output ACCEPT option forward REJECT option masq 0 option mtu_fix 1 config forwarding option src lan option dest wan # Add: config forwarding option src wan option dest lan