tag:blogger.com,1999:blog-9007601562606157016.post393191565094361961..comments2023-05-11T16:21:37.725+01:00Comments on <Stuff about="code" />: Raspberry Pi - Use as a VPN ServerMartin O'Hanlonhttp://www.blogger.com/profile/03047799173301971515noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-9007601562606157016.post-58689557783865006582018-05-19T22:14:55.721+01:002018-05-19T22:14:55.721+01:00This comment has been removed by the author.Jaimenhttps://www.blogger.com/profile/13377101883597863619noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-27193265329220888022016-07-09T17:59:26.708+01:002016-07-09T17:59:26.708+01:00No idea... I suspect quite a few tho.No idea... I suspect quite a few tho.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-20867994096307659042016-05-13T17:43:06.835+01:002016-05-13T17:43:06.835+01:00um,sorry to revive this ancient threa,but i'm ...um,sorry to revive this ancient threa,but i'm going to test something like this,and just want to ask how many clients the raspberry pi 3 model b could handle...thanks and sorry.Anonymoushttps://www.blogger.com/profile/08824714681370167868noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-26324584054269319782016-02-17T16:43:16.584+00:002016-02-17T16:43:16.584+00:00Hi Martin and others
Thanks for the toutorial. W...Hi Martin and others<br /><br />Thanks for the toutorial. With this and another one I was able to get PPTP VPN running, but it was slow going. Like others I could access my Pi and some network resources but not many web pages (google, YouTube worked but not most others. I think this is an issue with PPTP and windows.<br /><br />I believe OpenVpn is more robust, more secure and does not have these limitations.<br />I am running on a new v2 Pi running Jessie. I found a great auto-install of OpenVPN on Github, which works flawlessly. It performs the full install, builds server and client certificates and drops the .ovpn file in your Pi folder, ready to export to your windows or other client pc. It works flawlessly. I thought this might be useful so I am linking to it here:<br /><br />https://github.com/StarshipEngineer/OpenVPN-Setup<br /><br />Thanks<br /><br />Thanksccclapphttps://www.blogger.com/profile/02025984233523347608noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-34809518589821173522016-01-15T09:04:26.692+00:002016-01-15T09:04:26.692+00:00Rpi is wired into Router/ModemRpi is wired into Router/ModemMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-18111399362593336382016-01-15T08:21:32.335+00:002016-01-15T08:21:32.335+00:00Nice tutorial, i wander what is your configuration...Nice tutorial, i wander what is your configuration, <br />Device -- wired or wifi ? -- Rpi -- wifi or wired ? -- Router/ModemAnonymoushttps://www.blogger.com/profile/00181586599059422065noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-67032166907650063292015-12-20T02:45:32.377+00:002015-12-20T02:45:32.377+00:00I have everything configured right. I'm able ...I have everything configured right. I'm able to connect to the VPN and I pull an Ip address<br /> link/ppp0<br /> inet 192.168.0.50 peer 192.168.0.14/32 scope global ppp0<br />but i cant ping anything on the network or i can access the internet. Any suggestions.<br /><br /><br />Kevin<br /><br /><br />Anonymoushttps://www.blogger.com/profile/00111149977456602387noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-75211062231950418822015-03-02T17:56:36.997+00:002015-03-02T17:56:36.997+00:00I have a problem with my vpn-server.
It is possibl...I have a problem with my vpn-server.<br />It is possible to connect to the VPN tunnel but only sometimes it is possible to connect to internet via the tunnel.<br /><br />Anyone knows what to do?Anonymoushttps://www.blogger.com/profile/04425062837246571737noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-51161862863683558872014-06-16T18:19:49.795+01:002014-06-16T18:19:49.795+01:00awesome tutorial martin, am able to access interne...awesome tutorial martin, am able to access internet through the VPN but no the local devices like printer or NAS, what did i miss?Yeshhttps://www.blogger.com/profile/07442047173914447674noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-71231746101740186952014-06-16T18:19:07.307+01:002014-06-16T18:19:07.307+01:00This comment has been removed by the author.Yeshhttps://www.blogger.com/profile/07442047173914447674noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-54770893147224474412014-04-10T10:02:10.137+01:002014-04-10T10:02:10.137+01:00Not as far as Im aware. Sorry I cant be more help...Not as far as Im aware. Sorry I cant be more help!Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-10801235392079861502014-04-04T00:45:23.374+01:002014-04-04T00:45:23.374+01:00I have the vpn working and can see that the ip add...I have the vpn working and can see that the ip address of my phone is changing to my home network. Now I want to be able to connect to my home vigin media tivo box when away and i'm not sure that's working...are there any other steps needed to make the pi access the tivo box? Anonymoushttps://www.blogger.com/profile/15320149509899322273noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-73954384363727085182014-02-25T22:21:34.210+00:002014-02-25T22:21:34.210+00:00And? Are you getting a problem?And? Are you getting a problem?Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-7869756583471432712014-02-23T15:31:55.109+00:002014-02-23T15:31:55.109+00:00no gateway address in ipconfigno gateway address in ipconfigOscar7https://www.blogger.com/profile/15787967279263246808noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-59288938548041817002014-01-18T09:41:43.889+00:002014-01-18T09:41:43.889+00:00This comment has been removed by the author.Steebshttps://www.blogger.com/profile/04710627219216257536noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-63063478960970976082014-01-16T20:22:37.861+00:002014-01-16T20:22:37.861+00:00I had the same problem. Apparently the Pi's ip...I had the same problem. Apparently the Pi's iptables is blocking all the traffic thats not from it's local subnet. I changed remoteip 192.168.1.100-110 to the same ip range i'm using on my local network. Works like a charm!Joppehttps://www.blogger.com/profile/10018207842687829433noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-25935547296292703152014-01-16T20:19:09.392+00:002014-01-16T20:19:09.392+00:00This comment has been removed by the author.Joppehttps://www.blogger.com/profile/10018207842687829433noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-29445845194114619232013-09-25T09:27:50.739+01:002013-09-25T09:27:50.739+01:00I would put money on that you cant connect to your...I would put money on that you cant connect to your VPN via the internet because your router doesn't support GRE Protocol 47, unfortunately this requires more than just forwarding the port.<br /><br />As regards to getting an internet connect through you VPN, check you have "configured the pi to forward IP traffic" correctly.<br /><br />snippet from above:<br /><br />sudo nano /etc/sysctl.conf<br /><br />Find the option "net.ipv4.ip_forward", which should be commented out and look like:<br /><br />#net.ipv4.ip_forward=1<br /><br />Un-comment it and save the changes:<br /><br />net.ipv4.ip_forward=1Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-1969144984188892092013-09-25T03:43:16.714+01:002013-09-25T03:43:16.714+01:00I know this thread is pretty old, but i've rec...I know this thread is pretty old, but i've recently been trying to set up a VPN server myself. I'm having almost the exact same issue; I can connect to the vpn throught its internal IP address, however, I get "limited" access, and am not actually capable of accessing the internet. If I try to connect to the external IP address, I get "Network Error 619: Could not extablish a connection to the port" or something along those lines... I have set up a Port Forward on my router to port 1723, I have enabled ipforward in sysctl1, and I have even experimented with port forwarding 47 to my raspberry pi, to give it dirrect access to the GRE port, but that didn't work as well. I am using a Netgear WNR834B router, and have not yet had success in establishing a connection. I have tried to connect with a Windows 8, a Windows Vista, and an Adroid phone, all of them experiencing the same problem, that connecting internally works, but doesn't provide internet connection, and connecting externally supplies some form of an error stating that a connection was not made...Anonymoushttps://www.blogger.com/profile/10524191645883096235noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-7285169505290525242013-07-09T06:26:49.266+01:002013-07-09T06:26:49.266+01:00First thing to check is that you have successfully...First thing to check is that you have successfully completed the step to uncommented ipforward in sysctl1.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-5601764934337376122013-07-08T17:28:46.390+01:002013-07-08T17:28:46.390+01:00Great tutorial; I've got the VPN up and runnin...Great tutorial; I've got the VPN up and running. The one problem I'm facing started out just on my Android device but it has since "spread" to my Windows machine. While I can connect to the VPN, I cannot access the Internet through my RPi. I followed all the instructions but I am unsure as to where I should be looking for the fix.nealhttps://www.blogger.com/profile/04294494518490479116noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-81088974082373290682013-05-28T14:20:24.562+01:002013-05-28T14:20:24.562+01:00Hi, I'm sorry if I am asking any stupid questi...Hi, I'm sorry if I am asking any stupid questions. I have been trying to get something like this working but with one difference. I am not using a router but a 3g dongle (eth1) plugged into a powered usb hub that is connected to my RPi. eth0 is then connected to the one device that I want to be able to access from anywhere via a pptp VPN connection, but just can't get it to connect. Is there any way to get this working with just the 3g dongle (I'm trying to keep down the amount of hardware)? I'm using noip.com for my ddns and have ddclient which all works perfectly, I think there may be a solution with the iptable settings but have drawn a blank so far. Please help if you can.Anonymoushttps://www.blogger.com/profile/05524399325094187752noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-9096190427771688642013-03-25T21:00:59.595+00:002013-03-25T21:00:59.595+00:00yes! works on first try. this is the simplest solu...yes! works on first try. this is the simplest solution. thanksAnonymoushttps://www.blogger.com/profile/11074503024086744188noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-5281143380250298432013-03-19T06:42:29.687+00:002013-03-19T06:42:29.687+00:00I would double check the path, what happens when y...I would double check the path, what happens when you apply the change to sysctl? Do you get an error? Are you running raspbian?Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-7611462084998055252013-03-18T22:28:33.373+00:002013-03-18T22:28:33.373+00:00There was nothing in the sysctl.conf file for me, ...There was nothing in the sysctl.conf file for me, it was all blank. I just added "net.ipv4.ip_forward=1" and saved the file and continued on with the tutorial but it does not work. Any ideas?Anonymoushttps://www.blogger.com/profile/16209722743869271803noreply@blogger.com