Parcourir la source

bird: Export routes with source address set to loopback IP into kernel table.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm il y a 6 ans
Parent
commit
35b114d7d9
1 fichiers modifiés avec 9 ajouts et 2 suppressions
  1. 9 2
      bird/bird.conf

+ 9 - 2
bird/bird.conf

@@ -22,8 +22,15 @@ protocol kernel {
 	scan time 20;           # Scan kernel routing table every 20 seconds
 	scan time 20;           # Scan kernel routing table every 20 seconds
 
 
 	import none;
 	import none;
-	# Do NOT export local unreachable routes for TE purposes
-	export where proto != "ffho_te";
+	export filter {
+		# Do NOT export local unreachable routes for TE purposes
+		if proto = "ffho_te" then
+			reject;
+
+		# Export routes with source address set to loopback IP
+		krt_prefsrc = LO_IP;
+		accept;
+	};
 }
 }