vpn conection to raspberry over pppd

iceblink iceblink at seti.nl
Mon Dec 8 14:29:51 UTC 2014

On 2014-12-08 14:57, robert rottermann wrote:
> On 07.12.2014 22:25, Karl Auer wrote:
>> On Sun, 2014-12-07 at 21:56 +0100, robert rottermann wrote:
>>> Now I would like to set up a vpn between my ubuntu box and the remote
>>> raspberry of which I do not know the io addres.
>> Does your Ubuntu box have a public address? In that case simply have 
>> the
>> Raspberry "phone home".
>> If your Ubuntu box and the Raspberry Pi are both behind NAT, but you
>> have a server with a public address, you could make two VPN 
>> connections
>> - one from your Ubuntu box to your server and the other from the
>> Raspberry Pi to your server - and have the server route between the 
>> two.
>> Some ISPs provide a QoS service that does this for you, provided both
>> ends are with the same provider. You could ask them...
>> Regards, K.
> Thanks Karl
> this is in deed what I would like to do.
> However, I would like to have a remote shell running on my home
> computer, so I can work on the raspberry.
> As the rasperry does not have a valid ip (it is behind NAT) I look for
> a way that the raspy initiates the connection.
> But the shell should run localy.
> thanks again
> robert

The VPN connection is only a way to create a (secured) virtual LAN 
connection via the internet. Your raspberry will connect to the VPN 
server and obtain a local IP address from the server, for instance, on a virtual network device (usually /dev/tun0). After 
establishing the VPN connection your Raspberry can be reached by an ssh 
session to the IP address that was given to it by the VPN server. I 
don't think the NAT is a problem.

The only difficulty is that you somehow need to tell the raspberry to 
initiate a VPN connection to the server.

Best regards,

More information about the ubuntu-users mailing list