Relais "pomme" (configuration)

Ce relais communique avec besik. Il est lié au routeur PinotNoir.

Temporairement:

/etc/init.d/firewall disable

/etc/config/system

config system
    option timezone 'UTC'
    option community 'Commotion'
    option homepage 'http://thisnode/commotion/index/apps'
    option hostname 'pomme-1014500599'

/etc/config/network

config interface 'lan'
    option class 'client'
    option type 'bridge'
    option ip6addr 'fd70:579f:e263:0001::1/64'
    option proto 'static'
    option ipaddr '10.12.247.1'
    option netmask '255.255.255.0'

config interface 'wired'
    option ifname 'eth0'
    option proto 'commotion'
    option class 'wired'
    option meshed 'false'
    option dhcp 'server'

config alias 'thisnode'
    option interface 'lan'
    option proto 'static'
    option ipaddr '169.254.12.247'
    option netmask '255.255.0.0'

config interface 'relais_46pomme_46reseaulibre_46ca'
    option class 'mesh'
    option proto 'babel'
    option profile 'relais_46pomme_46reseaulibre_46ca'

/etc/config/wireless

config wifi-device 'radio0'
    option type 'mac80211'
    option hwmode '11ng'
    option macaddr '24:a4:3c:78:0c:f7'
    option htmode 'HT20'
    list ht_capab 'SHORT-GI-40'
    list ht_capab 'TX-STBC'
    list ht_capab 'RX-STBC1'
    list ht_capab 'DSSS_CCK-40'
    option disabled '0'
    option channel '1'

config wifi-iface 'commotionAP'
    option network 'lan'
    option mode 'ap'
    option ssid 'acces.pomme.reseaulibre.ca'
    option device 'radio0'
    option encryption 'none'

config wifi-iface 'commotionMesh'
    option mode 'adhoc'
    option network 'relais_46pomme_46reseaulibre_46ca'
    option ssid 'relais.pomme.reseaulibre.ca'
    option proto 'babel'
    option device 'radio0'
    option encryption 'none'

/etc/config/babeld

config general
    option hello_interval '4'
    option wired_hello_interval '10'
    option local_server '33123'
    option conf_file '/etc/babeld.conf'
    option log_file '/var/log/babeld.log'

config interface 'wired'

config interface 'relais_46pomme_46reseaulibre_46ca'

/etc/babeld.conf

redistribute local ip 192.168.0.0/16 deny
redistribute local ip 10.0.0.0/8 deny
redistribute ip 192.168.0.0/16 deny
redistribute ip 10.0.0.0/8 deny
redistribute proto 2

/etc/config/dhcp

config dnsmasq
    option domainneeded '1'
    option boguspriv '1'
    option filterwin2k '0'
    option localise_queries '1'
    option rebind_protection '1'
    option rebind_localhost '1'
    option local '/mesh.local/'
    option domain 'mesh.local'
    option expandhosts '1'
    option nonegcache '0'
    option authoritative '1'
    option readethers '1'
    option leasefile '/tmp/dhcp.leases'
    option resolvfile '/tmp/resolv.conf.auto'
    list   addnhosts '/var/run/hosts_olsr'
    list   dhcp_option '3'

config dhcp
    option interface 'lan'
    option start '2'
    option limit '150'
    option leasetime '12h'
    option ignore '0'

/etc/config/radvd

config interface
    option interface 'lan'
    option AdvSendAdvert '1'
    option AdvManagedFlag '0'
    option AdvOtherConfigFlag '0'
    list client ''
    option ignore '0'

config prefix
    option interface 'lan'
    option AdvOnLink '1'
    option AdvAutonomous '1'
    option prefix 'fd70:579f:e263:0001::1/64'
    option ignore '0'
    option AdvRouterAddr '1'

config route
    option interface 'lan'
    list prefix ''
    option ignore '1'

config rdnss
    option interface 'lan'
    list addr ''
    option ignore '1'

config dnssl
    option interface 'lan'
    list suffix ''
    option ignore '1'

/etc/config/nodogsplash

config settings 'settings'
    option splashunit 'hours'
    option enable '1'
    option splashtime '1'
    option redirect '0'
    option autoauth '0'
    option MaxClients 100

config interfaces 'interfaces'
    option interface 'br-lan'

config MACList whitelist

config MACList blacklist

config FirewallRuleSet preauthenticated_users
    list FirewallRule 'allow tcp port 53'
    list FirewallRule 'allow udp port 53'
    list FirewallRule 'allow tcp port 443'
    list FirewallRule 'allow to 10.0.0.0/8'
    list FirewallRule 'allow to 169.254.0.0/16'
    list FirewallRule 'allow to 100.64.0.0/10'

config FirewallRuleSet authenticated_users
    list FirewallRule 'allow all'

config FirewallRuleSet users_to_router
    list FirewallRule 'allow all'