Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:host:dobby-setup

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
infrastruktur:host:dobby-setup [03.02.2025 23:53] – [ROA updaten] Linus Lüssinginfrastruktur:host:dobby-setup [15.02.2025 01:32] (aktuell) – [Netfilter Firewall] Linus Lüssing
Zeile 106: Zeile 106:
 nft add rule inet filter forward iifname "eth0" oifname "dn42_*" accept nft add rule inet filter forward iifname "eth0" oifname "dn42_*" accept
 nft add rule inet filter forward iifname "dn42_*" oifname "eth0" ct state established,related accept nft add rule inet filter forward iifname "dn42_*" oifname "eth0" ct state established,related accept
-nft add rule inet filter forward counter reject+nft add rule inet filter forward counter reject with icmpx type admin-prohibited
 </code> </code>
  
Zeile 132: Zeile 132:
 ===== OPNSense Firewall fw01.nobreakspace.org ===== ===== OPNSense Firewall fw01.nobreakspace.org =====
  
-* [x]: announce fd20:bdda:5df0::/64 im radvd, statt fd69:2694:4eb5::+  * [x]: announce fd20:bdda:5df0::/64 im radvd, statt fd69:2694:4eb5::
     * https://fw01.nobreakspace.org/ui/interfaces/vip     * https://fw01.nobreakspace.org/ui/interfaces/vip
     * dort `fd69:2694:4eb5::/48` auf `fd20:bdda:5df0::1/64` geändert     * dort `fd69:2694:4eb5::/48` auf `fd20:bdda:5df0::1/64` geändert
-* [x]: dobby alias+  * [x]: dobby alias
     * https://fw01.nobreakspace.org/ui/firewall/alias     * https://fw01.nobreakspace.org/ui/firewall/alias
     * Firewall->Aliases, add:     * Firewall->Aliases, add:
Zeile 144: Zeile 144:
     * Content: 172.23.208.8, 2a01:170:1112::8     * Content: 172.23.208.8, 2a01:170:1112::8
     * Description: dn42 BGP router     * Description: dn42 BGP router
-* [x]: statisches DHCPv4 mapping (optional, eigentlich stat. IPs):+  * [x]: statisches DHCPv4 mapping (optional, eigentlich stat. IPs):
     * https://fw01.nobreakspace.org/services_dhcp.php?if=lan     * https://fw01.nobreakspace.org/services_dhcp.php?if=lan
     * MAC address: BC:24:11:0F:A6:06     * MAC address: BC:24:11:0F:A6:06
     * IP address: 172.23.208.8     * IP address: 172.23.208.8
     * Hostname: dobby     * Hostname: dobby
-* [x]: IPv4 port forwarding:+  * [x]: IPv4 port forwarding:
     * https://fw01.nobreakspace.org/firewall_nat.php     * https://fw01.nobreakspace.org/firewall_nat.php
     * Description: dobby dn42 tunnels     * Description: dobby dn42 tunnels
Zeile 157: Zeile 157:
     * Protocol: UDP     * Protocol: UDP
     * Destination port range: 2300-2399     * Destination port range: 2300-2399
-* [x]: IPv6 incoming erlauben:+  * [x]: IPv6 incoming erlauben:
     * https://fw01.nobreakspace.org/firewall_rules.php?if=wan     * https://fw01.nobreakspace.org/firewall_rules.php?if=wan
     * Firewall->Rules->Wan, hinzufügen:     * Firewall->Rules->Wan, hinzufügen:
Zeile 173: Zeile 173:
         * Destination port range: from: any, to: any         * Destination port range: from: any, to: any
         * Gateway: default         * Gateway: default
-* [x]: Variante A) statische Routen zu dobby hinzufügen+  * [x]: Variante A) statische Routen zu dobby hinzufügen
     * ~~Routing: General:~~     * ~~Routing: General:~~
         * ~~Enable: yes~~         * ~~Enable: yes~~
Zeile 215: Zeile 215:
                 * Gateway: dobby_dn42_ipv4                 * Gateway: dobby_dn42_ipv4
                 * Description: ChaosVPN, neonetwork, Freifunk/ICVPN (via dn42)                 * Description: ChaosVPN, neonetwork, Freifunk/ICVPN (via dn42)
-* [ ]: Variante B) full BGP import von dobby, export Filter auf dobby (-> Routing: BGP) +  * [ ]: Variante B) full BGP import von dobby, export Filter auf dobby (-> Routing: BGP) 
- +  * [x]: DNS hinzufügen: https://dn42.dev/services/DNS 
 +    * Services: Unbound DNS: Advanced: 
 +      * Private Domains: add "dn42" 
 +    * Services: Unbound DNS: Query Forwarding -> Custom forwarding, add: 
 +      * Enabled: yes 
 +      * Domain: dn42 
 +      * Address: fd42:d42:d42:54::
 +      * Description: dn42 DNS
 ===== Bird2 ===== ===== Bird2 =====
  
Zeile 400: Zeile 406:
  
         export filter { if is_valid_network() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; };         export filter { if is_valid_network() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; };
-        import limit 1000 action block;+        import limit 9000 action block;
     };     };
  
Zeile 413: Zeile 419:
         };         };
         export filter { if is_valid_network_v6() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; };         export filter { if is_valid_network_v6() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; };
-        import limit 1000 action block; +        import limit 9000 action block; 
     };     };
 } }
Zeile 526: Zeile 532:
         neighbor ${PEERIP6}%dn42_${PEERNAME}_wg as ${PEERASN};         neighbor ${PEERIP6}%dn42_${PEERNAME}_wg as ${PEERASN};
 } }
 +EOF
 </code> </code>
 +
 +Oder alternativ/präferiert via multiprotocol "extended next hop" (IPv4 via v6 next hop):
 +
 +<code>
 +$ cat << EOF > /etc/bird/peers/dn42-${PEERNAME}.conf
 +protocol bgp dn42_${PEERNAME}_v6 from dnpeers {
 +        neighbor ${PEERIP6}%dn42_${PEERNAME}_wg as ${PEERASN};
 +        
 +        ipv4 {
 +                extended next hop on;
 +        };
 +}
 +EOF
 +</code>
 +
 +Dann hat man lustige Routen wie diese:
 +
 +<code>
 +$ ip -4 route show prot bird via inet6 fe80::b
 +10.26.0.0/16 via inet6 fe80::b dev dn42_ffda_wg src 172.23.208.8 metric 32 
 +10.29.0.0/16 via inet6 fe80::b dev dn42_ffda_wg src 172.23.208.8 metric 32 
 +10.37.0.0/16 via inet6 fe80::b dev dn42_ffda_wg src 172.23.208.8 metric 32 
 +10.56.0.0/16 via inet6 fe80::b dev dn42_ffda_wg src 172.23.208.8 metric 32 
 +10.60.128.0/20 via inet6 fe80::b dev dn42_ffda_wg src 172.23.208.8 metric 32
 +...
 +</code>
 +
 +Und man benötigt keine IPv4 Adress Absprachen für den Wireguard Tunnel, für dn42-${PEERNAME}-wg.network.
infrastruktur/host/dobby-setup.1738626801.txt.gz · Zuletzt geändert: 03.02.2025 23:53 von Linus Lüssing