Auteur: Chris Dos Date: À: Simon Hobson, dng Sujet: Re: [DNG] Current state of VPN software ?
On 4/8/20 2:14 PM, Simon Hobson wrote: > It's been a while since I last did anything with VPNs on Linux, and I recall there being 3 options, some of which were "less well supported" than others. I'm looking to setup a site-site tunnel so I can remotely access stuff at mum's (she's in isolation because of this Covid 19 stuff) and using remote desktop control, connect her Mac to a video call.
>
> So what's the state of play in the VPN on Linux world - both ends would be running Devuan (one end an AMD64 VM, the other end rPi) ? Last thing I used was OpenVPN which AIUI is completely non-interoperable with anything else, while FreeSwan and OpenSwan were having a bun fight.
>
> Simon
>
A little late, but I used to use a SSH script to create a full VPN connection
between my laptop and work sites. I just created a script for each network I
wanted to connect to. You'll need to set up SSH keys first though to the root
user (or you can modify the script to use sudo on the remote end). Script I
used to use:
if [ "$1" != "start" -a "$1" != "stop" ]
then
echo "Syntax: $0 <start> <stop>"
exit 1
fi
if [ "$1" = "start" ]
then
# Find next available local TUN device
TUNNUMBER=0
FINDTUN="false"
while [ "$FINDTUN" = "false" ]
do
ifconfig -a | grep -v tunl | grep tun$TUNNUMBER > /dev/null
if [ "$?" != "1" ]
then
let TUNNUMBER=$TUNNUMBER+1
else
FINDTUN="true"
fi
done
I currently use OpenVPN tunnels, but oh my word, OpenVPN is a bear to get set
up properly. Probably today, if I was going to do it again, WireGuard might
be the next easiest solution other than using SSH.