Browse Source

Updating DarkNet setup

master
DarkFeather 5 years ago
parent
commit
5950f44ae6
  1. 27
      DarkNet/Makefile
  2. 14
      DarkNet/foldingathome.service
  3. 7
      DarkNet/tor-lynx
  4. 18
      DarkNet/update-transmission-blocklist
  5. 12
      DarkNet/vpn.service

27
DarkNet/Makefile

@ -2,28 +2,31 @@ INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/ba
compile:
${INSTALLER} tor torsocks lynx deluge openvpn
if [ ! -d /usr/local/src/tor-browser-en ]; then git -C /usr/local/src/ clone https://aur.archlinux.org/tor-browser-en.git; fi
git -C /usr/local/src/tor-browser-en pull
if [ ! -d /usr/local/src/cryptostorm_client_configuration_files ]; then cd /usr/local/src/; git clone https://github.com/cryptostorm/cryptostorm_client_configuration_files.git; fi
cd /usr/local/src/cryptostorm_client_configuration_files; git pull
install: compile
if [ `grep -c tor-lynx /etc/bash.bashrc` -lt 1 ]; then echo 'alias tor-lynx="torsocks lynx check.torproject.org"' >> /etc/bash.bashrc; fi
@echo
@Optionally, install tor-browser-en from /usr/local/src/.
cp ./vpn.service /usr/lib/systemd/system
cp /usr/local/src/cryptostorm_client_configuration_files/linux/cstorm_linux-balancer_tcp.ovpn /root/cstorm.vpn
ln -s /root/cstorm.vpn /root/vpn.vpn
systemctl start deluged
systemctl enable deluged
if ! egrep '^alias torbrowser' /etc/profile &> /dev/null; then printf 'alias torbrowser="torsocks elinks https://check.torproject.org/"' >> /etc/profile; fi
@echo
@echo You will want to add your authentication token file into /root/vpn.vpn before starting the VPN.
reverse:
cp /usr/local/bin/tor-lynx .
cp /usr/lib/systemd/system/vpn.service .
diff:
diff ./tor-lynx /usr/local/bin/tor-lynx
diff ./vpn.service /usr/lib/systemd/system/vpn.service
test:
bash ./tor-lynx
@echo Nothing to do.
checkperm:
chown root:root /usr/local/bin/tor-lynx
chmod 0755 /usr/local/bin/tor-lynx
chown root:root /usr/lib/systemd/system/vpn.service
chmod 0755 /usr/lib/systemd/system/vpn.service
clean:
@echo Nothing to do.

14
DarkNet/foldingathome.service

@ -1,14 +0,0 @@
[Unit]
Description=Folding@home distributed computing client
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/fah
ExecStart=/usr/bin/FAHClient --config /opt/fah/config.xml --exec-directory=/opt/fah --data-directory=/opt/fah
User=fah
Group=fah
[Install]
WantedBy=multi-user.target

7
DarkNet/tor-lynx

@ -1,7 +0,0 @@
#!/bin/bash
systemctl start tor
systemctl status tor
read
torsocks lynx http://check.torproject.org/
systemctl stop tor
systemctl status tor

18
DarkNet/update-transmission-blocklist

@ -1,18 +0,0 @@
#!/bin/bash
if [ $(pgrep -afc $0) -ne 0 ]; then
echo Already running!
exit 1;
fi
cd /root/.config/transmission/blocklists/
rm -Rf *
wget 'http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz' -O blocklist.gz
gunzip blocklist.gz;
while [ "$?" -ne 0 ]; do
echo Error $?: Couldn\'t get blocklist.
wget 'http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz' -O blocklist.gz
gunzip blocklist.gz;
done
/usr/bin/transmission-cli -b notorrent # Update the blocklist to a .bin format

12
DarkNet/vpn.service

@ -0,0 +1,12 @@
[Unit]
Description=OpenVPN connection to eth0
After=network.target
Before=openntpd.service
[Service]
Type=forking
ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /root/vpn.vpn --daemon openvpn@eth0 --writepid /run/openvpn@eth0.pid
PIDFile=/run/openvpn@eth0.pid
[Install]
WantedBy=multi-user.target