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.
Ria - N2RJ, Elmer
- 2317 Posts
- 962 Reply Likes
Posted 3 years ago
- 853 Posts
- 183 Reply Likes
My direct email is <bret(dot)wx7y(at)gmail(dot)com>
thank you VERY much for your time!
Bret
WX7Y
Ria - N2RJ, Elmer
- 2317 Posts
- 962 Reply Likes
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.
- 4 Posts
- 0 Reply Likes
I have used your script to build a VPN for my home station and a friend's as well.. works(ed) great for 3 months. Not sure if Jessie updates caused problems or Windows 10 Creator update did. Nothing else has changed but I get intermittent connections. Most of the time it times out with the Windows VPN complaining:
Can't connect to VPN
The L2TP connection attempt failed because the security layer encountered a processing error during initial negotiations with the remote computer.
I have rebuilt the card 2 times and get the same errors... once in a long while it will connect. I am lost... can you shed some light on the problem?
73
Jon
K1IMD
Ria - N2RJ, Elmer
- 2317 Posts
- 962 Reply Likes
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
Ria - N2RJ, Elmer
- 2317 Posts
- 962 Reply Likes
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
- 4 Posts
- 0 Reply Likes
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
- 4 Posts
- 0 Reply Likes
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
Ria - N2RJ, Elmer
- 2317 Posts
- 962 Reply Likes
- 102 Posts
- 29 Reply Likes
Ria, TU for your work on the script and sharing it.
Ria - N2RJ, Elmer
- 2317 Posts
- 957 Reply Likes
Chris Tate - N6WM, Elmer
- 976 Posts
- 274 Reply Likes
Ria - N2RJ, Elmer
- 2317 Posts
- 959 Reply Likes
Chris Tate - N6WM, Elmer
- 976 Posts
- 274 Reply Likes
Ria - N2RJ, Elmer
- 2317 Posts
- 959 Reply Likes
The pi 3 has wifi and ethernet. I don't think you'd need another ethernet adapter unless you're connecting to a wired network.
Chris Tate - N6WM, Elmer
- 976 Posts
- 274 Reply Likes
- 110 Posts
- 23 Reply Likes
SoftEther L2TP is working fine for me on my Raspberry PI now, excellent job.
Chris Tate - N6WM, Elmer
- 976 Posts
- 274 Reply Likes
Ria - N2RJ, Elmer
- 2317 Posts
- 959 Reply Likes
- 116 Posts
- 16 Reply Likes
Chris Tate - N6WM, Elmer
- 976 Posts
- 274 Reply Likes
- 116 Posts
- 16 Reply Likes
Windows boxes are power hungry devices and with all the updates who knows when they will break yet again, I just find Linux a much more stable platform to leave running in the background.
Isn't It great we have all these different ways to us the Flex ecosystem.
- 3 Posts
- 1 Reply Like
- 12 Posts
- 6 Reply Likes
- 10 Posts
- 1 Reply Like
Good morning!
Have installed your script in a PI3B with sucess.
Thank you so much! I am having a lot of fun using my VPN remote acess.
Just for your records, I had to re-run your script after a cold reboot of raspbian , to get the configuration questions.
Best 73
PY2GN William Schauff
Ria - N2RJ, Elmer
- 2317 Posts
- 957 Reply Likes
- 505 Posts
- 153 Reply Likes
Would you be willing to email me a zipped copy? ws7m@arrl.net works. Thanks
Ria - N2RJ, Elmer
- 2317 Posts
- 957 Reply Likes
That's a feature, not a bug. It's a self extracting script with multiple files. The "trash" at the end is a tar archive. Download as-is and scp to the pi to use it.
Ria
- 505 Posts
- 153 Reply Likes
In the past when I've done these kinds of things I zip or tar them as for some reason my download is losing line feeds and things are looking really strange.
When I run it I get things like "fi not found line 39" etc.
anyway I think I have the server installed now I just have to get it to give me an IP I can work with... sigh...
Ria - N2RJ, Elmer
- 2317 Posts
- 957 Reply Likes
- 2 Posts
- 0 Reply Likes
It worked well once I figured out that eth0 was hardcoded into the vpninstall.sh script, as I am running Raspbian Stretch the interfaces are all renamed so had to tweak it to find the interface. Unfortunately I just hardcoded it, not sure how to fix it properly to make it dynamic.
Mark
- 2 Posts
- 0 Reply Likes
maybe update vpnsinstall.sh to use something like
for f in e*; do [[ -e $f ]] || continue; echo $f ; done | head -1to get the wired interface and then use that to update commands.in
bridgecreate VPN /DEVICE:enxMAC:ADDRESS /TAP:noand when echoing
echo "Hardware address/MAC address:" `cat /sys/class/net/enxMAC:ADDRESS /address` echo "IP address:" `ip addr show enxMAC:ADDRESS | grep "inet " | cut -d '/' -f1 | cut -d ' ' -f6`
Ria - N2RJ, Elmer
- 2317 Posts
- 957 Reply Likes
Ria - N2RJ, Elmer
- 2317 Posts
- 962 Reply Likes
https://github.com/rjairam/softether-scripts
I used Makeself for the packaging.
- 4 Posts
- 0 Reply Likes
73JonK1IMD
Related Categories
-
Third Party Applications and Products
- 1000 Conversations
- 255 Followers
-
SmartSDR for iOS
- 455 Conversations
- 137 Followers
Ria - N2RJ, Elmer
I really need a place to host this too, probably will work better than me emailing it