Configuring OpenVPN for a PreShared or Static Keys for Windows client to pfSense Server

Well, this is less secure, but easier. Configure two computers with one key to complete a tunnel from one computer to another. Here are some links that helped me.

Below is a client file that matches the server file that I need to connect to.

[vb]

remote someserver.domain.com
proto udp
port 9999

#note there is no 0 behind tun – that is for linux
dev tun
#IP ADDRESSING mode example
# Server IP: 10.10.2.1; Client (this computer) 10.10.2.2
#there is a limitation to use .2 only if .1 is the server for the tunnel

ifconfig 10.10.2.2 10.10.2.1
#Windows needs full quoted path if spaces exist
secret "C:\\Program Files (x86)\\OpenVPN\\config\\my-static.key"
verb 3
#verb 9 troubleshooting
comp-lzo
keepalive 15 60

#daemon ; not for windows
#if we assume that our local OpenVPN machine is on 192.168.22.0/24 network
#but pfSense already is already told what network we are on the setting page
#route 192.168.22.0 255.255.255.0
[/vb]