diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-05 19:16:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-05 19:16:57 +0000 |
commit | 5dfdc1fbcf7aa61849272490e465697111af44e7 (patch) | |
tree | c7b64458c86085a9cc167d224fbe631943168dbd /etc/inc | |
parent | 408d800c5ebab879bb795834470c9ac23db02841 (diff) | |
download | pfsense-5dfdc1fbcf7aa61849272490e465697111af44e7.zip pfsense-5dfdc1fbcf7aa61849272490e465697111af44e7.tar.gz |
Allow issuing of PPOE ips from RADIUS server
Ticket #709
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/vpn.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 4a58a97..b0ef960 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -858,11 +858,18 @@ EOD; $clientip = long2ip(ip2long($pppoecfg['remoteip']) + $i); $ngif = "ng" . ($i+1); + if($pppoecfg['radius']['issueradiusips']) { + $isssue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 {$clientip}/32"; + } else { + $isssue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 0.0.0.0/0"; + $isssue_ip_type .="\nset ipcp yes radius-ip"; + } + $mpdconf .= <<<EOD pppoe{$i}: new -i {$ngif} pppoe{$i} pppoe{$i} - set ipcp ranges {$pppoecfg['localip']}/32 0.0.0.0/0 + {$isssue_ip_type} load pppoe_standart EOD; |