Installing Raspberry Pi as a VPN Router on MacOS (manual)

Building your own OpenSource Raspberry Pi VPN Router couldn’t be simpler with our OpenSource Img

It only takes 10 minutes to build your own Raspberry Pi Router and protect your entire home or office behind a state of the art VPN.

This guide is intended for power users and we highly recommend you use this guide which is easier and quicker!

What do you need

  • A Mac or MacBook with SD Card Reader – An external read would also work!
  • VPNCity Raspberry Pi Img (download here)
  • Raspberry Pi

Format your SD Card and Prepare for copying the Image

  • There are a few ways you can format your SD card on your MAC. Being a UNIX based system, you can do so via the command line (or terminal) but there is a risk you could format the wrong drive! So lets do this using Disk Utility. Open Disk Utility (Command + Space and search Disk Utility)
  • Once you have Disk Utility open you should see the SD Card Reader in the list on the left. It may not appear exactly as it has in the screenshot below depending on what version of MacOS you are running, but you are looking for the disk that is the same size as the SD card you have inserted. 
  • We now want to Erase the SD card. This is going to delete everything from the SD card. Highlight the SD card on the left side and click Erase in the top of the Window. Important! Be careful to erase the correct drive!
  • Set a name and select the format ExFAT
  • Once the SD card is formatted you now need to Eject the “RP” partition that it created by clicking the Eject button alongside RP

Copy the Img file to your SD card

  • The easiest way to copy an Img file to your SD card is using the Terminal window (Command + Space and search “Terminal”)
  • Once you have your terminal open, type “diskutil list” to show all the disks on your Mac.
  • What we are looking for in this list is the Disk with the Partition “RP” (from naming it earlier in the format). As you can see in the screenshot above we now know the disk is “/dev/disk3”
  • To copy the image to your SD card you would now simply run the command changing X for the number of your disk (in this case 3)
    sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskX conv=sync
  • Eject the SD card from your Mac!
    diskutil unmountDisk /dev/diskX
  • Put it into your Raspberry Pi and power it up!