<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for your suggestion Yakov,</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I added the sections you had mentionned as below and the neighbor is still unreachable.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am not a network expert but i am wondering if such a set up is technically possible.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Do you know?</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
$ cat /etc/bird.conf</div>
<div id="appendonsend"></div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
router id <public ip>;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
protocol bgp bgp_static {</div>
<div style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
local as 65001;</div>
<div style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
neighbor <server 2 public ip> as 65001;</div>
<div style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
multihop 99;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
ipv4 {</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
import all;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
export filter {</div>
<div style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
if net = 10.1.1.1/32 then accept;</div>
<div style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
reject;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
};</div>
<div style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
};</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
debug all;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
}</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
protocol kernel {</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
ipv4 {</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
import all;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
export all;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
};</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
learn;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
persist;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
scan time 20;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
}</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
protocol direct {</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
interface "*";</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
}</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
protocol device {</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
scan time 10;</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Consolas, Courier, monospace; font-size: 12pt; color: rgb(0, 0, 0);">
}</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, "system-ui", Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, "system-ui", Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many Thanks,</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, "system-ui", Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
tg</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>De :</b> Yakov Sh. <yman@protonmail.ch><br>
<b>Envoyé :</b> samedi 2 novembre 2024 12:36<br>
<b>À :</b> Talal Gharsa <g_hisoka@hotmail.com><br>
<b>Cc :</b> bird-users@network.cz <bird-users@network.cz><br>
<b>Objet :</b> Re: [BGP] Set up bgp through the internet on public servers</span>
<div> </div>
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;">Since you have only BGP protocol defined, BIRD knows nothing about any routes that could exist on your system. If you want to import local routes into BIRD you need to add some other protocols, usually
it's 'device', 'direct' and 'kernel'.</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;">Yakov Sh.</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;">telegram: @darkyman</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;">Sent with <a href="https://proton.me/mail/home" id="OWA9e3bb068-ebca-bd5f-dbe9-59d382f447df" class="OWAAutoLink" data-auth="NotApplicable">
Proton Mail</a> secure email.</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
</div>
<div>On Saturday, November 2nd, 2024 at 11:34, Talal Gharsa <g_hisoka@hotmail.com> wrote:</div>
<blockquote>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Hello,</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">I rent physical hosts from a public cloud provider and i am trying to set up a private network between them.</div>
<div style="direction: ltr;">For that, i want to configure BGP protocol between them.</div>
<div style="direction: ltr;">I use Bird 2.15.1 on AlmaLinux 9.2.</div>
<div style="direction: ltr;">Each host has a public ip that i use as « router id » and « neighbor ».</div>
<div style="direction: ltr;">I add a private ip 10.1.1.x on lo interface used for BGP.</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">birdc show protocol command confirm that the bgp session is established. State is « up » and Info column displays « Established ».</div>
<div style="direction: ltr;">But birdc show route command is empty; it shows only the following message « BIRD 2.15.1 ready. ».</div>
<div style="direction: ltr;">The routing tables seems to not be shared between the peers.</div>
<div style="direction: ltr;">There are no errors in the logs (either /var/log/messages nor journalctl).</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Do you know if this approach is technically possible?</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Herunder the configuration:</div>
<div style="direction: ltr;">$ cat /etc/bird/bird.conf</div>
<div style="direction: ltr;">router id <public ip>;</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">protocol bgp bgp_static {</div>
<div style="direction: ltr;"> local as 65001;</div>
<div style="direction: ltr;"> neighbor <server 2 public ip> as 65001;</div>
<div style="direction: ltr;"> multihop 99;</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"> ipv4 {</div>
<div style="direction: ltr;"> import all;</div>
<div style="direction: ltr;"> export filter {</div>
<div style="direction: ltr;"> if net = 10.1.1.1/32 then accept;</div>
<div style="direction: ltr;"> reject;</div>
<div style="direction: ltr;"> };</div>
<div style="direction: ltr;"> };</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"> debug all;</div>
<div style="direction: ltr;">}</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Many Thanks,</div>
<div style="direction: ltr;">tg</div>
</blockquote>
<br>
</body>
</html>