Privates Netz statt Freifunk über LAN

Hi, hier ist sie. In der Switch-Definition darf man natürlich nicht den eth0 rausnehmen. Meine MAC-Adressen und globale IPs habe ich mit xxx unkenntlich gemacht.

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config switch
	option name 'eth0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'eth0'
	option vlan '1'
	option ports '0 1 2 3 4'

config interface 'wan'
	option ifname 'eth0'
	option type 'bridge'
	option proto 'dhcp'
	option peerdns '0'

config interface 'client'
	option ifname 'eth1 bat0'
	option type 'bridge'
	option proto 'dhcpv6'
	option reqprefix 'no'
	option macaddr 'xxx'
	option peerdns '1'

config interface 'mesh_vpn'
	option ifname 'mesh-vpn'
	option mesh_no_rebroadcast '1'
	option macaddr 'xxx'
	option mesh 'bat0'
	option proto 'batadv'

config interface 'wan6'
	option proto 'dhcpv6'
	option ifname 'br-wan'
	option peerdns '0'
	option ip6table '1'

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 'bat0'
	option ifname 'bat0'
	option macaddr 'xxx'
	option proto 'none'

config interface 'mesh_radio0'
	option proto 'batadv'
	option mesh 'bat0'
	option mtu '1528'

config interface 'mesh_wan'
	option auto '0'
	option ifname 'br-wan'
	option mesh 'bat0'
	option proto 'batadv'

config device 'local_node_dev'
	option macaddr 'xxx'
	option ifname 'br-client'
	option name 'local-node'
	option type 'macvlan'

config interface 'local_node'
	option ifname 'local-node'
	option ipaddr '10.53.254.254'
	option ip6addr 'xxx'
	option netmask '255.255.255.255'
	option proto 'static'

config route 'local_node_route4'
	option target '10.53.0.0'
	option gateway '0.0.0.0'
	option netmask '255.255.0.0'
	option interface 'client'

config route6 'local_node_route6'
	option target 'xxx'
	option gateway '::'
	option interface 'client'
3 Likes