vxlan

Hello all,

I want to use vxlan bridge two different FreeBSD device (at different internet connection) with same ip network.
but couldnt find documentation
how can I do this?

Thanks for your help
 
Ekran Resmi 2024-03-28 11.12.28.png

Thanks,
I tried this document before but no success
my configuration is above.

Site1:
ifconfig vxlan create vxlanid 42 vxlanremote 4.5.6.7 vxlanlocal 1.2.3.4 inet 10.10.99.2/24
Site2:
FreeBSD is behind nat, DMZ configured at modem.
ifconfig vxlan create vxlanid 42 vxlanremote 1.2.3.4 vxlanlocal 192.168.19.2 inet 10.10.99.2/24

but cant ping from 10.10.99.1 to 10.10.99.2
and also cant ping from 192.168.0.10 to 192.168.0.20

Thanks for your help
 
Never used vxlan(4), but looking at your configuration, I don't think you're supposed to use the same 10.10.99.2/24 address on both sides. Copy/paste error? Or did you actually configure it that way?
No, not same.
My first config didnt worked.

Then I created 2 FreeBSD devices.
1711710480423.png


1711710529545.png


site1 10.10.99.1/24
site2: 10.10.99.2/24

but sites cant ping each other. it gives timeout

1711718638274.png


can it be a bug?

Thanks
 
I've not done this through NAT, so let's start from scratch.

One host or the other needs to make a connection. NAT on the right will block incoming by default, so let's concentrate on the other direction.

From the right FW (192.168.19.2), send a ping to 1.2.3.4, it should arrive at the left host with a source address of 4.5.6.7. This needs to work before anything else.

VXLAN listens on port 4789, so check that is listening on the interface with 1.2.3.4 assigned to it.
#sockstat -4l | grep 4789
 
Back
Top