Encrypted Fileserver with Bittorrent Web Interface
mistermark writes "I built a fully encrypted (samba) fileserver with a web interface for managing torrent downloads on it. All I used is OpenBSD 3.6 and its package collection, except for the TorrentFlux-interface (which you need to install separately). Anyway, it can be built using binary packages only. I included a rough HOWTO on how to make one of these yourself."
Now you can seed your secret corporate documents!
Pertend I'm stupid, why would I want this?
from the "about" page: Professional co-location was/is out of the question simply because of the costs and I did/do have bigger plans than to be able to host this kind of thing at home. To be honest, if this thing grows any bigger I'll be moving the whole shebang to a datacenter after all... Prices have dropped quite a bit since about two years ago and now. But, until then, all this comes from my server at a friends house where he has an amazing 10mbit up&down.
Well, I guess he USED to be your friend, until you slashdotted his internet connection....
This is a fantastic piece on our [my] favorite OS. How-to's can be taken both ways, piracy or not - this is a fanstastic tutorial.
how about protecting legitimate file sharing uses, whether or not the RIAA agrees with them? dont be so quick to criticize, my RIAA stooge friend.
It now looks like a toaster.
My wife's sketchblog Blob[p]: Gastrono-me
Pirate away :). FreeBSD 5.3 FreeBSD 4.11
he would've used usb thumb drive to boot that thing and store the encryption key there.
Another pitfall is that samba.. not secure.. again, if he'd install vpn server there that would create secured medium for accessing it, would be another story.
The saddest part probably is that he raped SGI 320 and put AMD in it! just to have cool case for his desktop, seesh, he'd have much more geek respect, by keeping that SGI intact.
There are no atheists when recovering from tape backup.
[THe other AC]
"how about protecting legitimate file sharing uses"
You don't need to hide legitimate material.
[The OP]
" Has this site just completely given itself over to the warez kiddiez?"
Someone look up "transitional ethics" for this guy.
The truth and something we hear over and over and over and over and over again are two different things. :)
I'm guessing the encryption password needs to be re-entered on reboot (before mounting the FS, it seems). So if the feds bust in and kick you off your warez box, as long as they dont switch it off, they've got your 0-day filez in the plain. Just dd it all across the network.
:)
And oh yeah, with SMB as your network file system, is the traffic securely encrypted? Weakest link, and all that...
Baz
PS yes, I know you're only doing legal stuff
ummm, are you a moron? Just because it says "torrent" does NOT mean piracy. There are many legitimate uses for bittorrent and many legitimate reason to want to encrypt files....put them together and what do you get? RTFA next time you fucking mpaa monkey.
TFA suggests you use his cryptfs script thus:
.bash_history file afterwards. Its the first place we look.
cryptfs -m Encryption key: secretstring
dont forget to zap your
Baz
Much is illegal and depending on your ethical belifs much more may be immoral. But do not assume one is a superset/subset of the other. Most you can propably say about it is that they intersect.
- These characters were randomly selected.
Can anyone identify the size of the fan being used on that server? I'm used to seeing 60mm and 80mm fans but not one that big. (Although when I had an AMD K-5 computer back in 1997, I would open up the case during the summer and use a 20" floor fan to keep it cool.) I think have the front end open like defeats the purpose of cooling down that many hard drives.
"Pertend I'm stupid, why would I want this?"
Because standing at the street corner, handing out copies is too dangerous.
Well, filesharing without the consent of the copyright holders is immoral too. What's your point?
"Simple: You have random users which make backups to your machine but don't want anybody else to be able to read these backups."
So it's safe to say that slashdotters encrypt all their Gmail then?
No it's not, what is your point? When I buy a (C|DV)D, I have the moral right to back it up.
I built a fully encrypted system once. Even the source was encrypted. Sadly, I lost the key and it was all for naught...
Unknown host pong.
hmm , but why would you need to encrypt your torrent downloads of say linux iso images ? oh yeah you probably wouldn't .....
morality is dead...long live relativism!
So, what exactly does this accomplish? When you use Bittorrent, the protocol both downloads and uploads data at the same time (look up the tit-for-tat policy followed by BT to ensure fairness). If you were in the US, all the RIAA needs to do to sue you is download a single chunk of data from you. They don't need to break your door down and cart the computer away. So, the encryption is moot anyway.
Shit, you better call up Blizzard quick. They've been using this warez technology to distribute their game patches. Who knew all torrents were illegal!
Douche bag.
encrypted mp3s sound so much better than regular ones.
Yeah. Back it for yourself. Not for the "friends-I-only-know-by-their-nickname-if-at-all" in the internet.
Site is not responding. Anyone have a mirror? Anyone who happened to read it able to comment on how this compares to Freenet ?
I want a new world. I think this one is broken.
If the cops bust you, and you have an encrypted hard drive and you don't hand over the password, you will be charged with obstruction of justice. The maximum sentence of obstruction of justice is the same as the crime you are trying to avoid. So it really doesn't help you avoid anything.
i d=138
http://www.ohiobar.org/pub/lycu/index.asp?article
Please repeat after me: The media is not the content en should be judge accordingly.
Don't worry I'll probably will repeat it till we all get it (end of time I guess).
I've already been doing this for quite some time now with Azureus, and the Swing Web Interface plugin alongside RSS Feed Scanner plugin (to download TV shows automatically). There's even an IRC bot plugin to allow control over an IRC network/channel.
Why is my way better? Well, the default BitTorrent client is somewhat lacking feature wise. Azureus is more powerful and gives you more control over what to do with the torrents when they are done downloading. Not to mention the support for trackerless torrents in the latest version. As for encryption goes... uh, why? The only people who have access to my "files" are those that are on the network. And the Swing Web Interface plugin has password functionality with HTTP SSL (you need GPG to be installed).
Yeah, you yourself might not be trading media but most of the people on that system are. Therefore the system is going to go down even if it has legitimate uses.
I don't see why this is such an unthinkable scenario to you.
OS/2
Be very, very careful when using the Windows XP built-in file encryption, called EFS (Encryping File System).
EFS is very poorly documented. The encryption is tied to your user password in a way that is apparently not documented. EFS depends on being part of a Windows 2003 Server domain in a way that is not clearly documented; if you are using Windows XP on a stand alone computer, there are situations in which you will lose your files forever.
Microsoft technical support agrees with what I just said, and provides no help or fixes.
The official Microsoft forums contain the complaints of many people who have lost their files due to problems with EFS. One man said he lost 11 years of research.
People complain about Microsoft every day on Slashdot, but I've never seen a discussion by anyone who seemed to realize how bad Microsoft truly is.
At first I thought, "wtf good is that?!". I figured it was for the ultra paranoid. Then I realized. He lives in a country where the law has to actually have physical proof of you breaking the law. Here in the US I don't think they feds need to kick in the door and find your mp3s being fed to the world to actually charge you. They just strongarm your ISP for your info.
The theory in his country being if they can't find anything on your drive, then they can't prove shit.
Must be nice...
Karma means nothing to me, so suck it...
From the site:
"Use? Actually, I'm not sure"
As others have pointed out- wiretaps, "give us the key or you go to jail just as long", as well as simply not unplugging the box...all make this project pretty pointless.
I also got a kick out of the author bragging, under a screenshot showing links to numerous illegal torrent sites, "that's a legal torrent I'm downloading!" Do these people think they're clever or something?
Please help metamoderate.
That means that you don't get it, the media is the way of transportation of the content. Sharing media is not the bad thing recieving and/or sharing _illegal_ _content_ is.
I can see that this is indeed a difficult topic for you, defining the meaning of words in a sentence.
from MSDN: Taking Recovery Precautions
Recovering Encrypted Files
Any data recovery agent can recover an encrypted file when a user's private key fails to decrypt the file.
To recover an encrypted file
1. Log on to a computer that has access to the user's profile; for example, a computer that has a designated recovery console or a recovery key on removable media such as a floppy disk. You might log on at the user's computer or the user might have a roaming profile.
2. Locate the encrypted file. For example, the user might have made a backup of the file by using Backup or sent the file to a WebDAV Web folder.
3. Decrypt the file by using either the cipher command or My Computer. This will make the file available to the user.
For more information about decrypting files, see "Working with Encryption and Decryption" earlier in this chapter.
As for corrupted encripted files, well, I think it is almost impossible for an encripted file to be restored if it is corrupted, unless it has some kind of recovery record overhead...
Of course, I would better opt out for an standard open cyphering method.
Ubuntu is an African word meaning 'I can't configure Debian'
I setup the a similar system but without encryption, just running a vnc server and azureus in it. The setup really is a snap: copying torrent files onto a samba share with the help from a simple batch file and Azureus checks every 1 min to start downloading them. Then setup a vncviewer shortcut that includes the password and you have all the comforts of running a local bt client with all the benefits of a central server!
~Squisher
You use the phrase "don't hand over" but this is an oversimplification of a complicated legal issue.
Let's take two examples.
Example One
You say: "Fuck you dirty rat coppers, I have the key and I spit at your entire justice system which I haven nothing but contempt for. I have the key and I refuse to give it to you. Go to hell."
Well, in that case I think you might be right.
But let's try another instance of "don't hand over" that has different implications.
Example Two
You say: "Key? What key? You mean the key to the house? Oh, the computer. It doesn't need a key. Oh, you mean an encrypted file key? How's that work now? I'm not sure about all that really. Maybe you should ask my lawyer.
I think the second one is hardly going to be grounds for obstruction because by the time you and your lawyer talk it out for a few hours you'll come up with a good one.
Ronald Reagan pulled that crap under oath in front of the Senate for Iran Contra and he was snickering he thought it was so funny that fucking asshole. And they didn't find that old bastard in contempt.
"I don't recall."
"Sure, it's pointless, but it gives great experience for the real (read: business) world, using open (for the most part) software."
And lockpicking, and hot-wiring your car will be great training for that locksmith/electronic tech. career I've been eyeballing.
It looks like the article is down. As usual, MirrorDot has the mirror available.
~Jay
You think it is imoral, i may disagree.
You should not equal morality and law.
You should not force your morality upon others.
Freedom or George Bush
Step 1: Install Windows XP
Step 2: Install Azureus
Step 3: Enable Azureus Web Interface
Step 4: ???
Step 5: Profit!
Why?? Beacuse the gov't says so?? I say copyright is immoral!
All the court needs to do is issue a subpoena for the password. Refuse, and you're now in contempt.
Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
mirror
'Go for the eyes, Boo, go for the eyes, aaarrrrrrrr!' -- Minsc
The most educating part of the article is here: function.mysql-connect :P
Now watch the server get a real slashdotting from all the refreshes.
I didnt even read the artical and just the idea of samba plus torrent plus encryption is sound. I can see many legit uses for this.
Let say you have a blob of files in a network. They are secure in your network. But now you want to get those files onto a computer across the country. Typical procedure is to zip them up encrypt and send the big new file somewhere. Then someone on the other end does the reverse. Now you could have something more automagical. Then if there are many of the same 'file server' out there it could get more interesrting. Especialy for remote offices. They could work together.
COURSE there are other techs out there that acomplish the same sort of thing. Which kind of leads me to think 'why do this'. If it is because he can. Then hey thats what hacking is about. If it is so he can encrypt/hide his warez this is not the right way to go about it. As it would have some holes...
In other news, MySQL is out of memory, and if you click the little help link it provides, it takes you to the best 404 page i've seen. (Click here for direct link)
x86, oh yes, I'm pro.
FreeBSD?
[Of course it's client-server; it runs on a LAN]
A-hahahaaaaaaa!
:-) :-D lololololl rofl!
Hahaahaaaaaaaaaaaaaaa
Hahahahahaaaaahahhhhaaaaaaa
ahaaaaaaaaahahaaaaaaaa haaaahaaaaaaaahaa!!!
*grin*
Thanks!
They still have to show possession, you know. You might get stuck behind bars while they try to sort something out against you, but only temporarily. You can't actually be *charged* for possessing an illegal copy of something unless it can be shown that you possess it or possessed it at some point.
:-)
:-)
If you start to download an item and delete each byte as it comes in, you've never possessed the item itself --- you can't be done for possession of individual bytes one at a time, everyone's got the same bytes.
Likewise, if you start to download an item and for each incoming byte you store a random one instead, then you've never possessed the item --- you can't be done for possession of a file of a particular length.
So, having a known IP address and getting logged as a downloader can't really be used to prove possession. At most it can indicate the possibility of possession.
Uploading of copyright material is a different matter however. Until bittorrent starts relaying fragments via other nodes, local encryption isn't going to help you much when the entrapper presents documented proof that you actually gave him a copy of an item, since that clearly indicates possession.
Bittorrent files really need to be encrypted and then scattered pseudo-randomly across a multiply-redundant set of nodes, and then the reassembly info passed into the network and deleted from the original host. Then you won't even need any local encryption yourself.
I've read the many scattered, poorly written documents about EFS. I find them very misleading. For example, the information above does not say that it applies only if the encrypting computer is part of a Windows domain.
Interesting that the author mentions antsp2p. But the fact is that OpenBSD does not support JRE 1.5, and thus the author won't be able to run antsp2p.
I'm guessing that his backups were encrypted and he didn't realize that the encryption was tied to his user password, and to an undocumented hidden number associated with his user profile. Creating another account with the same login name and password does NOT allow decryption.
Who would guess that the encryption was insecure? When you read Microsoft's documentation, there is a lot of talk of file recovery, but the documentation doesn't say that it applies only to computers that are members of a Windows domain.
Cool! First we /. the website, then we /. the 404 page. Where can we go from here?
The cure for cancer is coming: Reovirus
You said, "This is another example of mod-by-agreement. Anyway, EFS is documented perfectly well."
Correction: This is another example of someone on Slashdot acting sure when he knows nothing about the issue, and didn't even read the document at his first link in his Google Search: Microsoft Windows XP - Data Recovery and Data Recovery Agents, which says:
"The default design for the EFS recovery policy is different in Windows XP Professional than it was in Windows 2000 Professional. Stand-alone computers [using Windows XP] do not have a default DRA, but Microsoft strongly recommends that all environments have at least one designated DRA.
"In a Windows 2000 environment, if an administrator attempts to configure an EFS recovery policy with no recovery agent certificates, EFS is automatically disabled. In a Windows XP Professional environment, the same action enables users to encrypt files without a DRA. In a mixed environment an empty EFS recovery policy turns off EFS on Windows 2000 computers, but only eliminates the requirement for a DRA on Windows XP Professional computers."
This information means that you can lose your files in Windows XP in a way that you could not lose them in Windows 2000. Microsoft made this change, but provided no on-screen warning.
The Microsoft document quoted above says, "Stand-alone computers do not have a default DRA,..."
It should say, Stand-alone computers CANNOT have a DRA that allows decryption of files from a different computer with the same user name and password.
As I mentioned, this was verified by Microsoft Tecnhical Support representatives, as was the information in my parent post.
You said above, "I believe the process can be started with a simple cipher
So Microsoft gets boycotted no matter what stand they take on this issue.
I'm normally suspicious and untrusting of Microsoft, but COME ON... there's plenty of reasons to hate Microsoft, and sexual preference is NOT one of them.
I'm very interested to know if other people have experience with other encrypting file systems.
TrueCrypt seems excellent, however, the recent bug fixes look somewhat serious. Is TrueCrypt mature?
how is it immoral? Are you equating "file sharing without the consent of the copyright holder" with theft? If that is the argument (not that I am likely to get a response from the original AC), then I would like to ask who is being robbed? If the person downloading the material would never have purchased it, then no one is being deprived of revenue.
It's like that in Sweden for example. If they can't find any evidence on your harddrives, they can't do jack shit. (a company was recently freed in court because the cops couldn't find the files which were specified in the warrant).
120mm - I have one in an aluminum Lian Li case. Nice and quiet with good airflow, if you don't mind having a gigantic PC case.
bibity bopity boo
Well there is Jesux. A christian Linux distro.
“Common sense is not so common.” — Voltaire
That is not the dinosaur which you meant.
Or as said in the Princess Bride, "that word, I do not think it means what you tjink it means..."
umm... I believe you mean "steganography", though if you don't know shorthand, the scribbles of a stenographer are rather cryptic.
EFS encrypts with two passwords, one is a hidden password generated by Windows XP. Backing up one password does not actually prevent data loss, because there is a hidden password that is not backed up. That's my best understanding, after discussing this with Microsoft Technical Support.
I was told by a Microsoft Technical Support representative that the procedure you are recommending does not work. I've tried it, and they are right, it doesn't work.
The title is, "Designating a Data Recovery Agent in a Stand-Alone Environment". That is VERY misleading. The Data Recovery Agent works only if you happen to know the other password, generated by Windows XP. If you put the same login name and password on another computer, you cannot recover your files, because the hidden password will be different.
The DRA works only if you are using the original installation of Windows. If you have a system crash, you lose EVERYTHING. Your backup is NOT a backup! That's cruel.
Someone with your knowledge and ability can no doubt figure some way to back up the other password. However, most people are misled, and many are losing data, judging from complaints on the Microsoft forums.
You simply disagree with Microsoft Technical Support, that's clear.
Fascinating idea but wouldn't do any good.
Basic crypto says you should expect your opponent to know what algorithm you're using. Even if you do your encryption and decryption in hardware, sooner or later the Polish resistance will capture one of your machines and hand it over to British intelligence.
So if you have software that hands out bogus plaintext in response to a bogus key, whoever's investigating you will know to ask for BOTH keys.
That argument is not one that you personally approve of. Thanks for sharing your personal opinion. It's good to have everyone share, wouldn't you agree?
Um, not really:8 1/jesux.html
http://www.geocities.com/ResearchTriangle/Node/40
MSTS either "dumbed down" their explanation for you, or you simply failed to understand it: the "second hidden password" isn't a password at all, but rather a security certificate, and it's far from impossible to create a backup: see http://www.worldstart.com/tips/tips.php/1444 for instructions even an idiot could follow.
SIERRA TANGO FOXTROT UNIFORM
nt
Does anyone know if this torrentflux thingy works on net BSD?
Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
torrent is the downfall of the movie/game industry! fuck all the highschool/university bastards who use it! FUCK BT 1KIDDIE676S 1fuck bt4 kidd ies FUCK BT 1KIDDIES fuck2 bt kiddies FUCK BT KID234DIES fuck bt kid8dies FUCK3 BT KIDD9IES fuck bt kiddies1 FUCK BT KIDDI8787ES4 fuck bt kiddies 1FUCK BT KIDDIES2 fuck5 bt k3ddies FUCK BT 3KIDDIES fuck bt kiddies6 FUCK BT KIDDIES fuck bt kiddies7FUCK BT KIDDIES fuck bt kiddies FUC6K BT KIDDIES6 fuck bt kiddies FUCK BT KIDDIES fuck bt kiddies FUCK BT KIDDIES fuck bt kiddies FUCK BT KIDDIES fuck bt kiddies FUCK BT KIDDIES fuck bt kiddies FUCK BT KIDD8IES fuck bt kiddies FUCK BT KIDDIES fuck bt kiddies FUCK BT KIDDIES fuck bt kiddi3es FUCK BT KIDDIES fuck bt kiddies FUCK BT K1DDIES fuck bt kiddies FUCK BT KIDD676IES3 fuck bt1ki234ddies FUCK BT 2KIDDIES fu324ck bt kiddies 1FUCK BT KIDDIES fuck bt kiddies FUCK BT4KIDDIES fuck bt ki3242ddies F34UCK BT KIDDIES fuck bt kiddies FUCK BT7 KID324DIES fuck bt 6kiddiesFUCK BT KIDD766ES fuck bt kiddies rFUCK BT KIDDIES fuck 34325btkiddies67FUCK BT K1DDIES4 fuck bt kiddies FUCK BT KIDD1ES 5fuck bt kiddies FUCK BT KIDDIES fuck bt kiddies4
That's not what is happening. EFS seems very well documented. It takes considerable analysis to determine that what the documentation seems to say is not correct, and, for those who "upgraded" from Windows 2000, that a backup is no longer a backup.
All the court needs to do is issue a subpoena for the password. Refuse, and you're now in contempt.
Three strategies:
cpghost at Cordula's Web.
True. However, you didn't bother to read this entire thread. Most of the cases of loss of data with EFS occur on stand alone computers that have never been part of a domain. Also, there are postings by people who have lost their data because of some problem with the domain controller computer.
As, I said, and you ignored, the problems with stand alone computers have been verified by Microsoft Technical support.
The documentation is very misleading. Backing up the certificate, in the minds of many (former) EFS users, backs up everything needed to decrypt the files. That's what the documentation seems to say. However, the behavior has changed since Windows 2000.
This is what most EFS users think, and it is wrong. Backing up the certificate is not enough to recover your data!! Don't believe me? Try it! I did. Try restoring your data to a different computer with the same login name and passowrd, after restoring the certificate backup. You will get an access error.
The problem is that people are faithfully backing up their certificates, and discovering later that there is, effectively, another password, an SID, I think, but it is not documented, required to recover their encrypted data.
The Problem, and a lot of people do NOT realize it, is: Proprietary Software NEVER does Just Work(TM). It may pass that impression at first, but in the long run, tsc tsc...
It's better to be the foot on the boot than the face on the pavement. ~~ tkx Kadin2048
Thank you for your detailed reply.
However, as I said, Microsoft Technical Support verified that there are problems with stand alone computers, that have never been part of a domain.
Could you try restoring to a different computer, that has never been part of a domain? The documentation implies again and again that your procedure would work, but it doesn't.
You say above, "Anyone can export their EFS key for backup purposes using the certificates snap-in. This will work regardless of installation."
I've tried restoring to a stand-alone computer many times, without success. MS Technical Support says it can't be done. I'm very interested to know if you can make it work, and how. In Windows XP, the data is also tied to another, randomly generated number that is hidden from the user.
To test this, it is necessary to restore to a different installation of Windows XP, one that is not a clone of the computer on which the backup was made. This simulates actual use, where there was a system crash.
Yes, what I said is misleading. So, here's a correction: There are 3 [three] passwords: 1) The certificate, 2) The user name password, and 3) A hidden password, apparently some kind of an SID. I don't know for sure, because it is not documented, apparently.
- Encrypt a file on computer A, user A like normal.
- Export user A's private key.
- Use ntbackup or a different local installation to access the still-encrypted file on computer/installation B.
- Import user A's private key into B's key store on computer B.
- Note that the encryption properties of the file list user B as having transparent access.
- Open the file.
ORCongressman DeLay, is that you?
+++ATH0
Interesting. I tried that many times and was not able to make it work. I was told by Microsoft Technnical Support that it would not work.
Is it possible that the two computers you used for test were clones of each other? Then they would have the same SIDs.
I will test this again tomorrow.
It is pretty obviously a joke, people were really thinking that Christians would be that extreme? I guess some coastal liberals live in caves. :)
Anyways, someone should have modded the parent up.
“Common sense is not so common.” — Voltaire