Skip to content

Commit

Permalink
pfSense-pkg-freeradius3: Allow 127.0.0.1 for interface selection
Browse files Browse the repository at this point in the history
The configuration of using the radius server and a single client on
the loopback device should be allowed.  This allows a secure
method for using OTP tokens on a single firewall.

Signed-off-by: Jason Wessel <jason@wesselworks.com>
  • Loading branch information
Jason Wessel committed Aug 3, 2017
1 parent b8e891a commit 685180c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4040,7 +4040,7 @@ function freeradius_validate_interfaces($post, &$input_errors) {
if ($post['varinterfaceipversion'] == 'ipv6addr' && !is_ipaddrv6($post['varinterfaceip'])) {
$input_errors[] = "The 'Interface IP Address' must contain a valid IPv6 address when IPv6 is selected under 'IP Version'.";
}
if (!is_ipaddr_configured($post['varinterfaceip'])) {
if (!is_ipaddr_configured($post['varinterfaceip']) && $post['varinterfaceip'] != "127.0.0.1") {
$input_errors[] = "The 'Interface IP Address' must contain a valid, locally configured IP address!";
}
}
Expand Down

0 comments on commit 685180c

Please sign in to comment.