newn-new-net
This commit is contained in:
parent
e085ddd3a5
commit
e3be9b0e0f
@ -1,6 +0,0 @@
|
|||||||
zone "fftdf" {
|
|
||||||
type slave;
|
|
||||||
masters { 10.188.1.100; };
|
|
||||||
file "/var/lib/bind/db.fftdf";
|
|
||||||
};
|
|
||||||
|
|
@ -3,8 +3,7 @@ interface bat0 {
|
|||||||
IgnoreIfMissing on;
|
IgnoreIfMissing on;
|
||||||
MaxRtrAdvInterval 200;
|
MaxRtrAdvInterval 200;
|
||||||
RDNSS {{ sn_mesh_IPv6 }} {};
|
RDNSS {{ sn_mesh_IPv6 }} {};
|
||||||
# prefix fda0:747e:ab29:7405::/64 {
|
prefix {{ sn_mesh_IPv6_net }} {
|
||||||
prefix 2a03:2260:121::/64 {
|
|
||||||
AdvOnLink on;
|
AdvOnLink on;
|
||||||
AdvAutonomous on;
|
AdvAutonomous on;
|
||||||
AdvRouterAddr on;
|
AdvRouterAddr on;
|
||||||
|
@ -19,11 +19,11 @@ curl -X POST --data-urlencode 'payload={"text": "{{ sn_hostname }} is rebooted",
|
|||||||
|
|
||||||
# Set mark 4 to Freifunk traffic
|
# Set mark 4 to Freifunk traffic
|
||||||
/sbin/iptables -t mangle -A PREROUTING -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
|
/sbin/iptables -t mangle -A PREROUTING -s 10.0.0.0/8 ! -d 10.0.0.0/8 -j MARK --set-mark 4
|
||||||
/sbin/ip6tables -t mangle -A PREROUTING -s 2a03:2260:121::/64 ! -d 2a03:2260:121::/64 -j MARK --set-mark 4
|
/sbin/ip6tables -t mangle -A PREROUTING -s 2a03:2260:121::/48 ! -d 2a03:2260:121::/48 -j MARK --set-mark 4
|
||||||
|
|
||||||
# All from FF IPv4 via routing table 42
|
# All from FF IPv4 via routing table 42
|
||||||
/bin/ip rule add from {{ sn_ffrl_IPv4 }}/32 lookup 42
|
/bin/ip rule add from {{ sn_ffrl_IPv4 }}/32 lookup 42
|
||||||
/bin/ip -6 rule add from 2a03:2260:121::/64 lookup 42
|
/bin/ip -6 rule add from {{ sn_mesh_IPv6_net }} lookup 42
|
||||||
|
|
||||||
# Allow MAC address spoofing
|
# Allow MAC address spoofing
|
||||||
/sbin/sysctl net.ipv4.conf.bat0.rp_filter=0
|
/sbin/sysctl net.ipv4.conf.bat0.rp_filter=0
|
||||||
|
Loading…
Reference in New Issue
Block a user