b0rman

Wrong Connection Selection Algorithm?

Recommended Posts

Hi!

 

I have couple of PCs with BTSync in my LAN ("LAN-PCs") and one PC outside my LAN ("EXT-PC").

I have 2 external IPs from different ISP (12Mbps + 50Mbps), BTSync ports for "LAN-PCs" mapped on firewall.

EXT-PC connected to my LAN via OpenVPN connection (it's set to 1Mbps by QoS).

I found that even when I set peers manually on EXT-PC as my external IPs it always choose LAN IPs that got from LAN peers. There is an information in LOG-file that 192.168.0.x chosen as best liks for p2p connection.

 

Why? OpenVPN link is not the fastest and isn't the best for connection!

Share this post


Link to post
Share on other sites

@b0rman

If Sync has access to multiple NICs, it always prefers "local" connection. It determines local IPs according to RFC1918. What are the IP ranges you use in LAN and for VPN?

Share this post


Link to post
Share on other sites

@b0rman

Sync caches peers and remembers their local can global IPs. Try setting peer_expiration days to "0" advanced preference and restart your client - it should flush cache of peers.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.