Bug #69
closed
OpenVPN 'local' directive
Added by Chris Buechler about 15 years ago.
Updated over 14 years ago.
Category:
VPN (Multiple Types)
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.
- Assignee set to Pierre POMES
- % Done changed from 0 to 50
- % Done changed from 50 to 30
- Status changed from New to Feedback
- % Done changed from 30 to 100
- 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.
- 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.
- Status changed from Feedback to Resolved
Also available in: Atom
PDF