Routeur "PinotNoir" (configuration)
Temporairement:
/etc/init.d/firewall disable
/etc/config/system
config system
option hostname PinotNoir
option timezone UTC
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 'fd6a:2e26:9e03::/48'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '10.72.2.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
option gateway '0.0.0.0'
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 'local_server' '33123'
option 'log_file' '/var/log/babeld.log'
option debug 5
config interface
option 'ifname' 'wan'
config interface
option 'ifname' 'lan'
option 'wired' 'true'
config filter
option 'type' 'redistribute'
option 'ip' 'fd6a:2e26:9e03::1/60'
option 'metric' '0'
config filter
option 'type' 'redistribute'
option 'local' 'true'
option 'action' 'deny'
/etc/babeld.conf
N'existe pas.
/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 '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
list dhcp_option '6,8.8.8.8,6,8.8.4.4'
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
Tout est comme ça:
option ignore 1
/etc/config/tinc
config tinc-net Marchildon
option enabled 1
option logfile /tmp/log/tinc.Marchildon.log
option debug 4
option Mode router
option Name PinotNoir
list ConnectTo CabernetFranc
config tinc-host PinotNoir
option enabled 1
option net Marchildon
option Subnet 10.72.2.0/24
list Address fd6a:2e26:9e03::1
config tinc-host CabernetFranc
option enabled 1
option net Marchildon
option Subnet 0.0.0.0/0
list Address fdf4:ab68:a821::1
/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
ip -6 route add default dev $INTERFACE metric 512
ip route add default dev $INTERFACE