[Question] support for same subnet #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi may I ask if the vpn supports VMs within same subnet but across different locations, as shown below:
can I only install the VPN on the 2 servers itself then route packet for all 4 VMs in the 2 servers?
[main]
port = 23456
broadcast = 192.168.2.255
netcidr = 24
recvThreads = 4
sendThreads = 4
[remote "prague"]
ExtIP = 10.0.0.2
LocIP = 192.168.2.2
route = 192.168.2.0/24
[remote "berlin"]
ExtIP = 10.0.0.3
LocIP = 192.168.2.1
route = 192.168.2.0/24
not in this case :(
lcvpn has ip-based routing, it doesn't have "link-layer" that allow you to use arp and then use something like "proxy arp" or "bridge"
the only option is to divide /24 for example in 2x /25 network
so first one will be 192.168.2.1 with route 192.168.2.0/25 (VMs on 192.168.2.3-127)
and the second 192.168.2.129 with route 192.168.2.128/25 (VMs 192.168.2.130-254)
but this not much different from using 2x /24 subnets
thanks for the prompt reply
does it work if I use vxlan to connect both servers?
vxlan uses ethernet-level packets, so it looks like possible solution
Not sure if this will help or no, but I wrote this to handle correctly avoiding listening on higher priority VPN ports and enabling LAN and loopback peering between instances of my servers: https://github.com/cybriq/p9/blob/main/pkg/util/routeable/routeable.go. It exploits the fact that VPN tunnels don't have multicast capability and uses routing table information to help filter them.