Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» OpenVPN» OpenVPN on pfSense - Installation guide for (Windows) Dummies :-) (road-warrior)
Username:
Password:
 
 

Pages: 1 2 3 4 [5]   Go Down
  Print  
Author Topic: OpenVPN on pfSense - Installation guide for (Windows) Dummies :-) (road-warrior)  (Read 153509 times)
0 Members and 2 Guests are viewing this topic.
nambi
Jr. Member
**
Offline Offline

Posts: 99


View Profile
« Reply #60 on: June 01, 2011, 03:43:48 pm »

Great Tutorial! well appreciated

Now I have a problem I have upgraded to Pfsense 2 and the VPN settings are different does anyone have a similar tutorial for PFSense 2:

Thank You, I don't know where to copy the keys in version 2.
Logged
newmember
Jr. Member
**
Offline Offline

Posts: 29


View Profile
« Reply #61 on: July 03, 2011, 11:40:54 am »

Just a heads up on versions of openvpn I used to create the server and client keys.
Windows7
openvpn 2.20
pfsense 1.23

I kept getting this error: "server key does not appear to be valid" when using the "server key" in pfsense's openvpn setup page.
 
I found that the "server.key" was being created with these:
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
I was using openvpn client version 2.20 to create the keys.

I uninstalled openvpn 2.20 and installed openvpn version 2.09.
I ended up going back to openvpn version 2.09 to create the keys and now they have:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY----

After creating the keys, I then updated the openvpn client to 2.20 wouldnt connect to I tried the 2.1.x versions and finished with version 2.14 working and the connection worked fine.

It seems that there is a change in the way the server.key is created between openvpn client "easy-rsa" software release versions 2.09 and 2.00.

Finished with:
Windows7
openvpn 2.14
pfsense 1.2.3

I hope this sames someone else 3 days of late nights.

Cheers
 



« Last Edit: July 03, 2011, 11:53:51 am by newmember » Logged
newmember
Jr. Member
**
Offline Offline

Posts: 29


View Profile
« Reply #62 on: July 03, 2011, 12:13:08 pm »

To make the install a little tidy I added the CA, CERT and KEY to the openvpn config file.
I just meant I didn't have 4 file, instead I have one file to copy or move etc.
For me I connect to many openvpn sites with different CA, CERT and KEYS and this made it easier to maintain.
Here is my sample .OPVN config


Code:
####
client
dev tun
proto udp
remote XXX.XXX.XXX.XXX 1194   ## Add your IP address of pfsense and port number
ping 10
resolv-retry infinite
nobind
persist-key
persist-tun
# ca ca.crt    comment out .crt
# cert client1.crt    comment out crt
# key client1.key   comment out key
ns-cert-type server
comp-lzo
pull
verb 3
<ca>
-----BEGIN CERTIFICATE-----
Put your ca here.
-----END CERTIFICATE-----
</ca>

<cert>
Put your cert here
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
put your key here
-----END RSA PRIVATE KEY-----
</key>

####


Another Note:
Remember to add an another TAP if you intend to connect to two OPENVPN servers at the same time.
Hope the two sites you are connecting two have different network address spaces so that one site does not write routes over your other site.
/openvpn/utilities/Add a new TAP virtual ethernet adapter






« Last Edit: July 03, 2011, 12:22:54 pm by newmember » Logged
kolkjaer
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #63 on: July 21, 2011, 02:37:33 pm »


Got my firewall upgraded to version 2 RC3 and got it to work ..


Hey
I have followed the guide, but something seems to be wrong..

When I start the Open VPN client, and try to connect to my pfsense box all I get is this.


Thu Jul 21 21:31:20 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul  1 2011
Thu Jul 21 21:31:20 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Jul 21 21:31:20 2011 LZO compression initialized
Thu Jul 21 21:31:20 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Jul 21 21:31:20 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Jul 21 21:31:20 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Jul 21 21:31:20 2011 Local Options hash (VER=V4): '41690919'
Thu Jul 21 21:31:20 2011 Expected Remote Options hash (VER=V4): '530fdded'
Thu Jul 21 21:31:20 2011 UDPv4 link local: [undef]
Thu Jul 21 21:31:20 2011 UDPv4 link remote: XXX.XXX.XXX.XXX:1194

I using windows 7 x64 on the client, OpenVPN 2.1.4
Pfsense 1.2.3-RELEASE on a watchguard x700

Hop someone can help/give a hint
« Last Edit: July 21, 2011, 04:24:35 pm by kolkjaer » Logged
mabian
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #64 on: August 26, 2011, 11:45:23 am »

Hello, like others I'm a bit concerned about OpenVPN configuration on pfSense 2.0.

I imported a 1.2.2 pfSense configuration in a brand new PC with 2.0RC3; the configuration included an OpenVPN server configuration, which seems to have been imported correctly (I can see the certificate and the OpenVPN server is already set to use it); I still have to try the replaced VPN but my first question is where one should specify the server key and server certificate if a new OpenVPN with new certificates has to be created.

I guess a bit of nomenclature has changed and a new tutorial should be very welcome.

Anyway, main question, should I expect the existing migrated OpenVPN work when I'll replace the old PC with the new one or is there something that is known to need some tweaks when using a migrated 1.2 OpenVPN?

Thank you very much,
    Mario
Logged
salida
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #65 on: September 19, 2011, 07:59:54 am »


Got my firewall upgraded to version 2 RC3 and got it to work ..


Hey
I have followed the guide, but something seems to be wrong..

When I start the Open VPN client, and try to connect to my pfsense box all I get is this.


Thu Jul 21 21:31:20 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul  1 2011
Thu Jul 21 21:31:20 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Jul 21 21:31:20 2011 LZO compression initialized
Thu Jul 21 21:31:20 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Jul 21 21:31:20 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Jul 21 21:31:20 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Jul 21 21:31:20 2011 Local Options hash (VER=V4): '41690919'
Thu Jul 21 21:31:20 2011 Expected Remote Options hash (VER=V4): '530fdded'
Thu Jul 21 21:31:20 2011 UDPv4 link local: [undef]
Thu Jul 21 21:31:20 2011 UDPv4 link remote: XXX.XXX.XXX.XXX:1194

I using windows 7 x64 on the client, OpenVPN 2.1.4
Pfsense 1.2.3-RELEASE on a watchguard x700

Hop someone can help/give a hint


i am having the same issue as reported above
but i use pfsense 1.2.3 & windows 7 32 bit
Logged
mabian
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #66 on: September 19, 2011, 08:40:51 am »

Same here, I solved by simply enabling the OpenVPN profile - I disabled it after importing and I forgot to enable it.

- Mario
Logged
aranel
Newbie
*
Offline Offline

Posts: 21


View Profile
« Reply #67 on: December 27, 2011, 07:12:48 am »

Quote
23) Copy the WHOLE content of ca.crt into the "CA certificate" window
24) Copy the WHOLE content of server.crt into the "Server Certificate" window
25) Copy the WHOLE content of server.key into the "Server Key" window
26) Copy the WHOLE content of dh1024.pem into the "DH parameters" window
Where are these windows in 2.0.1?
Logged
damascene
Newbie
*
Offline Offline

Posts: 7


View Profile WWW
« Reply #68 on: December 31, 2011, 04:59:07 am »

Here is an updated version of this guide:

OpenVPN pfSense 2 - Installation guide for (Windows) Dummies :-) (road-warrior)

look at step 22 in green
« Last Edit: December 31, 2011, 05:04:12 am by damascene » Logged

suicidegybe
Jr. Member
**
Offline Offline

Posts: 43


View Profile
« Reply #69 on: August 09, 2012, 11:36:03 pm »

I get to step 7 and I gert system cannot find the path specified
1 files copied
1 files copied

Then step 8 says the same about can't find path and a bunch of stuff about can't open config file openssl/ssl/openssl.cnf error on line 123 of openssl-1..0.cnf 6412:error:0e065068:configuration file routines:STR_COPY:variable has no value:.\crypto\conf\conf_def .c:618:line 123

All this comand line stuff is new to me again so I have no idea what any of that means. I did this when I was a kid and have stopped up until about a year ago so still relearn. command propt stuff that is obviously not OpenVPN.

Please If someone can point me in the right direction I would love that.

Thanks
Logged
pirron
Jr. Member
**
Offline Offline

Posts: 30


View Profile
« Reply #70 on: December 28, 2012, 07:14:01 pm »


Got my firewall upgraded to version 2 RC3 and got it to work ..


Hey
I have followed the guide, but something seems to be wrong..

When I start the Open VPN client, and try to connect to my pfsense box all I get is this.


Thu Jul 21 21:31:20 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul  1 2011
Thu Jul 21 21:31:20 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Jul 21 21:31:20 2011 LZO compression initialized
Thu Jul 21 21:31:20 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Jul 21 21:31:20 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Jul 21 21:31:20 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Jul 21 21:31:20 2011 Local Options hash (VER=V4): '41690919'
Thu Jul 21 21:31:20 2011 Expected Remote Options hash (VER=V4): '530fdded'
Thu Jul 21 21:31:20 2011 UDPv4 link local: [undef]
Thu Jul 21 21:31:20 2011 UDPv4 link remote: XXX.XXX.XXX.XXX:1194

I using windows 7 x64 on the client, OpenVPN 2.1.4
Pfsense 1.2.3-RELEASE on a watchguard x700

Hop someone can help/give a hint


i am having the same issue as reported above
but i use pfsense 1.2.3 & windows 7 32 bit

Same here. I have no idea how to troubleshoot it.
Logged
puzzled
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #71 on: April 27, 2013, 10:44:33 pm »

I'm going bonkers.  When I go to edit vars.bat, I get the message that "edit" is not recognised as a command.  WHAT???  I'm using Vista.
Logged
Pages: 1 2 3 4 [5]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.032 seconds with 20 queries.