BTSync Local RaspberryPi


Recommended Posts

Hello,

I'm trying to setup BTSync on all my RaspberryPi devices, without any kind of connections to the outside world.

So i installed "UFW" (the firewall) and i blocked everything except local communications, using these commands:

ufw default deny incoming

ufw default deny outgoing

sudo ufw allow from 192.168.0.0/24

sudo ufw allow to 192.168.0.0/24

firewall is working perfectly.

so now my Raspis are all blocked from the internet, and i can browse to BTSync webui 8888 just fine, but when i add the same folder to all of them and my laptop too, they don't discover each other, i enabled DHT just in case.

also i should mention that i don't want to add predefined hosts.

so i think i should open a port or ip for traker server or something!!!

some clarification please :)

Thank You

Link to post
Share on other sites

Hi,

As far as I know, if you mark the "Search LAN" option, it should work on a LAN, using multicast, without any access to the internet. Judging by your firewall rules, multicast should already be allowed. Do you have all devices in the same LAN or is there a router in between? Do you have several network interfaces in your rpi?

Also have a look at this, it may help:

http://forum.bittorrent.com/topic/20144-local-lan-discovery-sends-multicast-out-eth0/

Good luck :)

Link to post
Share on other sites

Hi,

As far as I know, if you mark the "Search LAN" option, it should work on a LAN, using multicast, without any access to the internet. Judging by your firewall rules, multicast should already be allowed. Do you have all devices in the same LAN or is there a router in between? Do you have several network interfaces in your rpi?

Also have a look at this, it may help:

http://forum.bittorr...icast-out-eth0/

Good luck :)

no i have only one router, and all devices are connected to it.

i already tried to allow 239.192.0.0 on all ports just in case but it didn't work, i'll try if i should specify if its udp for it to work.

Thank You

Link to post
Share on other sites

this is all i can c in log, many many lines of this.

[uFW BLOCK] IN= OUT=eth0 SRC=192.168.0.123 DST=239.192.0.0 LEN=117 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=3838 DPT=3838 LEN=97

I've already unblocked this!

Maybe try...


ufw allow from any to 239.192.0.0/14 port 3838 proto udp

Link to post
Share on other sites

this is all i can c in log, many many lines of this.

[uFW BLOCK] IN= OUT=eth0 SRC=192.168.0.123 DST=239.192.0.0 LEN=117 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=3838 DPT=3838 LEN=97

I've already unblocked this!

If you're getting those logs, you've clearly not unblocked it (yet). You almost have it! :)

Link to post
Share on other sites

Maybe try...


ufw allow from any to 239.192.0.0/14 port 3838 proto udp

ok

added

ufw allow from any to 239.192.0.0/14 port 3838 proto udp

ufw allow from 239.192.0.0/14 to any port 3838 proto udp

still the same

[uFW BLOCK] IN= OUT=eth0 SRC=192.168.0.123 DST=239.192.0.0 LEN=117 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=3838 DPT=3838 LEN=97

Link to post
Share on other sites
  • 2 weeks later...

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.