Powerphil
Posts: 72
Joined: Sat Aug 04, 2012 9:36 pm

Vpn issues

Sat Nov 10, 2012 11:43 pm

Hi,
I've just installed pp2t on my pi to allow me to connect back to my own Internet connection when travelling abroad. I successfully create a vpn to the pi, but I cannot connect to the Internet etc when the vpn is in place. I've checked the port forwarding a number of times and all seems ok. We have a sky sagem router.
Any ideas as to where to start searching?

User avatar
Thijxx
Posts: 86
Joined: Mon Oct 22, 2012 1:25 pm
Location: The Netherlands

Re: Vpn issues

Sun Nov 11, 2012 12:41 am

Do you want to relay your internet connection or do you just want access to your home network?

My Mac has a setting to relay all traffic over the VPN network, the relaying is a client thing.
Mimi: Where'd you come from?
Doyle: My mom and the authorities are still trying to figure that out.

Powerphil
Posts: 72
Joined: Sat Aug 04, 2012 9:36 pm

Re: Vpn issues

Sun Nov 11, 2012 7:40 am

I'd like to relay my Internet connection. My plan is that when we are abroad, we have a secure Internet connection when working on a free wifi service

User avatar
Thijxx
Posts: 86
Joined: Mon Oct 22, 2012 1:25 pm
Location: The Netherlands

Re: Vpn issues

Sun Nov 11, 2012 4:45 pm

You may want to check some configs :)
  • /etc/pptpd.conf
Something like (depending on your local network settings):
localip 192.168.0.1 (IP of your Pi)
remoteip 192.168.0.234-238,192.168.0.245
Make sure you have this here: /etc/ppp/pptpd-options
ms-dns 192.168.1.1 (your local Gateway or Router IP)
nobsdcomp
noipx
mtu 1490
mru 1490
Last but not least:
Edit the “sysctl” file: sudo nano /etc/sysctl.conf
Find the “net.ipv4.ip_forward” line and change the parameter from 0 (disabled) to 1 (enabled): net.ipv4.ip_forward=1

To test these settings; ping your Pi from your remote location to check the VPN connection. Then ping the IP of google.com (173.194.41.70) to check DNS-free connection. Then ping google.com, all from your remote location.
Mimi: Where'd you come from?
Doyle: My mom and the authorities are still trying to figure that out.

Powerphil
Posts: 72
Joined: Sat Aug 04, 2012 9:36 pm

Re: Vpn issues

Sun Nov 11, 2012 4:53 pm

Many thanks. The weirdest thing happened before I tried your suggestions....it started to work. No changes necessary! Very odd, but still happy

User avatar
Thijxx
Posts: 86
Joined: Mon Oct 22, 2012 1:25 pm
Location: The Netherlands

Re: Vpn issues

Mon Nov 12, 2012 10:33 am

Mind over Matter!

or did you use The Force? :lol:
Mimi: Where'd you come from?
Doyle: My mom and the authorities are still trying to figure that out.

Return to “Networking and servers”