I have a number of OpenVPN client sessions set up (where my pfSense connects to a remote OpenVPN server as a client)

Today I needed to switch one from TCP to UDP and received "An IPv4 protocol was selected, but the selected interface has no IPv4 address". The interface was properly configured using DHCPv4, and therefore has no IP address.

After banging my head comparing this VPN with other established/working VPNs and getting no-where, I started getting through the code to find this gem:

pfsense /usr/local/www/vpn_openvpn_client.php

} elseif ((stristr($pconfig['protocol'], "6") === false) && !get_interface_ip($iv_iface) && ($pconfig['interface'] != "any")) { $input_errors[] = gettext("An IPv4 protocol was selected, but the selected interface has no IPv4 address.");

So basically it is currently impossible to create or modify any OpenVPN client pipe that uses DHCP, as the IP (which isn't known until the OpenVPN client connects, and is dynamic) must be hard-coded into the interface before the connection is created.

Commenting out the offending PHP allowed me to save changes and successfully connect to the VPN.

While this code likely makes sense when setting up and OpenVPN server, it should not apply when setting up an OpenVPN client.

Am I missing something or is this a bug?

--
Dave Warren
http://www.hireahit.com/
http://ca.linkedin.com/in/davejwarren

_______________________________________________
List mailing list
[email protected]
http://lists.pfsense.org/mailman/listinfo/list

Reply via email to