>> On Sep 3, 2020, at 12:15 PM, Ernest Stewart <[email protected]> 
>> wrote:
> Theo de Raadt <[email protected]> wrote:
> Oh my. Have you considered hiring a consultant?
> 
> Of course. As you have already noticed, I have no idea about how to do what 
> I'm trying to do. But a consultant is out of my budget.
> 
> Are you guys saying all I have to do is the following, and packets will 
> automatically be routed correctly?:
> 
> computer1)
> /etc/hostname.re0: 192.168.1.10 0xffffff00
> /etc/hostname.re1: 192.168.2.10 0xffffff00
> /etc/hostname.re2: 192.168.3.10 0xffffff00
> /etc/hostname.re3: 192.168.4.10 0xffffff00
> /etc/mygate:
> 192.168.1.1

Much better.

> 
> 
> computer2)
> /etc/hostname.re0: 192.168.2.11 0xfffffff0
> /etc/hostname.re1: 192.168.2.128 0xfffffff0
> /etc/mygate:
> 192.168.2.10

You’ll need a route rule on computer1 like this to make computer 5 talk to the 
rest of the computers:

route add -net 192.168.2.128/28 192.168.2.11

> 
> computer3)
> /etc/hostname.re0: 192.168.3.11 0xffffff00
> /etc/mygate:
> 192.168.3.10
> 
> computer4)
> /etc/hostname.re0: 192.168.4.11 0xffffff00
> /etc/mygate:
> 192.168.4.10
> 
> 
> computer5)
> /etc/hostname.re0: 192.168.2.129 0xfffffff0
> /etc/mygate:
> 192.168.2.128
> 
> 
> Computer1's physical connections are like this:
> re0->ISP router(192.168.1.1)
> re1->Computer2 re0
> re2->Computer3 re0
> re3->Computer4 re0
> 
> Computer2's re1 is connected to Computer5's re0.

Reply via email to