SoftEther VPN install script for Raspberry Pi

  • 6
  • Idea
  • Updated 1 year ago
I've been asked by people online and offline for help with setting up a VPN using Raspberry Pi. Some have asked for an image. While I'm happy to help, I ended up making a script to automate the install. All it does is download, compile install and configure SoftEther for L2TP use. It also provides instructions for setting up routers and clients. 

You should install the updates for your pi in addition to this when you first set it up.

For now it is a basic, no-frills shell script. I'll add stuff later on, such as generating a profile for easy config of your iPhone/iPad. 

If you want it, drop me a line. My email is good in QRZ. 
Photo of Ria - N2RJ

Ria - N2RJ, Elmer

  • 2311 Posts
  • 950 Reply Likes

Posted 3 years ago

  • 6
Photo of Ria - N2RJ

Ria - N2RJ, Elmer

  • 2311 Posts
  • 950 Reply Likes
Instead of emailing me (I've been getting a lot of requests for this), download from here. 

https://drive.google.com/file/d/0B0HrAJwAk8BjUU5icnlIS1hxbzg/view?usp=sharing

Post your feedback in this thread so I can improve it.

Right now it is really designed for fresh installs of Raspbian.

Just upload it to your Pi and execute "n2rj_vpnsetup.sh" at a shell prompt. It's self extracting, downloads the latest version of softether and does the config. 
(Edited)
Photo of Ria - N2RJ

Ria - N2RJ, Elmer

  • 2311 Posts
  • 950 Reply Likes
This is usually a generic error that indicates negotiation failed for some reason.

Make sure the time on the pi is correct (pi should automatically sync via ntp since it has no rtc). Make sure time is correct on the Windows machine. Use Meinberg to get it synchronized.

I'm going to update the script to use the latest version of softether as there has been some updates. 

Ria
(Edited)
Photo of Ria - N2RJ

Ria - N2RJ, Elmer

  • 2311 Posts
  • 950 Reply Likes
Latest version here:
https://drive.google.com/open?id=0B0HrAJwAk8BjdG8zOEJ4TG5jYjA

Only thing that has changed is it uses the latest version of softether, which is from November 27, 2016.

Ria
Photo of K1IMD

K1IMD

  • 4 Posts
  • 0 Reply Likes
Good Afternoon Ria,
Everything on my LAN is "sync'd" via NTP using the same NTP server hosted on my IRLP node which gets time from an Internet time source (ntp.org).  The time is very very close.  The remote PC's tested are also getting time from the Internet.  All devices have time that is very close to one another... how close does the time need to be?

I will look at the Meinberg app to synchronize the windows computer.

FWIW, the VPN would not connect on my cellphone (iPhone) either which should have accurate time from the cellular carrier (AT&T).

The SoftEther manager connects without difficulty... thought it might have been some weird Windows firewall problem but I disabled the firewall which made no difference.

I will run the updated script... do I assume I must start from scratch?  ie. I can't run the script on a system that has SoftEther already installed.  I assume that the update will likely not solve my problem.

I do have a copy of the original image that worked FB for 3 months before these problems occurred.

I will let you know how it turns out.  Looks like no smoking gun... :(

73
Jon
K1IMD
Photo of K1IMD

K1IMD

  • 4 Posts
  • 0 Reply Likes
Ria,
It has been a little nuts here at work.  Hate it when work gets in the way of ham radio!!  Anyway, I ran the updated script and it executed perfectly.  I will test it later tonight to ensure it works properly but I suspect it will.  Still no smoking gun on the intermittent connection issues...
73
Jon
K1IMD
Photo of Ria - N2RJ

Ria - N2RJ, Elmer

  • 2311 Posts
  • 950 Reply Likes
Push come to shove we can try TeamViewer sometime.