Skip to Content.

rare-dev - Re: [rare-dev] Socket connection between RARE/freeRtr VMs

Subject: Rare project developers

List archive


Re: [rare-dev] Socket connection between RARE/freeRtr VMs


Chronological Thread 
  • From: Edgard da Cunha Pontes <>
  • To: mc36 <>
  • Cc:
  • Subject: Re: [rare-dev] Socket connection between RARE/freeRtr VMs
  • Date: Tue, 9 Aug 2022 10:08:42 -0300

Hi Csaba! Now I understand what happened.. 

We are setting up a basic network for the RENaaS project. Consisting of multiple VMs with RARE/freeRtr.
The initial idea was to interconnect these instances of RARE/freeRtr with basic socket connections, but it didn't work out. And now I know why.

We're still figuring out what kind of overlay we'll use for these connections.
For now, we have tested: VXLan, GRE and Wireguard. And the idea of using PolKA to enable a "network service at the ends" came up.

We are not sure which type of tunnel to use. Always making a performance/safety/practical tradeoff...

Thanks again for your help.

Em seg., 8 de ago. de 2022 às 12:26, mc36 <> escreveu:
imho i've an idea what happened: so the one-line installer wipes the linux networking completely,
from that point the linux's network stack only have a 10.255.255.1/24 ip and is hidden behind freerouter...
so imho it failed to bind to the requested ip:port pair from the config... moreover, since the linuxes
dont have the public ips anymore, the given setup you're trying to do is a double-nat case, but without
anything to punch through the nats, as these interface sockets should have direct visibility....
br,
cs


On 8/8/22 17:18, mc36 wrote:
> hi,
>
> On 8/8/22 17:01, Edgard da Cunha Pontes wrote:
>> i everyone,
>>
>> Testing a socket connection between  RARE/freeRtr VMs (one line install),  as in the image shown below.
>>
>> socket-connection.jpg
>>
>> I put the following settings:
>>
>> VM1 /rtr/rtr-hw.txt
>> ....
>> [other configs]
>> int eth2 eth [mac-vm1] [public-ip-vm1] 20004 [public-ip-vm2] 20004
>> ....
>>
>> VM2 /rtr/rtr-hw.txt
>> ....
>> [other configs]
>> int eth2 eth [mac-vm2] [public-ip-vm2] 20004 [public-ip-vm1] 20004
>> ....
>>
>> After restarting the VM I lost SSH access permanently.
>> Is there any way to make this socket connection prevent this from happening?
>>
>> PS:  I'm trying to create this eth2 dynamically, ie a new internal interface was not created.
>
> this one should work as long as you dont reuse nor eth2 nor the port 20004...
> so for now i see nothing to justify why you lost the ssh access...
>
> but on the other hand, is there any reason you want to connect these this way?
>
> i mean, there are plenty of other tunneling modes in freerouter that can make it work:
> http://sources.freertr.org/cfg/conn-gre01.tst -- is a a plain old stuff and imho
> it have less overhead than anything else.... and it also can carry layer2 frames,
> you just have to put a bridge-group on the tunnel...
>
> br,
> cs



Archive powered by MHonArc 2.6.19.

Top of Page