SHOW:
|
|
- or go back to the newest paste.
1 | auto bat0 | |
2 | iface bat0 inet static | |
3 | hw ether 39-26-A1-6D-85-8C | |
4 | address 10.158.80.2 | |
5 | netmask 255.255.255.0 | |
6 | pre-up modprobe batman-adv && tunctl -t mesh-vpn && batctl if add mesh-vpn | |
7 | post-up ip rule add iif bat0 table freifunk | |
8 | pre-down ip rule del iif bat0 table freifunk | |
9 | ||
10 | iface bat0 inet6 static | |
11 | address 2a03:2260:11e:616::1 | |
12 | netmask 64 | |
13 | #Routes | |
14 | #Note: route del not needed - shutting down the interfaces removes routes anyway | |
15 | post-up ip -6 addr add fdd3:5d16:b5dd:1016::1/64 dev bat0 | |
16 | post-up ip -6 route add fdd3:5d16:b5dd:1016::/64 dev bat0 table freifunk | |
17 | ||
18 | - | post-up ip -6 route add 2a03:2260:11e:616::1/64 dev bat0 |
18 | + | post-up ip -6 addr add 2a03:2260:11e:616::1/64 dev bat0 |
19 | post-up ip -6 route add 2a03:2260:11e:616::/64 dev bat0 table freifunk | |
20 | ||
21 | # Rules (iif: routed traffic, from: traffic from the supernode) | |
22 | post-up ip -6 rule add iif bat0 table freifunk | |
23 | post-up ip -6 rule add from 2a03:2260:11e::/48 table freifunk | |
24 | pre-down ip -6 rule del iif bat0 table freifunk | |
25 | pre-down ip -6 rule del from 2a03:2260:11e::/48 table freifunk |