<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PfSense server, OVPN client …. ifconfig autoconfig?]]></title><description><![CDATA[<p dir="auto">I am doing some testing of an extremely simple OVPN setup, essentially using all the pfSense 2.02-Release default settings, and the OVPN Portable 1.8.2 for Windows:</p>
<p dir="auto">http://sourceforge.net/projects/ovpnp/</p>
<p dir="auto">At the moment I am just trying to hack it into operation, without fully understanding all the options. This works from my home computer, and here's the config:</p>
<blockquote>
<p dir="auto">pfSense, OpenVPN: Server</p>
<p dir="auto">Server mode: Peer to Peer (Shared key)<br />
Protocol: UDP<br />
Device mode: tun<br />
Interface: WAN<br />
Local port: 1194</p>
<p dir="auto">Shared key: (Generated by pfSense)<br />
Encryption algorithm: AES-128-CBC (128-bit)<br />
Hardware Crypto: No acceleration</p>
<p dir="auto">Tunnel network: 192.168.103.0/24<br />
Local network:  10.0.0.0/16<br />
Remote network: (blank)</p>
<p dir="auto">Concurrent connections: 16</p>
</blockquote>
<p dir="auto">OVPN config, is a text file named <strong>.\data\config\client.ovpn</strong></p>
<blockquote>
<p dir="auto">; Enable verbose logging<br />
verb 3</p>
<p dir="auto">; Remote site to VPN into<br />
remote 123.123.123.123<br />
dev tun<br />
proto udp<br />
nobind</p>
<p dir="auto">; No idea what this is for. OVPN wants it in client mode<br />
ifconfig 192.168.103.2 192.168.103.1</p>
<p dir="auto">; static.key is a text file containing the generated key from pfSense<br />
secret static.key</p>
<p dir="auto">; pfSense 2.0's default key cipher is not the default for Open VPN Portable, so must specify it<br />
cipher AES-128-CBC</p>
<p dir="auto">; The above will get you connected, but nothing will work without a route to the remote network.<br />
; This copypasta does the magic:<br />
route-method exe<br />
route-delay 2<br />
redirect-gateway def1</p>
</blockquote>
<p dir="auto">I do not understand why the OVPN client DEMANDS I use the ifconfig option in the client configuration. During startup it reads the configuration info for ifconfig from the server by itself anyway, and will proceed to whine at me, if the ifconfig settings don't match the server settings.</p>
<p dir="auto">Um, if the OVPN client is reading the settings from the server, why not just use whatever the server is telling you rather than requiring me to hardcode it in the config?</p>
<p dir="auto">However, there does not appear to be an "ifconfig auto" option.</p>
<p dir="auto">My concern here is that I don't want to be hardcoding client addresses into the configuration. The eventual goal is to create a universal installer that I can hand our staff, and say "Install this on your home computer for remote desktop access".</p>
<p dir="auto">I do not want to have to be creating individual installers with separate custom ifconfig settings for each client, to keep people from accidentally using the same remote address, and then nothing works due to overlapping remote addresses.</p>
<p dir="auto">Is there some sort of "DHCP autoconfig" for the client ifconfig address?</p>
]]></description><link>https://forum.netgate.com/topic/54848/pfsense-server-ovpn-client-ifconfig-autoconfig</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 02:12:01 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/54848.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Apr 2013 09:42:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PfSense server, OVPN client …. ifconfig autoconfig? on Fri, 05 Apr 2013 14:30:36 GMT]]></title><description><![CDATA[<p dir="auto">You're using shared key mode with tun, which requires that you set an IP with ifconfig.</p>
<p dir="auto">If you use a server mode (ssl/tls) then it can automatically supply an IP to clients.</p>
]]></description><link>https://forum.netgate.com/post/388145</link><guid isPermaLink="true">https://forum.netgate.com/post/388145</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Fri, 05 Apr 2013 14:30:36 GMT</pubDate></item></channel></rss>