Wrong Upnp Work In Btsync


tantra

Recommended Posts

Hello

 

btsync have wrong implementation of upnp. It works only on networks without routers between network segments. In our case we have follow network organization:

 

Whole network is:

 

192.168.1.0/24

 

This network is divided to subnetworks with 64 host in each other. Now we have 3 subnetworks

 

192.168.1.0/26

192.168.1.64/26

192.168.1.128/26

 

subnetworks 192.168.1.64/26 and 192.168.1.128/26 join to 192.168.1.0/26 with routers. In 192.168.1.0/26 we have gateway(192.168.1.1) to global network. On that gateway work nat, nd upnp server, and btsync client placed in subnetwork 192.168.1.64/26.

 

When btsync starts it send multicast SSDP discovery(we see this throw wireshark):

 

M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST:upnp:rootdevice
MAN:"ssdp:discover"
MX:3
 

 

and gateway response to it:

 

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=120
ST: upnp:rootdevice
USN: uuid:75802409-bccb-40e7-8e6c-60a44c67052b::upnp:rootdevice
EXT:
SERVER: RT-N56U/3.0.3.8 UPnP/1.1 MiniUPnPd/1.8
LOCATION: http://192.168.1.1:47984/rootDesc.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: 1
BOOTID.UPNP.ORG: 1
CONFIGID.UPNP.ORG: 1337

 

 

But btsync just ignore this, and doesn't discovers service list: http://192.168.1.1:47984/rootDesc.xml, which have

 

<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
 

As a result no any port are opened.

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Not problem, here is debug log from fresh setup of btsync (after 2 restarts)

 

platform: Windows workstation 5.1.2600 x86
version: 1.4.106
[2015-01-23 21:28:32] total physical memory 2147483647 max disk cache 33554432
[2015-01-23 23:30:10] total physical memory 2147483647 max disk cache 33554432
[2015-01-26 02:38:19] total physical memory 2147483647 max disk cache 33554432
[2015-01-26 02:38:43] total physical memory 2147483647 max disk cache 33554432
[2015-01-26 02:38:43] Using IP address 192.168.1.118
[2015-01-26 02:38:43] ICMP port bind failed 0.0.0.0:10095: (10013) Сделана попытка доступа к сокету методом, запрещенным правами доступа.
[2015-01-26 02:38:44] BCryptInit: failed to bind to bcrypt.dll - 126
[2015-01-26 02:38:44] Aes Crypt algorithm provider has been loaded and initialized
[2015-01-26 02:38:44] My PeerID: 10366D65C80114793C0C3C957B752ADF6971FB3D
[2015-01-26 02:38:54] Error opening Windows firewall: 0x80070005 Отказано в доступе.
[2015-01-26 02:40:04] saved history: 0 events
[2015-01-26 02:40:04] SyncFolderScanner: shutting down working thread...
[2015-01-26 02:40:04] Shutdown. Saving config sync.dat
[2015-01-26 02:41:07] total physical memory 2147483647 max disk cache 33554432
[2015-01-26 02:41:07] Using IP address 192.168.1.118
[2015-01-26 02:41:07] ICMP port bind failed 0.0.0.0:10095: (10013) Сделана попытка доступа к сокету методом, запрещенным правами доступа.
[2015-01-26 02:41:07] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642
[2015-01-26 02:41:07] BCryptInit: failed to bind to bcrypt.dll - 126
[2015-01-26 02:41:07] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD
[2015-01-26 02:41:07] Aes Crypt algorithm provider has been loaded and initialized
[2015-01-26 02:41:07] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293
[2015-01-26 02:41:07] Loading config file version 1.4.106
[2015-01-26 02:41:07] My PeerID: 10366D65C80114793C0C3C957B752ADF6971FB3D
[2015-01-26 02:41:07] loaded history: 0 events
[2015-01-26 02:41:07] setup socket 1192 for local peer discovery for 192.168.1.118:0: success
[2015-01-26 02:41:07] setup socket 1208 for local peer discovery for 192.168.149.1:0: success
[2015-01-26 02:41:07] setup socket 1216 for local peer discovery for 192.168.29.1:0: success
[2015-01-26 02:41:07] setup socket 1224 for local peer discovery for 127.0.0.1:0: success
[2015-01-26 02:41:18] Error opening Windows firewall: 0x80070005 Отказано в доступе.
[2015-01-26 02:41:19] NAT-PMP: Unable to map port with NAT-PMP.
[2015-01-26 02:46:43] saved history: 0 events
[2015-01-26 02:46:43] SyncFolderScanner: shutting down working thread...
[2015-01-26 02:46:43] Shutdown. Saving config sync.dat
[2015-01-26 02:47:05] total physical memory 2147483647 max disk cache 33554432
[2015-01-26 02:47:05] Using IP address 192.168.1.118
[2015-01-26 02:47:05] ICMP port bind failed 0.0.0.0:10095: (10013) Сделана попытка доступа к сокету методом, запрещенным правами доступа.
[2015-01-26 02:47:05] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642
[2015-01-26 02:47:05] BCryptInit: failed to bind to bcrypt.dll - 126
[2015-01-26 02:47:05] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD
[2015-01-26 02:47:05] Aes Crypt algorithm provider has been loaded and initialized
[2015-01-26 02:47:05] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293
[2015-01-26 02:47:05] Loading config file version 1.4.106
[2015-01-26 02:47:05] My PeerID: 10366D65C80114793C0C3C957B752ADF6971FB3D
[2015-01-26 02:47:05] loaded history: 0 events
[2015-01-26 02:47:05] setup socket 1196 for local peer discovery for 192.168.1.118:0: success
[2015-01-26 02:47:05] setup socket 1216 for local peer discovery for 192.168.149.1:0: success
[2015-01-26 02:47:05] setup socket 1224 for local peer discovery for 192.168.29.1:0: success
[2015-01-26 02:47:05] setup socket 1232 for local peer discovery for 127.0.0.1:0: success
[2015-01-26 02:47:16] Error opening Windows firewall: 0x80070005 Отказано в доступе.
[2015-01-26 02:47:17] NAT-PMP: Unable to map port with NAT-PMP.
 

 

 

 

Also i can send a wireshark trace when btsync starts(to see ssdp traffic)

Link to comment
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.