Project

General

Profile

Bug #7031

Cannot configure OpenVPN on a DHCP interface that has not received an IP address

Added by Phillip Davis 3 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OpenVPN
Target version:
Start date:
12/22/2016
Due date:
% Done:

100%

Affected version:
All
Affected Architecture:

Description

If the interface that an OpenVPN server or client is being configured on uses DHCP and has not yet received an IP address, then the OpenVPN Server/Client validation complains "An IPv4 protocol was selected, but the selected interface has no IPv4 address."
Similar if a gateway group is chosen that contains 1 or more gateways that use DHCP, and none of those gateways have yet got an IP address.

The same sort of thing happens when using an IPv6 protocol and interface or gateway group that uses DHCP6 and has not yet received an IPv6 address.

Forum: https://forum.pfsense.org/index.php?topic=122958.0

And I know this has been discussed before, so there may be an issue already about this, but I can't find it.

It is annoying specially when setting up a system that is not yet online. It would be nice to allow this case through, assuming that if the interface/gateway group uses DHCP/DHCP6 then it will in future get an IPv4/IPv6 address.

Associated revisions

Revision 0f2cf2a1
Added by Phillip Davis 3 months ago

Fix #7031 Allow interfaces that use DHCP for OpenVPN

even though the interface (or gateway group) has not yet actually
received an IP address.
This is useful when setting up a new system that is currently offline.

Revision df84832c
Added by Phillip Davis 3 months ago

Fix #7031 Allow interfaces that use DHCP for OpenVPN

even though the interface (or gateway group) has not yet actually
received an IP address.
This is useful when setting up a new system that is currently offline.

(cherry picked from commit 0f2cf2a1c47192e8394cbcec6ee291b7e753ac4b)

History

#1 Updated by Phillip Davis 3 months ago

#2 Updated by Renato Botelho 3 months ago

  • Status changed from New to Feedback
  • Target version set to 2.4.0
  • % Done changed from 0 to 100

PR has been merged, thanks!

#3 Updated by Phillip Davis 2 months ago

This just needs an independent person to test it.

#4 Updated by Jim Pingle 2 months ago

  • Status changed from Feedback to Resolved

Works

#5 Updated by Jim Pingle about 1 month ago

  • Target version changed from 2.4.0 to 2.3.3

Also available in: Atom PDF