Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

Monday, October 21, 2013

OpenVPN bonus

This post will mostly be technical material for the casual linux user and adventurous home user.
Disclaimer: I take no responsibility for anything breaking in your device. Please be careful!

Lets get the details of my server and how to discover them for yourself.

First, log into your synology through SSH as root. If you are using a windows computer, I recommend using PUTTY.  Next lets find out what version of OpenVPN you are using, type in openvpn --version  and you should get an output like below

OpenVPN 2.1.4  armle-unknown-linux [SSL] [LZO2] [EPOLL] built on Mar 9 2013
Originally developed by James Yonan
Next, you can find out what version of linux you are running by typing in: cat /proc/version From that we can find out it's linux 2.6.32.12  gcc version 4.2.1

One security feature that (should) already be in the configuration files is proto udp. OpenVPN can run using either TCP or UDP protocol, however, UDP will generally provide better protection against DoS attacks and port scanning than TCP.

Now, there are some advanced things you can do to your OpenVPN, the first is to increase the symmetric keys. By default OpenVPN uses Blowfish, a 128-bit symmetrical cipher. While Blowfish is relatively secure at 128-bit, we can change it to 256-bit AES cipher, Cipher-Block Chain.  One reason why I like this instead of Blowfish is that 256-bit is good enough for TOP-SECRET for the government.  To implement it you'll need to add the following to both server and client configuration files:

cipher AES-256-CBC

The server file can be found at this pathway:
cd /usr/syno/etc/packages/VPNCenter/openvpn

Also, there is a way to implement Google Two Factor Authorization on Synology.  Likewise, while there are some forums out there discussing how to get this service implemented from Synology to OpenVPN, it has yet to be successfully shown.  However, I might experiment with it and try to get it working on my own server.  If I do, I'll be sure to show you how to do it as well!  :-)


Check out Part 1 of 3
Check out Part 2 of 3
Check out Part 3 of 3
Check out the bonus stuff!

Monday, September 9, 2013

Cyber Monday - Setting up an VPN with Synology on your Android & iPhone Part 3 of 3

Setting up a VPN on your Android or iPhone device is just as easy as setting it up on your computer. To begin, you'll want to download the configuration files from the synology server, or if you've already done that, you can use the same ones you installed on your computer for your phone.

Android:
To set up the android, you'll want to navigate to the Android Play store and either download this version if you have a newer device (4.0 and higher) or this version for older devices (1.5 and up).  It's very possible that if you are installing the older version (and possibly the newer, I'm not sure), that you'll have to install TUN.ko Installer. TUN helps establish the virtual point-to-point IP link. If you have this problem you'll be notified like shown on the picture to the left and it will likely even open another page of details (like the picture below) giving you a link to install it. If it is installed, then you'll just open the program and load the drivers and all will be well again.  This does happen to me every now and then because the drivers aren't loaded.

However, before you run into those problems, you'll need to connect your device to your computer and transfer your ca.crt and your openvpn.ovpn into the necessary folders.  For me, it was under the /mnt/sdcard/Openvpn folder.  From there you can start up the vpn client and you should be good to go now that you know how to trouble shoot any potential problem.

Now that you're connected you can check out the data transfers in the status bar of the phone.  :-)








iPhone:
Currently the official OpenVPN (1.0.1 build 88) software is too buggy for it to be easily compatible with iOS 6.1.3 (10B329). When I attempted, I ran into many errors. The files worked on my desktop OVPN connection, however they failed when trying to work with the iPhone version.  If/when the next release of OpenVPN is out there, I believe they will be fixing many of these issues and I will attempt an easy guide at that point.  However, currently you would need to log into the server, run several commands modifying several files and start and stop some services then play with it on the iPhone as well, all far too dependent upon what version of Synology/openVPN you are running and iOS version.  No elegant solution is possible currently.  Sorry guys!  :-(

Check out Part 1 of 3
Check out Part 2 of 3
Check out Part 3 of 3
Check out the bonus stuff!

Monday, August 26, 2013

Cyber Monday - Setting up an VPN with Synology on your computer Part 2 of 3

To begin setting up the VPN on your windows computer, you'll want to first go to OpenVPN's website and download the latest version: here.  As of this writing it's version 2.3.2 released on June 6, 2013 (2013.06.03). Once installed it'll create a nice icon on the start menu like so:

Now the easy part: Log into your synology server and go to the VPN section as described in Part 1 of this series (find the link below).  From there you should open the downloaded zip configuration files.  Unzip these files and navigate to C:\Program Files\OpenVPN\config.  Place the ca.crt and openvpn.ovpn files inside of the folder. 

Lastly, open openvpn.ovpn with your text editor, I like notepad personally, and on the third line it will say: remote YOUR_SERVER_IP 1194

This is where IP can be typed in; it can be found easily by going to whatsmyip.org or going to your router and see what IP address it has been issued.

To use the VPN, open up the program and you should be prompted for a username and password.


In this prompt you'll type in the synology username and password that has access and hopefully you'll connect right away. If you can't connect try closing your web browser and other things that access the internet and connect again.

Note: For mac users, you can use Tunnelblick to vpn as well.

Check out Part 1 of 3
Check out Part 2 of 3
Check out Part 3 of 3
Check out the bonus stuff!

Monday, August 19, 2013

Cyber Monday - Setting up an VPN with Synology Part 1 of 3

So recently, I was traveling abroad and wanted access to my files at home and wanted to make sure to have (more) secure access to the internet for the future. In doing so, I found out several things:

1.  PPTP is NOT secure due to its MS-CHAP v2,  PPTP's authentication protocol. Currently there are ways to penetrate them easily. (Side note: even its creator, Microsoft, has abandoned it!)
2.  OpenVPN is secure (at least for now), fast, reliable, and diverse (described below).
3.  There are a ton of ways to setup a VPN server and OpenVPN is available for apple products, android, and windows.

The two most interesting ways I found to setup OpenVPN was using Untangle. I really like Untangle for the reason that they can filter all of your internet traffic BEFORE it goes to your system, it can filter viruses out, install a secure firewall, intrusion detection system, spyware filter, phish filter, etc. It is absolutely amazing, free (or pay for premium), and easy on resources. I did install it on a spare laptop to see how exactly it runs and really enjoyed its ease of use and simplicity. However, you do need a dedicated system for it and it will slow your traffic down slightly.

At my home, I don't have the resources (i.e. a spare PC or laptop with 2+ nic cards) to run Untangle, so instead, I used my Synology server (DSM 4.2-3211) and opened a port on my router to the outside world for my VPN setup. So, lets get started!

Setting up the Server:

1. Log into your synology device and open up the Package Center and install the VPN Server


2. Once installed, it will create an icon on the dropdown menu.




















3. Once open, select OpenVPN in the Settings Folder and enable it.  I chose to have a maximum of 3 simultaneous connections as I don't have many users in my home and feel safer limiting the number of instances possible. Likewise, I wanted the speed to be as fast as possible, so I enabled compression on the VPN link.  Next, you should go to the Privileges and choose who has access to the VPN. Under General Settings, you can also allow newly created users to automatically have access if you choose. Once set, export the configuration files and you're good to go.  
 

4. To be extra safe, you'll probably want to enable the AutoBlock under the General Settings as well. This will help prevent those nice people from China & Niagara from permanently gaining access to your server once they find it (Like they tried to do to a friend's synology server).  

5. Now you'll likely want to punch a hole into your router to allow for the server to have access to the outside world. If you're setting up a VPN you'll hopefully know how to do this, however, there are two ways, one would be to place your whole Synology server outside of the firewall using DMZ, sort of defeating the purpose of the work you just did, the other, which I HIGHLY recommend, is just port forwarding. Depending on your setup you'll type in the IP address of your synology server, and the port to forward (port 1194 & UDP only).

Congrats the OpenVPN server is now set up!  Next you'll need to setup the client side of it.  Check out how to setup the client for windows in Part 2, and for an android & apple iphone device in part 3.  Also a short bonus page of advanced things you can do to your synology with OpenVPN like IP forwarding.

Thursday, June 6, 2013

Garage Door Opener - Amazon Gold Box Deals

I consider myself a relatively handy guy, relatively confident of installing most things, be it woodworking, flooring, or technology based things. In mid October of 2012, I installed a garage door opener for our 2 car garage, the Chamberlain WD962KEV Whisper Drive with a battery backup; it was a relatively easy installation and only took a couple of hours by myself (although I did need someone for a couple of minutes while I was holding the opener and juggling a few things). Keep in mind, I had never used a garage door opener, nor installed one previously. I had to do a lot of research into garage door openers looking at what features were available like battery back-up, how noisy it is, what safety features and anti-theft features are available, the warranty (lifetime motor warranty), and the basic stuff like what's included like car remotes and outside remotes, the HP to lift the door.

There were a couple of models I was considering based on different price ranges, and while this model is more of on the top end, it had everything I wanted and I wasn't going to settle for something I didn't like, especially if I had to deal with it every day!

This model was absolutely great, it has a battery back up which you don't realize how nice it is, until you need it. --Recently a transformer blew in our neighborhood and left 300+ people without power, I left the house without a single trouble because it had a battery backup, and it was wonderful... and I felt like a million bucks because I didn't have to worry a single bit or lift a finger--

Our garage is also next to our spare bedroom and I would hate to have our guests wake up rudely because I'm leaving for work, and because this drive is so quiet, I'm not afraid one bit. With the garage door well lubricated, honestly, I hardly hear it, unlike ALL of my neighbors garage door openers.

My wife and I are also worried about someone "hacking" into our garage because the codes don't change on some of the cheaper models, but not the case here. With this opener you have "Security+ 2.0 anti-burglary technology, which assures that a new code is sent every time the remote control is used, and PosiLock theft protection, which keeps the door locked once it's closed. A manual release handle allows you to open the garage door in case of a battery failure"  The manual release we also put a zip tie around so no one with a coat hanger can unlock it from the outside (a proven safety tip).  Also, it auto-closes within a few minutes in case we forget to close it for some reason, but don't worry, it has sensors to make sure no one is directly underneath it. It also comes with an outside remote which is wireless and two car openers.

It was a wonderful purchase and currently, amazon is having a gold box deal so, you can snatch one up for only $190, here and with the money saved, you can go and buy their surge protector for $10 to protect it from everything up to a lighting bolt strike.

DISCLAIMER: I have not been paid to do the review of this product.  It just kicks butt... which is why I love it.

Monday, June 3, 2013

Cyber Monday: Wipe free space, a hidden function

Data security is becoming more and more important, may it be to prevent identity theft or other fraudulent activities. The first step in making you laptop or desk top more secure is to make sure that when you delete something, it actually stays deleted.

FACT: In windows when you delete a file, you only delete its header but all of the data remains intact until something else overwrites it. An analogy to this is having a cover of a book ripped off, but keeping the book on the shelf until you have a new book to replace it. You can still open it up and read inside if you want. It's the same with data, you can easily recover that file and so can thieves. Therefore, the first step is to erase (or wipe) any free space.

Recently, I needed to wipe a USB drive clean and in doing so I found that there is a built-in function in Windows 7.  The great thing is that this tool is available all the way back to Windows XP Pro and it is also available in Windows 8!

So here is how it's done:

1. Open up a command prompt by typing: cmd.exe at the run menu

2. Then in the command prompt type in command as shown:

cipher /w:X  where X is drive letter for wiping the free space of a whole drive (will take more time than below, but more secure)

cipher /w:X:\somefolder  where X is the drive letter and somefolder is a folder. This will wipe a portion of the volume instead of the whole volume (not recommended, will take less time, but less secure)

This command with erase the free space 3 times. In the first round, it will overwrite the free space with all 0's, in the second round it will overwrite it with all 1's, and lastly with random numbers in the third round.

There are, of course, more vigorous ways of wiping data, but this does meet at least basic standards of unclassified data from the military. However, to be truly erased, one should look into what is actually approved by NIST (National Institute for Standards & Technology), Computer Security Center. They have a very small list of what is approved outside of physically destroying the hard drive and/or gaussing them. One such option is called Secure Erase which was made by U.C. San Diego, found here.

I hope this helps secure your data a little more.

You can find the source of the syntax's shown above here:
http://technet.microsoft.com/en-us/library/bb490878.aspx

Monday, May 13, 2013

Cyber Monday - Tell windows to alway prefer wired over wireless.

Windows usually does an alright job about pushing things through the wired connection if you're connected. However, sometimes it mucks up and here's how to tell it to always prefer wired connections.

For windows 7 (possibly older/newer versions this works as well, I haven't tested.) Go to run and type in ncpa.cpl or in my case, I searched for it. 



Once here, you'll want to navigate to the advanced tab on the top and go to Advanced Settings...

A new window will open and you'll want to be on "Adapters and Bindings" tab and move your "Local Area Connection" to the top of the list as shown here.

And that's it. Now you're computer will always prefer the wired connections of the wireless.

Any tips you're looking for specifically?  Let us know!

Cheers!

Monday, May 6, 2013

Cyber Monday - Cell phone plans - a comparison

Previously, my wife and I were on a prepaid plan with AT&T which we used very sparingly to save as much money as possible. However, as my wife began her job and we purchased a home, and adopted another kitty, our cell phones became increasingly important to call other businesses, schedule appointments and in general coordinate our lives. For the past 6 months or so, I was seriously looking at providers to see who has the best deal. I looked at family plans, individual plans, and other prepaid plans for us. I know that our usage would increase if we had unlimited so I primarily focus on that since so many things are unlimited now anyway. However, I did look at how much we would realistically talk as well, and many of these other lower priced plans came with too few minutes. Also, since I recently upgraded to a smart phone, I looked at data plans for myself and installed an app to track how much data I was using over WiFi. Below are my results:


From my calculations we were spending about $979.68/yr ($81.64/month) on our cell phones plus another $143 on our skype plan, totaling $1122 ($93.53/month) a year between the two of them. If we are able to save anything less than that, we would be saving. So after much searching, GoSmart started their business, and we signed up. I am paying for their $35 plan and my wife is paying for their $30 plan + $10 international calling and texting. Our savings: $130.08 per year (after tax). Also a perk of this new plan is that calling quality is much better than Skype because it no longer depends on internet connection and we have unlimited everything. The internet is fast enough for my phone as I don't stream any video (internet radio is crystal clear) and email/IM is perfectly fine on 2G. Everyone is happier and my wallet is a little bit heavier, which is great. Feel free to check out gosmart plan and check to see if it is right for you.

DISCLAIMER: I am not collecting any incentives by gosmart by endorsing them. We are just really happy we decided to switch plans :)

Monday, April 29, 2013

Cyber Monday - How to check your car fuse....

Technology can be finicky at times, and sometimes fuses blow, cars are no exception. So here's a quick lesson on how to change them out.

There are lots of different types of fuses out there and sometimes when you're having car troubles, the fuse is the easiest and sometimes the right option especially when you're having electrical problems. But lets start from the beginning...

Fuses for cars are usually color coded and with each fuse a number is written across the top. These numbers represent the amperage for the fuse. Amperage, for those a little rusty on their physics or electrical engineering, is strength of electrical current. One way to think about it is akin to water flowing out of a hose. Water itself might be voltage, but how much water flows out or the force at which it comes out, is the amperage. Fuses can blow because parts are malfunctioning, a component got wet when it shouldn't have, or sometimes by a random power surge. It's important that the fuses are not blown for the car to operate normally, and when they are, are replaced with the proper fuse which really means proper amperage and size.











There are two main fuse boxes also known as relay boxes, one inside the car, the other, under the hood.  Both of these boxes can usually be found under the dash on the drivers side of the car or next to where the door opens and, from my experience, on the right side of the car under the hood (shown on the images to the left).  When you open the fuse box up, you should see a diagram for the fuses indicated what amperage is needed for that specific position along with what each fuse is tied to. It's like a map for the fuses, it shows you what fuse belongs to what part of the car and what type of fuse is needed. So when your radio randomly doesn't work, find it on the diagram or map, pop it out and check the fuse.   :-)

Usually checking to see if a fuse is blown is pretty obvious, there might be a burn mark along with part of the wire missing if it is a tubular fuse or if they are like a fuse shown above, part of the 'U' might be missing. Typically removing a fuse is a pretty simple act of just pulling it out, although some cars can be tough and actually provide little fuse tweezers.

First make sure that the car is turned off and the accessories are off as well.  Next, be sure to take out the fuse, if it is blown - trash it, and gently insert the new fuse in its place. Be sure that the new fuse is of the same color and rating as the old one. If you get confused, like my mom did once, don't start pulling them out and swapping them around by accident.  Look at the "map" of fuses on the cover and make sure you put the fuses in the correct spot. I usually try to find a spot that is easy to find on the map and on the fuse box and from there make sure it was the right spot. An example might be where a row of fuses goes from 4 in a row to 3 or 2 in a row, then according to that spot, find where it belongs. Once complete, you can turn the battery on and check that the piece of equipment works again. If so, then congrats! You've just changed your fuse! And no need for a mechanic either!  ;-)

Monday, April 22, 2013

Cyber Monday - How to speed up your old (or slow) Android Cell phone

Back in September I upgraded  my cell phone to an Android phone (the Pantech crossover P8000), however, as I soon realized, my phone lacked a lot of horsepower and was essentially slow as dirt.  So recently, I took it upon myself to investigate how to speed this little guy up and boy did it pay off!  This is what I did....

First: move as many apps as you can onto your SD card so you can free up as much space as possible on your actual phone.  While it is possible to do this manually by going to Settings then Applications then Manage Applications.  From here, you can select each application (which I'm sure there are a LOT of them) and tell them to move to your SD card, or you can just use an app called AppMgr III (App 2 SD).  This app will search out all of your apps, then tell you which ones are movable, which are on the SD card already, and offer to clear app cache. At the bottom of the screen it'll let you know how much space you have and what is available on your phone.

Next, because my phone is older and a little slower, I wanted to watch out for apps that aren't working properly. Watchdog Task Manager Lite watches how much CPU is being used in the background and make sure none of your apps are hogging too much of it, if an app is misbehaving, then it'll alert you and ask if you want to kill it or wait. This little guy will also let you know how much CPU and memory in real time each app is using.

After that, for the real speed up, I changed my desktop.  My phone gives me 4 default screens and no options on changing them. To my surprise, I was able to change how many screens I have and the whole feel of the "desktop" by using LauncherPro. LauncherPro allows you to change how many screens you have, I picked 2, it also modified the buttons at the bottom of the screen into a much more usable form along with an overhaul of the apps menu which I really enjoyed. This app alone improved the performance of my cell  phone the greatest.  Once installed, my tiny phone became much more reasonable, it no longer locked up from too many apps running and since then, it hasn't frozen and randomly restarted either. Plus I now don't have to charge my phone every day!

Lastly, I did my last overhaul on the widgets. Widgetsoid let me get rid of all of my old widgets and use only widgets that I would fully use. So at the top of my phone, I have one widget, that I use every button, force update, network settings, auto update, battery % indicator, cellular data on/off, brightness, and airplane mode, of course, yours can be different. I also switched the weather app with one I actually use and much more prefer, weather underground app.

So while the first few steps weren't absolutely vital, they are a good check for the phone and save a little bit of time, which is always helpful. For everyone though, I highly recommend checking out Launcher Pro and widgetsoid, absolutely amazing apps for the cell phone.