fixed typos

netsplit
Niklas Yann Wettengel 7 years ago
parent 8bad801b15
commit 2e5b3ff179

@ -22,7 +22,9 @@ COMMIT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT -A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT -A INPUT -p udp -m udp --dport 53 -j ACCEPT
#dhcp #dhcp
-I INPUT -i bat0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT {% for site in sites %}
-I INPUT -i bat{{ site.name }} -p udp --dport 67:68 --sport 67:68 -j ACCEPT
{% endfor %}
# ntp # ntp
-A INPUT -p udp -m udp --dport 123 -j ACCEPT -A INPUT -p udp -m udp --dport 123 -j ACCEPT
# fastd # fastd

@ -5,7 +5,7 @@ batctl -m bat{{ item.name }} if add $1
batctl -m bat{{ item.name }} gw server 1000000/1000000 batctl -m bat{{ item.name }} gw server 1000000/1000000
batctl -m bat{{ item.name }} it 10000 batctl -m bat{{ item.name }} it 10000
batctl -m bat{{ item.name }} mm 1 batctl -m bat{{ item.name }} mm 1
echo 64 > /sys/class/net/bat0/mesh/hop_penalty echo 64 > /sys/class/net/bat{{ item.name }}/mesh/hop_penalty
netctl start bat{{ item.name }} netctl start bat{{ item.name }}
systemctl restart dhcpd4.service systemctl restart dhcpd4.service
systemctl restart named.service systemctl restart named.service

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
{% for peer in item.wireguard_mesh_peers %} {% for peer in item.wireguard_mesh_peers %}
batctl -m bat0 if del mesh{{ item.name }}{{ peer.number }} batctl -m bat{{ item.name }} if del mesh{{ item.name }}{{ peer.number }}
ip link set down dev mesh{{ item.name }}{{ peer.number }} ip link set down dev mesh{{ item.name }}{{ peer.number }}
ip link del mesh{{ item.name }}{{ peer.number }} type ip6gretap ip link del mesh{{ item.name }}{{ peer.number }} type ip6gretap
{% endfor %} {% endfor %}

Loading…
Cancel
Save