diff --git a/Guides/How_to_setup_an_Exit_Node_for_normies.md b/Guides/How_to_setup_an_Exit_Node_for_normies.md index a962947..89ca116 100644 --- a/Guides/How_to_setup_an_Exit_Node_for_normies.md +++ b/Guides/How_to_setup_an_Exit_Node_for_normies.md @@ -1,11 +1,11 @@ ## How To Setup A Lokinet Exit Node for "Normies" aka newbies aka non-developers. -_by: yidakee (aka @ super_duderino)_ +_by: yidakee (aka @`super_duderino`)_ -if you appreciate this tutorial and you'd like to buy me a beer, feel free to send some loki love -over to my wallet `L58ck1CcByFHaQu18c4YQg6UkH1vTX1SBKYL6ecRxY87if4iNKcBAH55GS9ahVt6hS6oLP7LC5TA1Lmdb8B8o5MuSyohRJ4` +if you appreciate this tutorial and would like to buy me a beer, feel free to send some loki love +over to `L58ck1CcByFHaQu18c4YQg6UkH1vTX1SBKYL6ecRxY87if4iNKcBAH55GS9ahVt6hS6oLP7LC5TA1Lmdb8B8o5MuSyohRJ4` -A Lokinet Exit Node is a next-generation onion routing service that works like a VPN. +#A Lokinet Exit Node is a next-generation onion routing service that works like a VPN. It is similar to TOR or I2P, though a heck of a lot better. You will be able to surf Lokinet as well as regular 'ol clearnet (the "real" main internet everyone uses) with complete state-of-the-art privacy and anonymity. @@ -107,24 +107,26 @@ sudo apt update sudo apt install lokinet ```` -Congrats! Lokinet is now running in the background, but we're not done just yet. Lokinet is running -and you can find your Lokinet address, but it will not be persistant in case of a Lokinet restart or server reboot. So let's go ahead and create a persistant Lokinet address. +#Congrats! -Lets edit the file `lokinet.ini` and add an entry. +Lokinet is now running in the background, but we're not done just yet. Lokinet is running +and you can already find your Lokinet address, but it will not be persistant in case of a service restart or server reboot. So let's go ahead and create a persistant Lokinet address. + +Let's edit the file `lokinet.ini` and add an entry. ````bash sudo nano /etc/loki/lokinet.ini ```` -Copy the following and add to the [network] section +Copy the following and add to the `[network] section ````bash -keyfile=/var/lib/lokinet/snappkey.private +keyfile=/var/lib/lokinet/exit.private ```` -To save, press `CTRL+x`and confirm with `Y`and press `Enter` +To save, press `CTRL+x`and confirm with `Y` and press `Enter` -Now, we can restart Lokinet, and it will create a persitant Lokinet addressed +Now, we can restart Lokinet, and it will create a persitant Lokinet address ````bash sudo systemctl restart lokinet @@ -135,3 +137,48 @@ You can check your Lokinet address by issuing this commands ````bash dig @127.3.2.1 -t cname +short localhost.loki ```` + +# Final steps - Enable Exit Node functionality + +We're almost there! + +To enable Exit Node functionality, we need to go back and edit a few entries in `lokinet.ini` again. + +````bash +sudo nano /etc/loki/lokinet.ini +```` + +If some settings are commented out, enable them by removing the `#`symbol at the beggining of the line`. +Carefully check and modify to these settings + +````bash +[router] +min-connections=8 +max-connections=16 + +[network] +exit=true +keyfile=/var/lib/lokinet/exit.private +reachable=1 +ifaddr=172.16.0.1/16 +hops=1 +paths=8 +```` + +To save, press `CTRL+x`and confirm with `Y` and press `Enter` + +Finally, we need to create some `iptable` rules + +Let's edit the file `/etc/rc.local` and add some stuff + +````bash +sudo nano /etc/rc.local +```` + +Add This + +````bash +#!/bin/sh +iptables -t nat -A POSTROUTING -s 172.16.0.1/16 -o eth0 -j MASQUERADE +echo 1 > /proc/sys/net/ipv4/ip_forward +````