vpncloud sends some packets to all peers at the same times #253
Replies: 6 comments
-
Beta Was this translation helpful? Give feedback.
-
|
VpnCloud does not forward packets via other peers. There are only two ways packets could be duplicated within VpnCloud:
Other than that, I don't see a way packets could be sent to the wrong peer within VpnCloud. However this could be an effect of your network setup surrounding the VPN. I see that you are configuring a network bridge which could cause such behavior depending on the configuration. |
Beta Was this translation helpful? Give feedback.
-
|
#cat global_l2.net|grep keepalive When receiving keepalive packets from peers 720: https://github.com/dswd/vpncloud/blob/master/src/cloud.rs the cache zeroing function is called 740: https://github.com/dswd/vpncloud/blob/master/src/cloud.rs 61: https://github.com/dswd/vpncloud/blob/master/src/table.rs thus, the "switchout" value is not reached, and broadcast packets pass every "keepalive" second |
Beta Was this translation helpful? Give feedback.
-
|
I have same problem with recurring packet duplicates over vpncloud net. |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, after looking into it a couple of times without understanding the problem, I finally understood the source of the problem. Thanks @biolim for pointing it out. I first dismissed your explanation as the "cache" is only there to speed up lookups (in the router mode) and cleaning it cannot change anything. However in switch mode, the cache IS the forwarding table and a cache miss means a broadcast. Fix is on the way |
Beta Was this translation helpful? Give feedback.
-
|
Fixed in last commit. Please check if the problem is fixed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
There is a problem we faced with vpncloud. Rather often the packet or groups of packets (not all packets) sending from transmitter go through all vpncloud simultaneously like broadcast.
Those peers trying to forward packets to receiver as relayer.
But I can not blame broadcast/multicast in common linux.
tcpdump -n "broadcast and multicast" show nothing.It seems specifically vpncloud sends traffic to all peers at the same times occasionally.
Let me demonstrate to you how is it loos like for ICMP (but applied to tcp/udp as well)
Sender
Receiver gets this all ICMPs. Seems all good
But the others gateways with vpncloud receive some packets as well
As you can see ICMP packets with tcp sequences 654 and 684 (and a dozens before) were transmitted not directly.
It has not only todo with ICMP but UDP and TCP as well
In stat file I see just right entry in cache
In peervpn there is an option enablerelay: yes/no. But I can't find something like that in vpncloud documentation.
We have /16 ethernet segment and set ip adress statically
The configuration is typical for all peers.
I wonder how we can avoid this behavior. We need traffic sending just directly not bypass
Thank you
Beta Was this translation helpful? Give feedback.
All reactions