Connect my VM's to my local network
I rent some VM's from internet, and I need to connect them to my local network.
Pfsense 2.0 is running on my local network and I installed Centos 6 on VM's.
so how can I connect Centos 6 servers to pfsense 2.0 using OpenVPN ?
help me if you can or if you have any other suggestion please tell me.
tbrummell last edited by
Setup pfSense OpenVPN in TAP mode. Install OpenVPN on the CentOS boxes in client mode. OpenVPN Cookbook would be of great use to you.
" Setup pfSense OpenVPN in TAP mode " is that mean create Road-warrior situation??
Nachtfalke last edited by
Yes, RoadWarrior setup should work.
You should think about if it is neccessary for you to have the VMs on the same subnet as your local network. If you need this, than use OpenVPN in TAP mode (bridging).
If it is no problem that the VMs are on a different subnet then choose OpenVPN in TUN mode (routing).
If you use pfsense 2.0.1 and OpenVPN in TAP mode then install the "OpenVPN bridging Fix" package from pfsense package manager.
My personal optionion is to run OpenVPN in TUN mode but it is up to you!
Thanks for reply,
I create Read-warrior connection, and i test it with windows 7 machine and it working,
now what's the steps to use the road-warrior connection on Centos machine.
Nachtfalke last edited by
Don't know how to configure OpenVPN per hand/file on CentOS
Perhaps you could use your Windows 7 .ovpn config file and edit it for the CentOS machines.
cmb last edited by
get the config archive via the client export and use it on CentOS. You'll have to install OpenVPN on it first.
thanks all for replaies,
I used this link to install and config Openvpn client in my Centos servers http://www.techrepublic.com/blog/opensource/how-to-set-up-a-linux-openvpn-client/1894
After that i get my client config files from " export client " and the CA file and put it on my Centos server Also, i disable the firewall on my Centos then i run Client.conf. this message appeared
Wed Mar 7 04:23:45 2012 OpenVPN 2.1.4 i386-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Apr 24 2011
Wed Mar 7 04:23:45 2012 NOTE: OpenVPN 2.1 requires '–script-security 2' or higher to call user-defined scripts or executables
Wed Mar 7 04:23:45 2012 Cannot load private key file jrcfw01-udp-2198-tls.key: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib
Wed Mar 7 04:23:45 2012 Error: private key password verification failed
Wed Mar 7 04:23:45 2012 Exiting
any new suggestion.