diff --git a/opsec/index.html b/opsec/index.html index 8ce400f..dd0a21e 100644 --- a/opsec/index.html +++ b/opsec/index.html @@ -190,7 +190,7 @@

💻 File Sharing

  1. ✅ How to send small files Anonymously (Onionshare)
  2. -
  3. ❌ One on One large file sharing (Syncthing over Tor)
  4. +
  5. ✅ One on One large file sharing (Syncthing over Tor)
  6. ❌ P2P large file sharing (Torrents over Tor)

diff --git a/opsec/runtheblog/index.html b/opsec/runtheblog/index.html index bc24c89..807a418 100644 --- a/opsec/runtheblog/index.html +++ b/opsec/runtheblog/index.html @@ -89,6 +89,7 @@

Clearnet Setup



+

Now if you are interested in helping me get the word accross, you can run the blog yourself like so:

On a debian server (VPS or not), install the following packages:


 [ Datura ] [ /dev/pts/23 ] [~]
@@ -365,6 +366,7 @@ server {
 			

Setting up Collaboration



+

Now if you want to make sure the blog content keeps growing, you'll need to either write your own blogposts in it or setup collaboration:

Now in order to make sure you can welcome external contributions, you need at least to be able to have a gitea instance like the one i have at https://git.nowhere.moe:

@@ -412,6 +414,7 @@ server {

Setting up a Mirror List



+

And then to make sure the nihilism blog remains resistant to takedowns, you can update the mirrors.txt file:

Now in order to give people a list of all the backup blog mirrors in one go, to make it simple i recommend just listing them manually in a textfile that you update on a monthly basis:


 [ mainpc ] [ /dev/pts/6 ] [~/Nextcloud/blog]
diff --git a/opsec/syncthinganon/1.png b/opsec/syncthinganon/1.png
new file mode 100644
index 0000000..3233291
Binary files /dev/null and b/opsec/syncthinganon/1.png differ
diff --git a/opsec/syncthinganon/10.png b/opsec/syncthinganon/10.png
new file mode 100644
index 0000000..1e0b8b6
Binary files /dev/null and b/opsec/syncthinganon/10.png differ
diff --git a/opsec/syncthinganon/11.png b/opsec/syncthinganon/11.png
new file mode 100644
index 0000000..83e4cf4
Binary files /dev/null and b/opsec/syncthinganon/11.png differ
diff --git a/opsec/syncthinganon/2.png b/opsec/syncthinganon/2.png
new file mode 100644
index 0000000..34ad941
Binary files /dev/null and b/opsec/syncthinganon/2.png differ
diff --git a/opsec/syncthinganon/3.png b/opsec/syncthinganon/3.png
new file mode 100644
index 0000000..1c0b599
Binary files /dev/null and b/opsec/syncthinganon/3.png differ
diff --git a/opsec/syncthinganon/4.png b/opsec/syncthinganon/4.png
new file mode 100644
index 0000000..2f1cedc
Binary files /dev/null and b/opsec/syncthinganon/4.png differ
diff --git a/opsec/syncthinganon/5.png b/opsec/syncthinganon/5.png
new file mode 100644
index 0000000..a8b8921
Binary files /dev/null and b/opsec/syncthinganon/5.png differ
diff --git a/opsec/syncthinganon/6.png b/opsec/syncthinganon/6.png
new file mode 100644
index 0000000..d7dec97
Binary files /dev/null and b/opsec/syncthinganon/6.png differ
diff --git a/opsec/syncthinganon/7.png b/opsec/syncthinganon/7.png
new file mode 100644
index 0000000..f00b2cf
Binary files /dev/null and b/opsec/syncthinganon/7.png differ
diff --git a/opsec/syncthinganon/8.png b/opsec/syncthinganon/8.png
new file mode 100644
index 0000000..676b477
Binary files /dev/null and b/opsec/syncthinganon/8.png differ
diff --git a/opsec/syncthinganon/9.png b/opsec/syncthinganon/9.png
new file mode 100644
index 0000000..c8c670c
Binary files /dev/null and b/opsec/syncthinganon/9.png differ
diff --git a/opsec/syncthinganon/Syncthing_circuit.jpg b/opsec/syncthinganon/Syncthing_circuit.jpg
new file mode 100644
index 0000000..4992658
Binary files /dev/null and b/opsec/syncthinganon/Syncthing_circuit.jpg differ
diff --git a/opsec/syncthinganon/index.html b/opsec/syncthinganon/index.html
new file mode 100644
index 0000000..c967313
--- /dev/null
+++ b/opsec/syncthinganon/index.html
@@ -0,0 +1,257 @@
+
+
+  
+    
+    
+    
+    
+    
+    
+
+    One on One large file sharing (Syncthing over Tor)
+
+    
+    
+	
+    
+    
+
+    
+    
+
+    
+
+    
+    
+  
+
+  
+
+    
+    
+
+	
+	
+	
+
+
+
+ Previous Page

Prism_Breaker

+

One on One large file sharing (Syncthing over Tor)

+

Onionshare is a good choice when you want to share small files over tor. But onionshare cannot handle big files, because when tor circuit fails (which is quite common in Tor) your download simply fails, and it does not support resuming the download at where it previously failed. Syncthing is a better alternative if you want to share large files over tor, it does not need any setup or hosting, and it will automatically retry at break point when network fails.

+ +

Syncthing is FOSS software and has E2EE by default, and can run it without requiring a VPS. This means you can just spin up syncthing client from your whonix workstation directly, and your data will be encrypted and sent through public syncthing nodes. If you have a threat model that needs a way to reliably share files with minimum exposure, this setup suits the need.

+ +

Syncthing has its own relays for supporting transmission of files between peers which are both behind the nat, and it works when both parties are behind tor. This allows us to guarantee the anonymity of both parties.

+ +

OPSEC Recommendations:

+
    +
  1. Hardware : (Personal Computer / Laptop)

  2. +
  3. Host OS: Linux (Or Qubes OS)

  4. +
  5. Hypervisor: libvirtd QEMU/KVM (Or Qubes OS's Xen)

  6. +
  7. Virtual Machine: Whonix

  8. +
+ +

+It is highly recommended to use whonix for this setup, because there are always cases that an app might not honor your proxy setting and somehow tries to connect to the syncthing relay directly without going through Tor. It is always a good idea to put any anonymous use app in a whonix workstation, so your clearnet ip doesn't get revealed. +

+ + +

+
+
+
+
+ + +
+
+
+
+

Initial Setup

+

The first thing to do is to get syncthing to your whonix workstation.

+

For simplicity you can just do

+
sudo apt-get install syncthing -y
+
+

If apt does not contain the up to date package, then you need to get it from the syncthing website

+ + +

Next verify the sha256sum according to https://syncthing.net/security/

+
curl -s https://syncthing.net/release-key.txt | gpg --import
+
+ +

Check the gpg fingerprint, it should be like this

+

+gpg --fingerprint
+/home/user/.gnupg/pubring.kbx
+-----------------------------
+pub   rsa2048/0xD26E6ED000654A3E 2014-12-29 [SC]
+		Key fingerprint = 37C8 4554 E7E0 A261 E4F7  6E1E D26E 6ED0 0065 4A3E
+uid                   [ unknown] Syncthing Release Management 
+sub   rsa2048/0x681C3CFCF614F575 2014-12-29 [E]
+
+
+ +

Then download verify the checksum file, and check the checksum to see if it matches

+

+$ curl -sLO https://github.com/syncthing/syncthing/releases/download/v1.23.6/sha256sum.txt.asc	
+
+$ gpg --verify sha256sum.txt.asc
+gpg: Signature made Mo 03 Jul 2023 10:09:30 UTC
+gpg:                using RSA key D26E6ED000654A3E
+gpg: Good signature from "Syncthing Release Management "
+gpg: WARNING: This key is not certified with a trusted signature!
+gpg:          There is no indication that the signature belongs to the owner.	
+
+$ sha256sum -c sha256sum.txt.asc
+...
+sha256sum: syncthing-linux-386-v1.23.6.tar.gz: No such file or directory
+syncthing-linux-386-v1.23.6.tar.gz: FAILED open or read
+syncthing-linux-amd64-v1.23.6.tar.gz: OK
+sha256sum: syncthing-linux-armv5-v1.23.6.tar.gz: No such file or directory
+syncthing-linux-armv5-v1.23.6.tar.gz: FAILED open or read
+...
+sha256sum: WARNING: 14 lines are improperly formatted
+sha256sum: WARNING: 35 listed files could not be read
+
+
+ +

Next you need to do some changes in the tor browser, so you can access the web panel that is running on localhost (127.0.0.1), type about:config inside the address bar, accept the risk and continue:

+ +

search for no_proxies_on in the search bar, and add 127.0.0.1 to it

+ +

Editing your tor browser is fine if you are just using it to access local syncthing instance, but you should revert the change if you want to access the internet. Changing tor config might bring some unexpected browser fingerprint issue. You should get a separate whonix vm if paranoid.

+ + +
+
+
+
+ +
+
+
+
+

How to setup syncthing



+

Next decompress the syncthing pack and execute it

+

+$ tar xvf syncthing-linux-amd64-v1.28.0.tar.gz
+
+$ cd syncthing-linux-amd64-v1.28.0/
+
+$ ./syncthing
+
+ +

If you have setup your tor browser correctly it should automatically redirect you to http://127.0.0.1:8384/ and you will see the web panel

+

Next thing to do is to find your client id, it is in the actions menu

+ +

+ +

Next exchange this id with people you are sharing file with

+

After that add each other in both clients in the remote device section, if nothing goes wrong you should be able to see each other in the remote device section showed as "connected"

+ +

+ +

+ + + +
+
+
+
+ + + +
+
+
+
+

How to sync files anonymously



+

After the previous setup, you can share the file you want. But be aware tor traffic has low bandwidth, that is the price of online Anonymity! Because if both parties are behind tor, your file goes through a circuit like this:

+ +

I personally tried this setup, to send a 10GB file it took me 4 hours 30 minutes to send it, which is normal due to the Tor network being slow, you'll need to be patient when you are trying to send large files over Tor.

+ +

You and your peer will only see the relay server's ip address, unlike the vpn setup which will expose the vpn ip you are using, which you can check here

+

You peer also won't know you are using tor if you do not tell him

+ + + +

Choose add folder to create a new sharing Folder, and choose to share this folder with your peer

+ +

+ + +

If nothing goes wrong, the receiver should see this

+ +

Agree and add the folder, after that syncthing will automatically transmit the files

+ +
+
+
+
+ + + +
+
+
+
+

PrismBreaker

+

+ Shatter the big brother.



Creative Commons Zero: No Rights Reserved
+ +

+
+ +
+

My Links

+

+ + RSS Feed
SimpleX Chat
+ +

+
+ +
+

About Prism Breaker

+

Donate XMR: 87iB34vdFvNULrAjyfVAZ7jMXc8vbq9tLGMLjo6WC8N9Xo2JFaa8Vkp6dwXBt8rK12Xpz5z1rTa9jSfgyRbNNjswHKTzFVh


Contact: prismbreaker@waifu.club (PGP)

+
+ +
+ +
+
+ + + + + + + + diff --git a/opsec/syncthinganon/remote_node.png b/opsec/syncthinganon/remote_node.png new file mode 100644 index 0000000..201f6fc Binary files /dev/null and b/opsec/syncthinganon/remote_node.png differ