I am setting up my own home openVPN server on a dd wrt router that I would like to access from overseas from my iPhone and macbook when on wifi.
DD WRT router is all configured and ready to accept openVPN files.
I have created a DDNS account with
freedns.afraid.org that points a URL to my router and configured that in DD WRT. This seems to be updating okay. I read that this was required for openVPN server on DD WRT router, but I'm not sure where or how to apply this yet.
I have installed Tunnelblick on my macbook, and openVPN on my iPhone.
I have researched and understand (I think) the router needs me to paste in text from 4 files:
- ca.crt
- server cert file
- server key file
- pem file
I have researched and understand (I think) that for openVPN client connection needs 3 files:
- ca.crt (same file as server)
- client cert file
- client key file
So I'm trying to create the files, but I don't really understand the relationship between the .ovpn file and the text files. After my openVPN server gets configured with text files, Iphone seems to need to import .ovpn file. Tunnelblick on my Macbook seems to just need one .ovpn file also that gets dropped on the Tunnelblick icon in my status bar.
I have tried to follow intuition on start up of Tunnelblick to create the files. Without any configurations present, it offers up a sample config file and sets things up with instructions what to do with the folder, but these instructions also say to add the cert and key files, but I don't know where they are or how to create them. I have read on Tunnelblick docs that the cert and key information is in the configuration files, so I tried changing the name of the sample file and adding it to the TB icon in status bar but it said that it was a sample file, not what it wants.
Questions:
- Is there a tutorial that shows how to create the necessary text files to put into openVPN server and how to create certs and keys using Tunnelblick? Something
similar to what openVPN did for Windows users?
- Is .ovpn config file sort of a master file with all keys and certs inside? It seems like DD WRT needs the actual text files dropped in, but Tunnelblick and iPhone app can draw them out of the .ovpn file only.
- Do I need to use URL through DDNS like I set up, and where does this get configured?
- Is there a tutorial on what changes need to be made to the sample config.ovpn file for a new setup?
Thank you for any help, and thank you for helping out Mac users!