Project

General

Profile

Actions

Bug #69

closed

OpenVPN 'local' directive

Added by Chris Buechler over 15 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
VPN (Multiple Types)
Target version:
Start date:
08/31/2009
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

Description

The OpenVPN local directive is forced to be specified (by the interface drop down), forcing the OpenVPN server to use a specific IP address. That's usually desirable, but:

1) Need to list CARP and IP Alias type VIPs
2) Need an "any" option there to allow listening on all IPs, which is our current behavior, and needed in some circumstances.

Actions #1

Updated by Pierre POMES about 15 years ago

I take this one.

Actions #2

Updated by Scott Ullrich about 15 years ago

  • Assignee set to Pierre POMES
Actions #3

Updated by Scott Ullrich about 15 years ago

  • % Done changed from 0 to 50
Actions #4

Updated by Scott Ullrich about 15 years ago

  • % Done changed from 50 to 30
Actions #5

Updated by Pierre POMES about 15 years ago

  • Status changed from New to Feedback
  • % Done changed from 30 to 100
Actions #6

Updated by Pierre POMES about 15 years ago

  • Status changed from Feedback to Assigned
  • % Done changed from 100 to 90

Advice from Ermal:

Please use get_interface_ip() for friendly interfaces
and find_interface_ip() for real interfaces.

Do not roll your own as in:
312

313    // Get ip address for the requested interface
314    $lines = explode(' ', trim(shell_exec("ifconfig {$iface} | grep inet | grep -v inet6")));
315    $iface_ip = $lines[1];

Ticket reopened.

Actions #7

Updated by Pierre POMES about 15 years ago

  • Status changed from Assigned to Feedback
  • % Done changed from 90 to 100

/etc/inc/openvpn.inc now used get_interface_ip() when generating config file.

Actions #8

Updated by Chris Buechler over 14 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF