2015-08-08 11:23:47 +02:00
|
|
|
|
|
|
|
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 'fd53:c5c0:f505::/48'
|
|
|
|
|
|
|
|
config interface 'wan6'
|
|
|
|
option proto 'dhcpv6'
|
|
|
|
option ifname 'br-wan'
|
|
|
|
option ip6table '1'
|
|
|
|
option peerdns '0'
|
2017-04-21 21:58:29 +02:00
|
|
|
option sourcefilter '0'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
|
|
|
config switch
|
|
|
|
option name 'switch0'
|
|
|
|
option reset '1'
|
|
|
|
option enable_vlan '1'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option device 'switch0'
|
|
|
|
option vlan '1'
|
|
|
|
option ports '0t 1 2 3'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option device 'switch0'
|
|
|
|
option vlan '2'
|
|
|
|
option ports '5 6'
|
|
|
|
|
|
|
|
config switch_vlan
|
2016-02-13 12:03:12 +01:00
|
|
|
option device 'switch0'
|
|
|
|
option vlan '5'
|
|
|
|
option ports '0t 4t'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
2017-04-21 21:58:29 +02:00
|
|
|
config interface 'vlan5'
|
|
|
|
option proto 'static'
|
|
|
|
option ifname 'eth1.5'
|
|
|
|
option ipaddr '192.168.112.17'
|
|
|
|
option netmask '255.255.255.0'
|
2017-02-25 18:33:02 +01:00
|
|
|
|
2015-08-08 11:23:47 +02:00
|
|
|
config switch_vlan
|
2016-02-13 12:03:12 +01:00
|
|
|
option device 'switch0'
|
|
|
|
option vlan '10'
|
|
|
|
option ports '0t 4t'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
2017-04-21 21:58:29 +02:00
|
|
|
config interface 'vlan10'
|
|
|
|
option ifname 'eth1.10'
|
|
|
|
option macaddr 'de:ad:be:ef:90:30'
|
|
|
|
option proto 'gluon_mesh'
|
|
|
|
option fixed_mtu '1'
|
|
|
|
option transitive '1'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option device 'switch0'
|
|
|
|
option vlan '11'
|
|
|
|
option ports '0t 4t'
|
|
|
|
|
|
|
|
config interface 'vlan11'
|
|
|
|
option ifname 'eth1.11'
|
|
|
|
option macaddr 'de:ad:be:ef:90:33'
|
|
|
|
option proto 'gluon_mesh'
|
|
|
|
option fixed_mtu '1'
|
|
|
|
option transitive '1'
|
|
|
|
|
2015-08-08 11:23:47 +02:00
|
|
|
config switch_vlan
|
2016-02-13 12:03:12 +01:00
|
|
|
option device 'switch0'
|
|
|
|
option vlan '22'
|
|
|
|
option ports '0t 4t'
|
|
|
|
|
2017-04-21 21:58:29 +02:00
|
|
|
config interface 'vlan22'
|
|
|
|
option ifname 'eth1.22'
|
|
|
|
option macaddr 'de:ad:be:ef:90:31'
|
|
|
|
option proto 'gluon_mesh'
|
|
|
|
option fixed_mtu '1'
|
|
|
|
option transitive '1'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option device 'switch0'
|
|
|
|
option vlan '27'
|
|
|
|
option ports '0t 4t'
|
|
|
|
|
|
|
|
config interface 'vlan27'
|
|
|
|
option ifname 'eth1.27'
|
|
|
|
option macaddr 'de:ad:be:ef:90:32'
|
|
|
|
option proto 'gluon_mesh'
|
|
|
|
option fixed_mtu '1'
|
|
|
|
option transitive '1'
|
|
|
|
|
2015-08-08 11:23:47 +02:00
|
|
|
config interface 'wan'
|
|
|
|
option ifname 'eth0'
|
|
|
|
option auto '1'
|
|
|
|
option peerdns '0'
|
|
|
|
option type 'bridge'
|
|
|
|
option proto 'dhcp'
|
2017-04-21 21:58:29 +02:00
|
|
|
option multicast_querier '0'
|
|
|
|
option macaddr '96:78:f6:ee:5b:e8'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
|
|
|
config rule6 'wan6_lookup'
|
|
|
|
option mark '0x01/0x01'
|
|
|
|
option lookup '1'
|
|
|
|
|
|
|
|
config route6 'wan6_unreachable'
|
|
|
|
option type 'unreachable'
|
|
|
|
option table '1'
|
|
|
|
option target '::/0'
|
|
|
|
option metric '65535'
|
|
|
|
option gateway '::'
|
|
|
|
option interface 'loopback'
|
|
|
|
|
|
|
|
config interface 'client'
|
|
|
|
option reqprefix 'no'
|
|
|
|
option proto 'dhcpv6'
|
|
|
|
option type 'bridge'
|
|
|
|
option macaddr '14:cc:20:4d:3d:68'
|
|
|
|
option peerdns '1'
|
2017-04-21 21:58:29 +02:00
|
|
|
list ifname 'eth1.1'
|
|
|
|
list ifname 'bat0'
|
|
|
|
option robustness '3'
|
|
|
|
option query_interval '2000'
|
|
|
|
option query_response_interval '500'
|
|
|
|
option sourcefilter '0'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
|
|
|
config interface 'mesh_wan'
|
|
|
|
option auto '0'
|
|
|
|
option ifname 'br-wan'
|
2017-04-21 21:58:29 +02:00
|
|
|
option proto 'gluon_mesh'
|
|
|
|
option fixed_mtu '1'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
|
|
|
config interface 'mesh_lan'
|
|
|
|
option ifname 'eth1'
|
|
|
|
option auto '0'
|
|
|
|
option mesh 'bat0'
|
2017-04-21 21:58:29 +02:00
|
|
|
option igmp_snooping '0'
|
|
|
|
option transitive '1'
|
|
|
|
option fixed_mtu '1'
|
|
|
|
option proto 'gluon_mesh'
|
|
|
|
option type 'bridge'
|
|
|
|
option macaddr '96:78:f6:ee:5b:ec'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
|
|
|
config interface 'mesh_vpn'
|
|
|
|
option ifname 'mesh-vpn'
|
|
|
|
option mesh_no_rebroadcast '1'
|
|
|
|
option mesh 'bat0'
|
2017-04-21 21:58:29 +02:00
|
|
|
option transitive '1'
|
|
|
|
option macaddr '96:78:f6:ee:5b:ef'
|
|
|
|
option fixed_mtu '1'
|
|
|
|
option proto 'gluon_mesh'
|
|
|
|
|
|
|
|
config interface 'ibss_radio0'
|
|
|
|
option proto 'gluon_mesh'
|
2015-08-08 11:23:47 +02:00
|
|
|
|
2016-02-13 12:03:12 +01:00
|
|
|
config interface 'bat0'
|
2017-04-21 21:58:29 +02:00
|
|
|
option multicast_router '2'
|
2016-02-13 12:03:12 +01:00
|
|
|
option ifname 'bat0'
|
|
|
|
option macaddr '14:cc:20:4d:3d:68'
|
2017-04-21 21:58:29 +02:00
|
|
|
option learning '0'
|
2016-02-13 12:03:12 +01:00
|
|
|
option proto 'none'
|
|
|
|
|
2017-04-21 21:58:29 +02:00
|
|
|
config interface 'client_lan'
|
|
|
|
option unicast_flood '0'
|
|
|
|
option ifname 'eth1'
|
2016-02-13 12:03:12 +01:00
|
|
|
|
2015-08-08 11:23:47 +02:00
|
|
|
config device 'local_node_dev'
|
|
|
|
option macaddr '16:41:95:40:f7:dc'
|
|
|
|
option ifname 'br-client'
|
|
|
|
option name 'local-node'
|
|
|
|
option type 'macvlan'
|
|
|
|
|
|
|
|
config interface 'local_node'
|
|
|
|
option ifname 'local-node'
|
|
|
|
option ipaddr '10.112.0.1'
|
|
|
|
option ip6addr '2a03:2267::1/128'
|
|
|
|
option netmask '255.255.192.0'
|
|
|
|
option proto 'static'
|
|
|
|
|
|
|
|
config route6 'local_node_route6'
|
|
|
|
option target '2a03:2267::/64'
|
|
|
|
option gateway '::'
|
|
|
|
option interface 'client'
|
|
|
|
|