Results 1 to 5 of 5

Thread: Raspberry Pi as VPN server

  1. #1
    Senior Member
    Join Date
    May 2008
    Posts
    233
    Thanks
    17
    Thanked
    3 times in 3 posts
    • douglasb's system
      • Motherboard:
      • Asus P5K Premium/wifi-ap
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB Corsair XMS2 800MHz 4-4-4-12
      • Storage:
      • 2x 500GB Samsung F1
      • Graphics card(s):
      • AMD HD6870
      • PSU:
      • 520W Corsair HX series
      • Case:
      • Cooler Master CM 690
      • Operating System:
      • Vista Premium (64bit)

    Raspberry Pi as VPN server

    I've been trying to turn a Raspberry Pi running raspbian into a VPN server using OpenVPN & easy-rsa but both have been updated since all the guides I've found were written so I got about half way through my set up & got stuck.
    Has anyone got an up to date guide or just advice?

    Cheers,

    Doug

  2. #2
    Banned
    Join Date
    Jun 2008
    Posts
    2,129
    Thanks
    13
    Thanked
    189 times in 160 posts

    Re: Raspberry Pi as VPN server

    Where are you stuck at?

    Happy to help with getting it sorted. But I always think it's better to learn than just blindly following a how-to.

  3. #3
    Senior Member
    Join Date
    May 2008
    Posts
    233
    Thanks
    17
    Thanked
    3 times in 3 posts
    • douglasb's system
      • Motherboard:
      • Asus P5K Premium/wifi-ap
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB Corsair XMS2 800MHz 4-4-4-12
      • Storage:
      • 2x 500GB Samsung F1
      • Graphics card(s):
      • AMD HD6870
      • PSU:
      • 520W Corsair HX series
      • Case:
      • Cooler Master CM 690
      • Operating System:
      • Vista Premium (64bit)

    Re: Raspberry Pi as VPN server

    First I got stuck trying to find where easy-rsa had been installed, eventually found that & got a couple of keys ready, set myself up as the certificate authority then then lost track of all the client keys - they seem to have disappeared when I set up the certificate authority & now I get error messages saying it can't find the file when I try call up anything to do with what I'd been doing

  4. #4
    Senior Member watercooled's Avatar
    Join Date
    Jan 2009
    Posts
    11,478
    Thanks
    1,541
    Thanked
    1,029 times in 872 posts

    Re: Raspberry Pi as VPN server

    If you use the script to set up the CA then IIRC it wipes any existing keys stored in those folders. However the CA needs to be set up in advance in order to properly sign any client/server certificates.

    After setting up the CA you'll want to use the easy-rsa script to set up a server certificate and as many client certificates as you have clients.

    OpenVPN's own documentation is pretty good at explaining if you've not used it yet: https://openvpn.net/index.php/open-s...ion/howto.html

    Edit: Just something to be aware of, generating DH parameters can take a VERY long time depending on size, the on-screen message isn't kidding, and it's normal. You're probably looking at over an hour for a RasPi so start it and leave it running while you're doing something else. You only have to do it once though, not every time you issue certificates.

  5. Received thanks from:

    douglasb (04-11-2015)

  6. #5
    Senior Member
    Join Date
    May 2008
    Posts
    233
    Thanks
    17
    Thanked
    3 times in 3 posts
    • douglasb's system
      • Motherboard:
      • Asus P5K Premium/wifi-ap
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB Corsair XMS2 800MHz 4-4-4-12
      • Storage:
      • 2x 500GB Samsung F1
      • Graphics card(s):
      • AMD HD6870
      • PSU:
      • 520W Corsair HX series
      • Case:
      • Cooler Master CM 690
      • Operating System:
      • Vista Premium (64bit)

    Re: Raspberry Pi as VPN server

    Thanks for the tips & link! I'll try again in the next couple of days & hopefully get further this time.
    I know setting up the DH takes ages, sat through it before but know I know "this may take a long time" isn't an exaggeration!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •