How Do I Use My OpenVPN Jail?

Status
Not open for further replies.

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
I have an OpenVPN jail set up. Now I need to create a set of credentials for a new user (me so I can test access) and copy those credentials to the client computer and I have no idea how to do that.
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
Thanks pirateghost. Here's a question:

Simple Example
This example demonstrates a bare-bones point-to-point OpenVPN configuration. A VPN tunnel will be created with a server endpoint of 10.8.0.1 and a client endpoint of 10.8.0.2. Encrypted communication between client and server will occur over UDP port 1194, the default OpenVPN port.

Generate a static key:

openvpn --genkey --secret static.key
Copy the static key to both client and server, over a pre-existing secure channel.

Server configuration file
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key

Client configuration file
remote myremote.mydomain
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key

So on my server on the ifconfig line, should the first IP address be my public (internet) IP address and the second IP address should be my local IP address for the FreeNAS OpenVPN. Am I correct that this is why I have to port forward my public to my local server IP address?

I feel like a caveman trying to drive a car.
 
Status
Not open for further replies.
Top