How to turn your Raspberry Pi into an OpenVPN Server (Step by Step video tutorial) - Raspberry Pi General

In this tutorial I will demonstrate how to use your Raspberry Pi as an OpenVPN server. OpenVPN is more secure than PPTP based VPN but, can be tricky to configure. I made this tutorial in hopes that it would make the process easier:
Why use a VPN?
VPN adds a security layer which is quite useful when you're browsing the internet from a public location. It encrypts all the data transmitted and received. Additionally, VPN also allows you to remotely access your home network from an external location!
I hope the tutorial is useful.
Regards.

You can also use OpenVPN two watch free TV program in other countries like China.

Nice tutorial! :laugh:

Good tutorial been wanting to look into this for my Pi but havent had the time!

How is the performance on the PI? (MB/s)?

Related

networking, pinging and remote desktop? can u help?

hello all,
gots me a problem . im going to japan november, want to remote desktop back to here when necessary and be able to access a hdd here for dumping pictures. i have a lan here, wifi, it has a connection surfs the net etc.
it has an ip address from my router. is there a program or command that will get me the kind of command functionality of a dos/command prompt? ping, ipconfig, etc?
then if i can get them to talk, what steps do i need to take to remote in. do i need software? i enabled remote here, setup a user (vista BTW).
i cant access here from the laptop with xp either that one can ping. its also wifi currently. im obviously missing something and would appreciate any help, or web site links etc to show me what ive missed.
thanks in advance.
hi, a lot of admin utilities is in program called vxUtil. try to find it, if you are interrested. this is list of few features -
DNS Audit
DNS Lookup
Finger
Get HTML
Info
IP Subnet Calculator
Password Generator
Ping
Ping Sweep
Port Scanner
Quote
Time Service
Trace Route
Wake On LAN - magic packet
Whois
or look at HERE
so this was for PDA, and this is for full connection via SSH VPN encrypted connection. I work for Infineon/Qimonda company, and there is strict security policy in here. So we have not permitted to ping, or created FTP connection with outside and many other services (like sending files through ICQ and etc.). There is one way, use your own SSH tunell ;-) on my home PC I have installed WinSSHD Bitvise server liseninng on port 443 (which cannot be blocked, because all our lotus notes databases is secured with HTPPS) and from work I can connect easily to home. Then is easy to create FTP connection, or terminal, or full GUI terminal (mstsc.exe e.g.) Link to this server (not free) and also to very good client (free) is HERE
I also have few routers connected to stable IP´s adress, which also have VPN features. Then is easy for me to connect to my home lan from everywhere.
thanks so much, i knew someone would point me the right way.
since last post, i have managed to remote desktop from my phone on the LAN just using built in remote desktop. tomorrow i will attempt an internet connection probably not configured something yet!
im checking out those web pages now. thanks again

[Q] Idea: Cisco VPN Client on Chroot Ubuntu, and Android IP routed through it?

Hi,
I had a wild idea... is it possible to run Cisco Anyconnect within a chroot Ubuntu install and then setup the andrioid side of things to route all its IP traffic through to Ubuntu... and then out through the secure tunnel (and vice versa)? Essentially using the chroot Ubuntu as a proxy server for incoming/outgoing vpn traffic.
It seams like this could be quite a light weight solution, or even have vpnc running inside a stripped down lightweight (non-gui) ubuntu.
I'm guessing this might work if NAT is allowed by the vpn server, but I have no idea how to go about doing it... iptable manipulation on both the the ubuntu and android side of things I guess. This all assumes that ubuntu is trully being multitasked and not suspended.... sorry bit of a new comer to android so not entirely sure how it all works yet.
As I say, a wild idea.... no cisco vpn support is a bit of a show stopper for my xoom adoption (note I spent a couple of days trying to get vpnc running but it dies with library issues).
I was under the impression that OpenVPN connected to Cisco Anyconnect devices. If so, someone has that working already:
http://forum.xda-developers.com/showthread.php?t=972550&highlight=vpn
Cisco IPSEC VPNs are still not working, the tun.ko module in the above link either doesn't work with VPNConnections or VPNConnections doesn't work with the Xoom.
Thanks for the reply!
Yep, I installed OpenVPN and the tun.ko on Saturday... then I hit a brick wall working out how to configure openvpn for my coropoate VPN. I use Cisco AnyConnect on both Linux and Windows to connect to their radius server. My iPhone connects just fine as well.... over IPSEC __with__ a group id.
After doing quite a bit of web searching I came to the conclusion that OpenVPN doesn't work well with Cisco VPN?!? Hence the reason I was looking at vpnc and subsequently wondering about the chrooted linux vpn bridge type solution.
rinsewin said:
Thanks for the reply!
Yep, I installed OpenVPN and the tun.ko on Saturday... then I hit a brick wall working out how to configure openvpn for my coropoate VPN. I use Cisco AnyConnect on both Linux and Windows to connect to their radius server. My iPhone connects just fine as well.... over IPSEC __with__ a group id.
After doing quite a bit of web searching I came to the conclusion that OpenVPN doesn't work well with Cisco VPN?!? Hence the reason I was looking at vpnc and subsequently wondering about the chrooted linux vpn bridge type solution.
Click to expand...
Click to collapse
I've gotten OpenVPN to work on my Motorola Droid using VPN connections and a Cisco VPN. You just have to get the configuration settings right but it will work.
Just thought I'd share....
My idea definitely won't work for cisco anyconnect since it is compiled for i386.... kind of stupid of me not to think that one through .
I tried running vpnc in a chroot ubuntu on the xoom and apparently the tun device can't be found. I did an apt-get on openvpn and I see "tun" referenced in various places but for some reason it just isn't setup correcting doing apt-get install in this ubuntu image.
So, unfortunately I think I'll be flashing my poor little xoom back to stock and taking it back :-(. Really wanted to keep this little guy, with all its future potential but with no _easy_ workable cisco vpn solution... and no solid plans (i.e. date!) from google/cisco for supporting IPSEC vpn (with group id) out of the box my dreams of a thin client in meetings are dead. Looks like an iPAD 2 is my best bet, definitely not my first choice but oh well the android is what it is.
Carl C.
rinsewin said:
Just thought I'd share....
My idea definitely won't work for cisco anyconnect since it is compiled for i386.... kind of stupid of me not to think that one through .
I tried running vpnc in a chroot ubuntu on the xoom and apparently the tun device can't be found. I did an apt-get on openvpn and I see "tun" referenced in various places but for some reason it just isn't setup correcting doing apt-get install in this ubuntu image.
So, unfortunately I think I'll be flashing my poor little xoom back to stock and taking it back :-(. Really wanted to keep this little guy, with all its future potential but with no _easy_ workable cisco vpn solution... and no solid plans (i.e. date!) from google/cisco for supporting IPSEC vpn (with group id) out of the box my dreams of a thin client in meetings are dead. Looks like an iPAD 2 is my best bet, definitely not my first choice but oh well the android is what it is.
Carl C.
Click to expand...
Click to collapse
Look up ssh tunneling, you could do like you wanted in the first post really easily I bet. The ssh command can be run to tunnel any port or ports you want through another machine very easily. I don't have the setup on hand, but googling ssh tunnel should be enough to get you going.

work around for 3rd party vpn for remote desktop

Hi Everyone,
I am seeking advice and/or feedback. Lack of 3rd party vpn (Juniper in my case) is really frustrating me. I know about TeamViewer, Remote Desktop, and the LogMeIn solutions available. Part of my problem is that I do not have local admin access to my work computer.
The desktop app for TeamViewer will launch on my work PC, and it will allow for remote connections, but this is pretty clearly commercial usage of the product, and therefore would require buying a terribly expensive license.
Here's what I'm thinking.
* Install Windows 7 on a virtual machine on an HTPC that is on 24/7.
* Install TeamViewer desktop app on the Win7 VM. (connecting to my personal, home network would not be commercial use)
* While connected to my VM, connect to my work VPN server and then launch RDP to my work computer.
Thoughts? Will this be too laggy?
An alternative would be to use Putty/RDP (jailbreak required) to connect to my HTPC via ssh tunnel and then connect to the VPN server.
Until a native VPN client is provided, I think I will need to do this two step process...
Any feedback is appreciated....
-67
You've probably asked in the wrong forum.
sixsevenco said:
* Install Windows 7 on a virtual machine on an HTPC that is on 24/7.
* Install TeamViewer desktop app on the Win7 VM. (connecting to my personal, home network would not be commercial use)
* While connected to my VM, connect to my work VPN server and then launch RDP to my work computer.
Thoughts? Will this be too laggy?
Click to expand...
Click to collapse
I've used this method:
- a 24/7 nettop at home with Windows 7 and a public IP address. Nettop allows incoming RDP connections.
- a VPN client on that nettop that allows connection to my office. I'm using ShrewSoft VPN as it is compatible with our VPN and it works fine through an RDP session.
- an RDP client on my phone or WinRT tab
When I need to connect to my workplace - I RDP into my home nettop, establish a VPN connection on it, then run RDP client on nettop to connect to my work PC. Speed is fine.
Long time ago I was thinking about making an app based on the OpenVPN sources that would not require any drivers. That app would allow you to make a tunnel to the specified port of a specified IP inside your work network - similar to SSH tunneling. But this is just an idea - would never have time to work on it.
sixsevenco said:
Hi Everyone,
I am seeking advice and/or feedback. Lack of 3rd party vpn (Juniper in my case) is really frustrating me. I know about TeamViewer, Remote Desktop, and the LogMeIn solutions available. Part of my problem is that I do not have local admin access to my work computer.
The desktop app for TeamViewer will launch on my work PC, and it will allow for remote connections, but this is pretty clearly commercial usage of the product, and therefore would require buying a terribly expensive license.
Here's what I'm thinking.
* Install Windows 7 on a virtual machine on an HTPC that is on 24/7.
* Install TeamViewer desktop app on the Win7 VM. (connecting to my personal, home network would not be commercial use)
* While connected to my VM, connect to my work VPN server and then launch RDP to my work computer.
Thoughts? Will this be too laggy?
An alternative would be to use Putty/RDP (jailbreak required) to connect to my HTPC via ssh tunnel and then connect to the VPN server.
Until a native VPN client is provided, I think I will need to do this two step process...
Any feedback is appreciated....
-67
Click to expand...
Click to collapse
Ahh! i spent many a day in talks with Juniper right up to a roundtable of management about a 64bit VPN client not being available. In the process of investigating the replacement i found Shrewsoft VPN http://www.shrew.net/download/vpn
It will connect to your juniper and they also provide a guide on how to do so. If you get stuck let me know and i can share some of my config. I use this successfully on both 32 and 64bit wind7/win8. In fact i just finished installing and using it on my new ASUS VivoTab Smart.
Could anyone provide me with a lot of assistance? I've been very interested in using a VPN for my computer and phone for awhile, as well as a proxy, and other means of privacy. I just get lost in a sea of information, I just want reliable, secure. I mean, I want to make sure the government of Japan can't track me down (example obviously).
IDKHow2ShaveWithaRAZR:/ said:
Could anyone provide me with a lot of assistance? I've been very interested in using a VPN for my computer and phone for awhile, as well as a proxy, and other means of privacy. I just get lost in a sea of information, I just want reliable, secure. I mean, I want to make sure the government of Japan can't track me down (example obviously).
Click to expand...
Click to collapse
check out pirate bay, they have a vpn recommended but it's not like your site to site vpn. you could then use something like proxys.org and proxy through that then you'll be annonymised by the vpn and again by the proxy.
mamaich said:
You've probably asked in the wrong forum.
I've used this method:
- a 24/7 nettop at home with Windows 7 and a public IP address. Nettop allows incoming RDP connections.
- a VPN client on that nettop that allows connection to my office. I'm using ShrewSoft VPN as it is compatible with our VPN and it works fine through an RDP session.
- an RDP client on my phone or WinRT tab
When I need to connect to my workplace - I RDP into my home nettop, establish a VPN connection on it, then run RDP client on nettop to connect to my work PC. Speed is fine.
Long time ago I was thinking about making an app based on the OpenVPN sources that would not require any drivers. That app would allow you to make a tunnel to the specified port of a specified IP inside your work network - similar to SSH tunneling. But this is just an idea - would never have time to work on it.
Click to expand...
Click to collapse
Thanks. I've done something similar, and it seems to be working fine. I don't have dedicated hardware, so I've used a vm, but speed is working ok.
Shrew Soft looks interesting... I need to check it out.

Raspberry PI PPTP VPN + No-IP Setup Tutorial

Hey everyone,
I recently created a tutorial upon request on how to configure the Raspberry Pi so that it can be used as a PPTP VPN Server that I thought the community may find useful. Additionally, the Tutorial also discusses how to setup and configure No-IP on the unit so that a URL can be used to access the device from a remote location instead of having to enter the external IP address (which may continuously change if your ISP happens to provide a Dynamic IP address rather than a Static one).
I hope the video tutorial is useful and makes sense. I tried to simplify the process as much as I can:
*The Timeline and additional information can be found in the description of the video*
Regards.

VPN app for home VPN?

I have a VPN server set up at my house on an old XP machine for one reason, so i can connect to it for various media providers that require you to be home to use their full service. This works perfectly with the built in android VPN on my phone but I was hoping there was a VPN app I can install on my firestick, every vpn app i found is one that uses its own servers, I just need one like the basic VPN setup in android that you can use a PPTP server with a username and password?
open Vpn , i used it for pptp server on my firestick gen 2. Might be worth looking into. Best of luck =)
VPN Server Firestick Gen 2
the great potato said:
open Vpn , i used it for pptp server on my firestick gen 2. Might be worth looking into. Best of luck =)
Click to expand...
Click to collapse
Can you elaborate more on this? The gen 2 stick, did you need to root it to make it function as a server? I've been looking everywhere for info to make firestick a vpn server.
Sorry this is mega late, I just installed open vpn to the stick and put in the info.

Categories

Resources