ribbed.us ...

Browsing: / Home
Shortlink

IP Bind and Re-connect script for HideMyAss VPN

August 27, 2012 in Code, Linux, Open Source

OpenVPN logo

There are many VPN providers out there but while they offer easy to use Windows or Mac clients with various features, command line Linux feels left out. Most providers provide OpenVPN configuration files as well as simple scripts but they lacked the features I wanted and needed.

I needed a solution that did IP Bind to disallow connections when the VPN connection drops and automatic reconnect. These features are relatively standard in Windows clients but most providers only offer shell scripts on Linux. Astrill is the only provider I’ve found that had a custom GUI client on Linux.

I currently use HideMyAss as my VPN provider and like other providers, only a simple shell script was given. I took already made scripts and modified them to my purposes.

The following scripts work on my Ubuntu Server 12.04 system and may need minor modification to work on yours. The OpenVPN settings for each server are included with the archive but since I do not connect to US servers, I have not included US servers. The server randomly connects to a random from my current server list so running ipbind.sh will reset and randomly connect you to another server.

Instructions

  1. Unpack the archive to /root. The scripts are set to be executed from /root/hma.
  2. Edit /root/hma/client.cred and enter HideMyAss username and password.
  3. Run crontab -e to edit the system cron job file to check if OpenVPN is running and if not, to connect to a VPN server. Adding the following line will check for the VPN connection every five minutes.
    0,5,10,15,20,25,30,35,40,45,50,55 * * * * /root/hma/hma-ipbind-start.sh
  4. You are done!

Download hma.rar.

Shortlink

Too Uncivilized

June 13, 2012 in Etc

image

It’s been a while since I’ve posted a new entry on this blog, so here is done food for thought.

Shortlink

The Nature of Creativity

July 14, 2011 in Awesome, Etc, Media

Everything is a Remix Part 3 from Kirby Ferguson on Vimeo.

Very interesting. Just goes to show that you needn’t be pressured to not doing something because it might have been done before. No one is original. No one is an isolated genius. We all stand on the shoulders of giants.

Shortlink

Winner!

March 22, 2011 in Awesome, Free, Gaming, Xbox 360

image

I have never won anything in my life. Ever. However, I still enter online contests that don’t take a significant amount of time such as the contests you enter on Xbox Live by downloading gamer pictures. With with that said … Yes! People actually win in those contests. Do take the ten seconds to download that gamer picture. Someday, in a few years perhaps, before the new Xbox comes out, you might be as lucky as me and win something worth a whopping twenty dollars. Hey … at least it’s tax free.

Shortlink

Happy New Year!

January 13, 2011 in Etc

image

Car fucked up. Foot problems. Yep. 2011 is going to be a great year. At least the world isn’t ending until 2012 and I stopped smoking again. When you total your car on your way to buy cigarettes, you have no choice but to take it as a sign from something.

This post brought to you while sitting on the throne.

Shortlink

Reliant

December 6, 2010 in Etc, Media

image

Reliant … extra reliable.

Shortlink

Anti-Malware Software & It’s False Sense of Security

May 12, 2010 in Rant, Software

For years and years I have not used any antivirus, anti-malware, anti-spyware or any sort of security software on my Windows PC. Not once did I ever get infected with any type of malware. Yet just recently … just hours ago … for the first time in years, I get infected by Antispyware Soft.

Antispyware Soft is a rogue anti-spyware program from the same family as Antivirus Soft and Antivirus Suite. Just like its predecessors, AntispywareSoft reports false system security threats to make you think that your computer is infected with malicious software. Usually, this fake program is promoted through the use of Trojans or other malware, but it can be also installed on your computer without your consent and knowledge through software vulnerabilities.

This infection was a shit-storm of things I already knew before hand … that

  • The best antivirus is the user.
  • Anti-malware in most forms are a waste of money.
  • Internet Explorer should die a horrible death.
  • Your regularly visited site or it’s DNS can get compromised and begin giving you great offers!
  • Listen to Firefox when it tells you that a site is a suspected malware site. Seriously.

So now comes my tale …

Some months ago, after not using anti-malware software for years, I decided to install Norton. It was free as long I stayed with my ISP and who doesn’t like free, amiright? Unfortunately, Norton sucks donkey balls that all the spiffy “technology” with such names as “Insight Protection” or “SONAR Protection” that Norton users are no match against such awesome spyware infection tools like Internet Explorer.

Now fast forward to the present and I visit a regularly frequented site and Firefox pops up a warning that the site may be a malware site. I thought … hey, this must be a mistake … so I choose to ignore it. Firefox fails to load the entire site after my repeated attempts to ignore the warning. Damn you Firefox! You cannot tell me what to do! … I thought. Little did I know that the said site wasn’t my beloved site at all, but a compromised copy of original site served up using compromised DNS entries.

I did not want to hear Firefox’s complaints. I was in control of the computer and if Firefox did not want to load the site, Internet Explorer would without complaint … so to the Start menu I went. Internet Explorer loaded up the site fine and lo’ and behold, I am prompted to clean my computer for viruses and all hosts of other malware. The problem was, it was malware asking me to clean my computer. The malware also conveniently installed itself without my permission and refused to let me run any administrative programs. To make the long story short …

  • Norton failed to detect the attack.
  • Internet Explorer allowed the attack to happen without any input on my end aside from visiting a compromised site.
  • I should not have let Norton make me feel safe to ignore Firefox’s warnings.

Fool me once, shame on you, fool me twice, shame on me. I will not be fooled twice. I will not be led into a false sense of security again.

PS. Kudos to Malwarebytes for removing the infection that a widely popular piece of shit software like Norton couldn’t even detect.

1 2 … 56 Next »

Pages

  • About
  • Photos
  • Twitter
  • Facebook
  • last.fm
  • Xbox Live
  • Raptr
  • Google+

Twitter

  • Fair [6/10] - Star Trek II: The Wrath of Khan (1982) go.trakt.tv/dP5bnC #trakt 1 day ago
  • Good [7/10] - Titanic (1997) go.trakt.tv/fvwwnI #trakt 1 day ago
  • Fair [6/10] - Ghosts of Girlfriends Past (2009) go.trakt.tv/nUbTSs #trakt 1 day ago
  • Meh [5/10] - The Expendables (2010) go.trakt.tv/fSP7sk #trakt 1 day ago
  • Good [7/10] - Fast Five (2011) go.trakt.tv/iBQTsf #trakt 1 day ago
  • Good [7/10] - I Now Pronounce You Chuck & Larry (2007) go.trakt.tv/oaExAk #trakt 1 day ago
  • Good [7/10] - You Don't Mess With the Zohan (2008) go.trakt.tv/g2UUaT #trakt 1 day ago

Copyright © 2013 ribbed.us ....

Powered by WordPress and News.