@@ -151,14 +151,23 @@ initial_local_node_setup()
151
151
152
152
uci add_list network.freifunk.ipaddr=" $addr4 "
153
153
uci add_list network.freifunk.ipaddr6=" $addr6 "
154
+ uci add_list network.freifunk.ip6addr=" $addr6 "
154
155
155
156
cat >> /etc/firewall.user << - EOF
156
157
157
- #isolate local-node IPv4 address
158
+ # isolate local-node IPv4 address
158
159
ebtables -A FORWARD --logical-out br-freifunk -o bat0 -p arp --arp-ip-dst $addr4 /32 -j DROP
159
160
ebtables -A OUTPUT --logical-out br-freifunk -o bat0 -p arp --arp-ip-dst $addr4 /32 -j DROP
160
161
ebtables -A FORWARD --logical-out br-freifunk -o bat0 -p IPv4 --ip-source $addr4 /32 -j DROP
161
162
ebtables -A OUTPUT --logical-out br-freifunk -o bat0 -p IPv4 --ip-source $addr4 /32 -j DROP
163
+
164
+ # isolate local-node IPv6 address
165
+ ebtables -A FORWARD --logical-out br-freifunk -o bat0 -p IPv6 --ip6-dst ${addr6%% ??} /128 -j DROP
166
+ ebtables -A OUTPUT --logical-out br-freifunk -o bat0 -p IPv6 --ip6-dst ${addr6%% ??} /128 -j DROP
167
+ ebtables -A FORWARD --logical-out br-freifunk -o bat0 -p IPv6 --ip6-source ${addr6%% ??} /128 -j DROP
168
+ ebtables -A OUTPUT --logical-out br-freifunk -o bat0 -p IPv6 --ip6-source ${addr6%% ??} /128 -j DROP
169
+
170
+
162
171
EOF
163
172
}
164
173
@@ -239,6 +248,7 @@ initial_setup()
239
248
uci set -q network.globals=" globals"
240
249
uci set network.globals.ula_prefix=" $prefix "
241
250
echo " 10.11.175.127 node" >> /etc/hosts
251
+ echo " 10.11.175.127 nextnode.ffbsee" >> /etc/hosts
242
252
243
253
# ------------------------------------------- #
244
254
# S E T U P W I R E L E S S #
0 commit comments