Routeur "CabernetFranc" (configuration)
Temporairement:
/etc/init.d/firewall disable
/etc/config/system
config system
option hostname CabernetFranc
option timezone EST
config timeserver ntp
list server 0.openwrt.pool.ntp.org
list server 1.openwrt.pool.ntp.org
list server 2.openwrt.pool.ntp.org
list server 3.openwrt.pool.ntp.org
option enabled 1
option enable_server 0
/etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdf4:ab68:a821::/48'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '10.72.91.3'
option netmask '255.255.255.0'
option gateway '10.72.91.1'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
config interface 'wan6'
option ifname '@wan'
option proto 'dhcpv6'
/etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11g
option path 'platform/ar933x_wmac'
option htmode HT20
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
config wifi-iface
option device radio0
option network lan
option mode ap
option ssid OpenWrt
option encryption none
/etc/config/babeld
package babeld
config general
option 'debug' '9'
option 'local_port' '33123'
config interface
option 'ifname' 'eth0'
option 'wired' 'true'
/etc/babeld.conf
Vide.
/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 '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '0'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
config dhcp 'lan'
option interface 'lan'
option start '200'
option limit '250'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
/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'
list prefix ''
option AdvOnLink 1
option AdvAutonomous 1
option AdvRouterAddr 0
option ignore 0
/etc/config/tinc
config tinc-net Marchildon
option enabled 1
option logfile /tmp/log/tinc.Marchildon.log
option debug 3
option Mode router
option Name CabernetFranc
list ConnectTo PinotNoir
config tinc-host CabernetFranc
option enabled 1
option net Marchildon
option Subnet 0.0.0.0/0
list Address fdf4:ab68:a821::1
config tinc-host PinotNoir
option enabled 1
option net Marchildon
option Subnet 10.72.2.0/24
list Address fd6a:2e26:9e03::1
list Address fd2a:6112:3d26:1:6ee8:73ff:feeb:a92b
/etc/tinc/Marchildon/tinc-up
#!/bin/sh
ip=`uci get network.lan.ipaddr`
ifconfig $INTERFACE $ip netmask 255.255.0.0 up
/etc/tinc/Marchildon/subnet-up
#!/bin/sh
[ $NODE = `uci get tinc.$NETNAME.Name` ] && exit