wangyu- / tinyfecVPN

A VPN Designed for Lossy Links, with Build-in Forward Error Correction(FEC) Support. Improves your Network Quality on a High-latency Lossy Link.
MIT License
2.28k stars 456 forks source link

After testing, it was found that the VPN tunnel does not support VXLAN and IP_GRE #118

Open maojianyou opened 5 months ago

maojianyou commented 5 months ago

provided scenario involves creating a virtual network between two hosts (A and B) using VXLAN.

On host A (assuming 172.16.71.2 with tun1 interface):

ip link add vxlan71 type vxlan id 71 remote 172.16.71.1 local 172.16.71.2 dstport 4789 dev tun1
ip addr add 172.16.171.2/32 dev vxlan71
ip link set vxlan71 up
ip route add 172.16.171.0/24 dev vxlan71

On host B (assuming 172.16.71.1 with tun1 interface):

ip link add vxlan71 type vxlan id 71 remote 172.16.71.2 local 172.16.71.1 dstport 4789 dev tun1
ip addr add 172.16.171.1/32 dev vxlan71
ip link set vxlan71 up
ip route add 172.16.171.0/24 dev vxlan71

When trying to ping 172.16.171.1 from A, the ping is not successful. image

wangyu- commented 3 weeks ago

(I am not really familiar with vxlan)

But seems like you are using the same ip as both underlay ip (tinyfecvpn) and overlay ip(vxlan)?

likely it's your configuation problem.