Browse Source

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

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 6 years ago
parent
commit
35b114d7d9
1 changed files with 9 additions and 2 deletions
  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
 
 	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;
+	};
 }