VPN connection


7 posts
by djmaster329 » Thu Jun 28, 2012 4:02 pm
Hi guys,

Yesterday my Raspberry Pi was delivered, very happy with it so far!

I am currently trying to set up a PPTP VPN connection to BTGuard.

I have everything set up, using this guide: http://www.cyberciti.biz/tips/howto-con ... lient.html.

But when I check the connection log it shows this error:
Code: Select all
root@raspberrypi:~# tail -f /var/log/messages
Jun 28 16:08:52 raspberrypi kernel: bcm2708_fb_set_par info(cb888000) 656x416 (656x416), 545792, 16
Jun 28 16:08:52 raspberrypi kernel: BCM2708FB: start = ccb00000,4d384000 width=656, height=416, bpp=16, pitch=1312 size=545792 success=0
Jun 28 16:17:11 raspberrypi kernel: PPP generic driver version 2.4.2
Jun 28 16:17:11 raspberrypi pppd[1852]: pppd 2.4.5 started by root, uid 0
Jun 28 16:17:11 raspberrypi pppd[1852]: Using interface ppp0
Jun 28 16:17:11 raspberrypi pppd[1852]: Connect: ppp0 <--> /dev/pts/1
Jun 28 16:17:13 raspberrypi pppd[1852]: CHAP authentication succeeded
[b]Jun 28 16:17:13 raspberrypi pppd[1852]: kernel does not support PPP filtering[/b]
Jun 28 16:17:13 raspberrypi pppd[1852]: Connection terminated.
Jun 28 16:17:13 raspberrypi pppd[1852]: Exit.


So, I suppose the kernel is not compatible.
Any way to solve this?

Kind Regards,
djmaster329
Posts: 13
Joined: Thu Jun 28, 2012 3:18 pm
by Rabauke » Mon Jul 02, 2012 1:56 pm
Got the same problem.
Code: Select all
Jul  2 15:47:29 raspberrypi pppd[11970]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Jul  2 15:47:29 raspberrypi pppd[11970]: pppd 2.4.5 started by root, uid 0
Jul  2 15:47:29 raspberrypi pppd[11970]: Using interface ppp0
Jul  2 15:47:29 raspberrypi pppd[11970]: Connect: ppp0 <--> /dev/pts/2
Jul  2 15:47:31 raspberrypi pppd[11970]: peer from calling number xxx.228.119.242 authorized
Jul  2 15:47:31 raspberrypi pppd[11970]: kernel does not support PPP filtering
Jul  2 15:47:31 raspberrypi pppd[11970]: Connection terminated.
Jul  2 15:47:31 raspberrypi pppd[11970]: Connect time 0.1 minutes.
Jul  2 15:47:31 raspberrypi pppd[11970]: Sent 0 bytes, received 58 bytes.
Jul  2 15:47:31 raspberrypi pppd[11970]: tcflush failed: Input/output error
Jul  2 15:47:31 raspberrypi pppd[11970]: Exit.


Anyone?
Posts: 2
Joined: Mon Jul 02, 2012 1:53 pm
by Rabauke » Mon Jul 02, 2012 3:53 pm
It's working. I updated firmware with rpi-update and rebooted.
Now it gives me:
Code: Select all
Jul  2 17:46:12 raspberrypi pppd[2098]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Jul  2 17:46:12 raspberrypi pppd[2098]: pppd 2.4.5 started by root, uid 0
Jul  2 17:46:12 raspberrypi pppd[2098]: Using interface ppp0
Jul  2 17:46:12 raspberrypi pppd[2098]: Connect: ppp0 <--> /dev/pts/1
Jul  2 17:46:14 raspberrypi pppd[2098]: peer from calling number xxx.228.119.242 authorized
Jul  2 17:46:14 raspberrypi pppd[2098]: kernel does not support PPP filtering
Jul  2 17:46:14 raspberrypi pppd[2098]: MPPE 128-bit stateless compression enabled
Jul  2 17:46:17 raspberrypi pppd[2098]: found interface eth0 for proxy arp
Jul  2 17:46:17 raspberrypi pppd[2098]: local  IP address 192.168.1.140
Jul  2 17:46:17 raspberrypi pppd[2098]: remote IP address 192.168.1.240
Jul  2 17:47:15 raspberrypi pppd[2098]: LCP terminated by peer (fM-^TeM-B^@<M-Mt^@^@^@^@)
Jul  2 17:47:15 raspberrypi pppd[2098]: Connect time 1.0 minutes.
Jul  2 17:47:15 raspberrypi pppd[2098]: Sent 0 bytes, received 24618 bytes.
Jul  2 17:47:15 raspberrypi pppd[2098]: Hangup (SIGHUP)
Jul  2 17:47:15 raspberrypi pppd[2098]: Modem hangup
Jul  2 17:47:15 raspberrypi pppd[2098]: Connection terminated.
Jul  2 17:47:15 raspberrypi pppd[2098]: Exit.

Kernel is now
Code: Select all
:~# uname -a
Linux raspberrypi 3.1.9+ #144 PREEMPT Sun Jul 1 12:37:10 BST 2012 armv6l GNU/Linux
Posts: 2
Joined: Mon Jul 02, 2012 1:53 pm
by mapexmbirch » Fri Aug 31, 2012 5:14 pm
How do you get BTGuard to work, I am either doing something really silly or it is complicated.

I have tried connecting through the network manager, but it says a connection has never been made. I have also tried downloading OpenVPN but I can't get into the configure file.

How did you guys do it?

Thanks
Posts: 9
Joined: Sun Aug 12, 2012 5:29 pm
by mapexmbirch » Fri Aug 31, 2012 9:59 pm
In that guide from the first post I get to

# vi /etc/ppp/chap-secrets

But after that I can't type anything in the file and I have no idea what append means!

Any help would be greatly appreciated.
Thanks
Posts: 9
Joined: Sun Aug 12, 2012 5:29 pm
by Wendo » Sat Sep 01, 2012 12:36 am
vi has two modes, insert and command mode, you need to press i to get into insert mode.

You're better off replacing vi with nano whenever you see it in an example as nano will work as you expect for a text editor
Posts: 142
Joined: Sun Jun 10, 2012 8:27 pm
by mapexmbirch » Sat Sep 01, 2012 7:47 am
Thanks
I can get into the file and change it now. But I still have no idea what append means.

I messed up editing the file and then appended it with 'M-A' it said 'save as a different file name?' if I said no it wouldn't save it so I said yes and now I want to change it but can't find the file.

Can I reinstall the files? And start again.
Posts: 9
Joined: Sun Aug 12, 2012 5:29 pm