Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Mar 29, 2013 10:19 am 
Offline
Junior Member
User avatar

Joined: Sat Jan 12, 2013 8:04 am
Posts: 36
Website: http://www.paulthomson.me
Location: Global
Hello all,

I hope this is in the right forum area.

I was wondering whether it would be possible to use my linode server (Ubuntu 12.04, NGINX, PHP 5.3) to set up a secure VPN tunnel from my laptop so that I can securely use public, unsecured WI-FI connections without having to worry about security issues?

My situation: I'm a travel writer and often have to use WI-FI in hostels and public areas to log into sites (often unsecured sites, ie. not https://) and access private information.

Currently I'm using a service called Comodo Trust Connect http://www.comodo.com/home/internet-security/wifi-security.php to encrypt all data sent from my computer to a secure server in the UK where it is then passed onto the site in question.

My main concern is that without this service, people can listen in on my communications over WI-FI where I'm using it.

Whilst TrustConnect is a good service, it comes at a price of $9/month and though not a lot, I figure as I'm already paying for my Linode I may as well use my server to act in the same way... if at all possible?

So my question, is this possible to do? And if so, what is the best way to go about doing it?

You'll have to excuse my lack of knowledge on this subject, I've never really had to dive into security related matters or VPN's too much.

Thanks in advance to anyone who is willing to help,

Regards,
Paul :-)

_________________
My Website: http://www.paulthomson.me


Top
   
PostPosted: Fri Mar 29, 2013 10:33 am 
Offline
Senior Newbie

Joined: Sat Jan 12, 2013 8:17 am
Posts: 9
It's completely possible to do, and I'd personally recommend OpenVPN to do it. It doesn't look like the Linode library currently has a guide for setting it up on 12.04, but you can perhaps try using one of the other guides at http://library.linode.com/search?query=openvpn . Just remember to set the encryption type you want to use in the configuration files after you're done setting up the basics outlined in the guide.

Also, if you're using it on Windows -- don't use the link to the openvpn.se page for the GUI installation, because it's outdated and it's going to make Windows complain about an outdated adapter and not work. Instead, use http://openvpn.net/release/openvpn-2.1_rc22-install.exe .


Top
   
PostPosted: Fri Mar 29, 2013 10:38 am 
Offline
Junior Member
User avatar

Joined: Sat Jan 12, 2013 8:04 am
Posts: 36
Website: http://www.paulthomson.me
Location: Global
Thanks for the info Nightmare,

Do you know if it's possible to put a request into Linode to draw up a guide? And if so what the correct channel is to do so?

Thanks,
Paul

_________________
My Website: http://www.paulthomson.me


Top
   
PostPosted: Fri Mar 29, 2013 10:58 am 
Offline
Senior Newbie

Joined: Sat Jan 12, 2013 8:17 am
Posts: 9
Probably the easiest way to get an 'official' response on it would be to open a ticket and ask about it.


Top
   
PostPosted: Fri Mar 29, 2013 11:12 am 
Offline
Senior Member

Joined: Fri Nov 02, 2012 4:20 pm
Posts: 60
The Ubuntu server guide is always a good place to start if you have Ubuntu and the Linode guide doesn't exist.

https://help.ubuntu.com/12.04/serverguide/openvpn.html


Top
   
PostPosted: Sun Mar 31, 2013 12:09 pm 
Offline
Junior Member

Joined: Thu Feb 05, 2009 12:48 pm
Posts: 24
You can also install squid proxy for all your web traffic


Top
   
PostPosted: Mon Apr 01, 2013 10:22 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Squid is very easy to misconfigure, though, making it an open proxy that gets abused.

If you want to try the OpenVPN route, the free version of their commercial product, OpenVPN Access Server, supports two simultaneous connections, and automates most of the configuration for you. It's much easier to set up, and doesn't require any config file editing (it has a web interface):

http://openvpn.net/index.php/access-ser ... rview.html

It will handle all the network routing stuff for you.


Top
   
PostPosted: Mon Apr 01, 2013 11:28 am 
Offline
Junior Member

Joined: Wed Apr 06, 2011 8:20 am
Posts: 29
I have had good experience with https://raymii.org/s/tutorials/IPSEC_L2TP_vpn_with_Ubuntu_12.04.html. Also works well on IOS devices.


Top
   
PostPosted: Sat Apr 06, 2013 7:40 pm 
Offline
Senior Member

Joined: Sat Jun 12, 2010 4:53 pm
Posts: 77
Guspaz wrote:
Squid is very easy to misconfigure, though, making it an open proxy that gets abused.

If you want to try the OpenVPN route, the free version of their commercial product, OpenVPN Access Server, supports two simultaneous connections, and automates most of the configuration for you. It's much easier to set up, and doesn't require any config file editing (it has a web interface):

http://openvpn.net/index.php/access-ser ... rview.html

It will handle all the network routing stuff for you.


Whoa thanks!


Top
   
PostPosted: Sun Apr 07, 2013 12:54 am 
Offline
Senior Member

Joined: Wed Jun 27, 2012 10:00 pm
Posts: 87
Website: http://hemonc.org/wiki/Main_Page
Yes, your Linode can definitely be used for this. I also use it for better security in public areas, as well as being able to access US-only content when abroad.

If you're mostly concerned about web browser traffic or programs for which it's easy to configure to use a SOCKS5 proxy, I found it very easy to set up SSH Dynamic Port Forwarding and setting up a browser shortcut to use that port. I configured a special session for Putty instead of following the instructions on Linode's page:

Configure SOCKS5 (SSH/VPN)
For Putty: hostname of VPS & SSH, (whatever port you use for SSH)
Connection → data → fill in auto-login username
(if you use SSH key instead of just a password login:
Connection → SSH → Auth → fill in private key for authentication)
Connection → SSH → Tunnels → dynamic, fill in source port (choose one), click add
Save settings
In browser, for network connection, choose SOCKS5, localhost, port 2222

_________________
Amateur, eager to learn.
My hematology, oncology, and chemotherapy regimen wiki


Top
   
PostPosted: Sun Apr 07, 2013 1:04 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
yaz wrote:
Yes, your Linode can definitely be used for this. I also use it for better security in public areas, as well as being able to access US-only content when abroad.

If you're mostly concerned about web browser traffic or programs for which it's easy to configure to use a SOCKS5 proxy, I found it very easy to set up SSH Dynamic Port Forwarding and setting up a browser shortcut to use that port. I configured a special session for Putty instead of following the instructions on Linode's page:

Configure SOCKS5 (SSH/VPN)
For Putty: hostname of VPS & SSH, (whatever port you use for SSH)
Connection → data → fill in auto-login username
(if you use SSH key instead of just a password login:
Connection → SSH → Auth → fill in private key for authentication)
Connection → SSH → Tunnels → dynamic, fill in source port (choose one), click add
Save settings
In browser, for network connection, choose SOCKS5, localhost, port 2222


Also, for Firefox you might want to set DNS lookups to use the SOCKS tunnel, in about:config, set this to true:

network.proxy.socks_remote_dns

I'm not sure you can configure Chrome that way or what behavior it has for DNS lookups.


Top
   
PostPosted: Sun Apr 28, 2013 12:43 am 
Offline
Newbie

Joined: Sun Apr 28, 2013 12:32 am
Posts: 4
Website: http://vimmaniac.com
Guspaz wrote:
Squid is very easy to misconfigure, though, making it an open proxy that gets abused.

If you want to try the OpenVPN route, the free version of their commercial product, OpenVPN Access Server, supports two simultaneous connections, and automates most of the configuration for you. It's much easier to set up, and doesn't require any config file editing (it has a web interface):

http://openvpn.net/index.php/access-ser ... rview.html

It will handle all the network routing stuff for you.


Access server is definitely the way to go for a personal openvpn installation, esp. if your time is limited. Be sure to enable lzo compression in openvpn, it helps a lot in slower connections.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group