Koozali.org: home of the SME Server

Block Dropbox

Offline Nokia390

  • ***
  • 88
  • +0/-0
Block Dropbox
« on: November 29, 2011, 02:49:04 PM »
Hi
I need to block dropbox. I try with dansguardian but no success.
It´s possible to block with iptables?
Tx

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Block Dropbox
« Reply #1 on: November 29, 2011, 03:13:34 PM »
hi

I think you should search elsewhere (google is the first place) then come back here with more info.. we then will help you to do it

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #2 on: November 29, 2011, 03:47:00 PM »
That´s what i have being doing, but no success

Dropbox use TCP port 443 (HTTPS)
208.43.202.0/24



But i can´t block https sites like https://facebook.com with dansguardian

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Block Dropbox
« Reply #3 on: November 29, 2011, 04:18:14 PM »
since you can't block https traffic, I guess you could block traffic to their ip range..

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #4 on: November 29, 2011, 04:24:33 PM »
I block all ip range (dropbox) but still users can login

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Block Dropbox
« Reply #5 on: November 29, 2011, 06:07:43 PM »
well.. this is what I see on my laptop:

Code: [Select]
tcp       38      0 192.168.25.4:39251      199.47.216.172:443      CLOSE_WAIT  1551/dropbox   
tcp        0      0 10.0.0.100:51423        199.47.217.148:80       ESTABLISHED 1551/dropbox   
tcp        0      0 192.168.25.4:36836      199.47.217.148:80       ESTABLISHED 1551/dropbox

as you can see the target ip is different from the one you posted..

since you're using dansguardian, following the advice you can find here you could block *.dropbox.com

let us know

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #6 on: November 29, 2011, 06:17:05 PM »
ok
Thanks
I´m go to try

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #7 on: November 29, 2011, 06:23:38 PM »
i had
*.dropbox.com
dropbox.com
to blocksitelist but still pass

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Block Dropbox
« Reply #8 on: November 29, 2011, 06:23:57 PM »
ok.. playing a bit here on ubuntu.. blocked dopbox blocking

199.47.217.0/24
208.43.202.0/24
107.20.249.0/24

you should search a bit to refine the ip ranges to block, otherwise you could block other sites too

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #9 on: November 29, 2011, 06:28:48 PM »
Thanks for your patience, I'll try
 Thank you very much

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #10 on: March 28, 2012, 10:35:13 AM »
Only block by:

iptables -t nat -I PREROUTING -p tcp --dport 443 -j DROP

but block ALL https sites

can i specify one? like https:\\facebook.com?

Tx

Offline Brave Dave

  • *
  • 185
  • +0/-0
Re: Block Dropbox
« Reply #11 on: March 28, 2012, 12:40:43 PM »
I haven't tried this with dropbox, but used it with logmein and others

add dropbox to your domains (through the server-manager) - maybe thats dropbox.com - that way your machine will think it's dropbox.com

maybe tail your dnslog to see what dropbox hosts are being resolved
.:DB:.

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #12 on: March 29, 2012, 05:22:44 PM »
Tx I´ll try.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Block Dropbox
« Reply #13 on: March 29, 2012, 06:04:11 PM »
Brave Dave, Nokia390

Quote
add dropbox to your domains (through the server-manager)

Yes tested and confirmed that adding dropbox.com as a Domain in server manager Domains panel will block access, be sure to select Resolve locally
This "feature" should work for any domain.
Restart your workstation to take affect.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Nokia390

  • ***
  • 88
  • +0/-0
Re: Block Dropbox
« Reply #14 on: March 29, 2012, 09:30:37 PM »
simple and efficient, thank you very much.