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.
- making the key:
- using the key in the client:
- installing client:
- put the .ovpn files and the shared key in c:\Program Files (x86)\OpenVPN\config directory
- A link for PRECICELY what we are looking for to connect Windows OpenVPN to pfSense shared config. It is working but can’t ping remote (yet)
Below is a client file that matches the server file that I need to connect to.
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