debian inside!

NightHawk




About


NightHawk (Torified Ubuntu VPN Server) is built with Tor on Ubuntu Server. It is fine tunned for speed problem which is Tor main problem. The speed of using NightHawk is much faster than using Tor alone. NightHawk is working behind a router, such as wireless router, wired router or Android Wifi share from Android device and etc. However, 3G and 4G LTE cannot be connected to sock server for sometimes. Therefore, 3G and 4G LTE are not recommended.

If you want to know more about Tor, you can go to here for more details.





Download


The current version NightHawk should be installed on Ubuntu Server 12.04 LTS (other version will not be supported).



wget http://www.debian-inside.com/files/NightHawk-12.04-r1.tar.gz (Released on October 15, 2012)


SHA1 checksum :

SHA1(NightHawk-12.04-r1.tar.gz)= 5ddbb292148f657638d362e655965f2ff0664acc




Demo Video






Installation and Configuration






Basic Security


Make sure you have no DNS leakage vulnerability (you can confirm it at here), you should set the DNS at your router to one of the following :

Comodo public DNS

NS1: 8.26.56.26
NS2: 8.20.247.20

Google public DNS

NS1: 8.8.8.8
NS2: 8.8.4.4

OpenDNS public DNS

NS1: 208.67.222.222
NS2: 208.67.220.220

DNSAdvantadge public DNS

NS1: 156.154.70.1
NS2: 156.154.71.1

Moreover, your PPTP VPN username and password should be strong enough; otherwise, you can be hacked. In addition, please update NightHawk often too.




Complete Anonymously


When connecting via NightHawk, make sure your Firefox is installed add-ons namely NoScript to disabled all the Flash and JavaScript plugins as those can reveal your identity (such as IP address) without warnings.

Do not connect back with reverse connection as it will reveal your IP address. When need to, make sure use hidden service with tsocks or alike.




User Manual


First of all, you should behind a router. The NightHawk (Torified Ubuntu VPN Server) should be installed on Ubuntu Server 12.04 LTS (x86_64 is prefered). Other versions and distributions will not be supported. It can be installed to VirtualBox or standalone computer.

You should know how to install and setup Ubuntu Server 12.04 LTS.

You also should know how to setup a PPTP VPN connection at client side.

Make sure port 1723 is opened for internal network and you are not advised to open this port for public network unless you need to do so. If you open this port to public, make sure your VPN client passwords are very strong.



INSTALL

This PROCEDURE should be RAN ONCE. If run more than one time, your system will be broken.

wget http://www.debian-inside.com/files/NightHawk-12.04-r1.tar.gz
tar -xvzf NightHawk-12.04-r1.tar.gz
cd NightHawk-12.04-r1

./install-tor-key.x
sudo ./install-torifiedubuntu.x




SETUP

sudo setup-torifiedubuntu.x

Follow the instruction on the screen to setup. If you do not know what you have been asked, just accept the default setting by pressing the Enter key.

To check the IP address of the NightHawk (Torified Ubuntu VPN Server), you should do the following.

ifconfig eth0

There would be something like 192.168.0.100 or similar. If there is no eth0, it should be a problem. Please check the router and your connections.

After that, you may need to reboot the server if you cannot ping the yahoo.com.

ping yahoo.com

UPDATE

After the NightHawk (Torified Ubuntu VPN Server) is setting up, you have to update the box.

sudo update-torifiedubuntu.x

You are advised to update your server every one week in order to keep the server up to date.

ADD VPN USER

To add a new user, you can do the following.

sudo adduser-torifiedubuntu.x

DELETE VPN USER

If you want to delete any username in the box, you should do the following :

sudo deluser-torifiedubuntu.x

CONNECTIVITY

Server side :

To test the server if it works or not. You type the following command under the server.

ping yahoo.com

If you have the ping result. That means the server is working. Press Ctrl+C to quit the ping process.

If there is no ping result, you are required to reboot your server to test again.

To test the Tor is working or not. You type the following command under the server.

elinks cmyip.com

If you see the IP address is different from your real IP (the external IP), that means the server is working fine.

Client side :

To test the server if it works or not. You can connect the server via VPN (PPTP) from your host. To set the PPTP VPN Client, you should set the "Gateway" or "Server address" to be the IP address of your NightHawk (Torified Ubuntu VPN Server) or the hostname "torifiedubuntu". For Windows system, the hostname method may not work properly. Once it is connected, you can go to the following site with your browser.

https://check.torproject.org

If you see a big green onion, your server is working fine.

OTHER STUFF

The hostname of the NightHawk (Torified Ubuntu VPN Server) is the IP address of the NightHawk.

You are required to use "sudo" on each command; otherwises, the command will not work.

To power off the server, you need to enter "sudo poweroff". When you want to reboot the server, you need to enter "sudo reboot".

Since PPTP VPN is not very secure, you need to set a very strong password when it is allowed for connecting outside your internal network.

What is a strong password?

A strong password should be combined with numeric, character (upper and lower cases) and speical characters as well as more than 16 characters length. In addition, the word inside the password should not be a common word or it can be find in the dictionaries or internet. It is better that the password should be nonsense.

TROUBLESHOOTING

If you have re-generated the MAC network interface when importing or at anytime you think fit. You may encounter no network interface on the server. If so, you should follow the below steps to fix.

sudo nano /etc/udev/rules.d/70-persistent-net.rules

Then, delete the first entry of eth0 and rename the second entry of "eth1" to "eth0" at the end of that entry. After that, reboot the server. The network interface should be came back.

Meanwhile, the network interface should be in "Bridge mode" on the VirtualBox. It can be bind to ethernet or wireless network interface.

REFERENCE

VPN setup on Windows 7
VPN setup on Ubuntu
VPN setup on Mac OS
Windows 7 change file extension / file option