aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/freeradius.inc12
-rw-r--r--config/freeradius.xml18
2 files changed, 26 insertions, 4 deletions
diff --git a/config/freeradius.inc b/config/freeradius.inc
index b7e4208c..4a250121 100644
--- a/config/freeradius.inc
+++ b/config/freeradius.inc
@@ -450,7 +450,9 @@ function freeradius_users_resync() {
$username = $user['username'];
$password = $user['password'];
$multiconnect = $user['multiconnect'];
- $ip = $user['ip'];
+ $ip = $user['ip'];
+ $subnetmask = $user['subnetmask'];
+ $gateway = $user['gateway'];
$userexpiration=$user['expiration'];
$sessiontime=$user['sessiontime'];
$onlinetime=$user['onlinetime'];
@@ -471,6 +473,14 @@ function freeradius_users_resync() {
if ($atrib <> '') { $atrib .=","; }
$atrib .="\r\n\tFramed-IP-Address = $ip";
}
+ if ($subnetmask <> '') {
+ if ($atrib <> '') { $atrib .=","; }
+ $atrib .="\r\n\tFramed-IP-Netmask = $subnetmask";
+ }
+ if ($gateway <> '') {
+ if ($atrib <> '') { $atrib .=","; }
+ $atrib .="\r\n\tFramed-Routing = $gateway";
+ }
if ($sessiontime <> '') {
if ($atrib <> '') { $atrib .=","; }
$atrib .="\r\n\tSession-Timeout := $sessiontime";
diff --git a/config/freeradius.xml b/config/freeradius.xml
index 6d7c0a5f..68368048 100644
--- a/config/freeradius.xml
+++ b/config/freeradius.xml
@@ -145,10 +145,22 @@
<field>
<fieldname>ip</fieldname>
<fielddescr>IP address</fielddescr>
- <description>If you want this user to be assigned a specific IP address from radius, enter the IP
+ <description>Framed-IP-Address. If you want this user to be assigned a specific IP address from radius, enter the IP
address here. Continuous IP address is available with "+" suffix(example:192.168.1.5+. It may help for assigning the
-different IP address to multiple simultaneous connections). IMPORTANT, you MUST ener an IP address here if you checked
-"RADIUS issued IP's" on vpn pptp or vpn pppoe configuration.</description>
+different IP address to multiple simultaneous connections). IMPORTANT, you MUST enter an IP address here if you checked
+"RADIUS issued IP" on vpn pptp or vpn pppoe configuration.</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fieldname>subnetmask</fieldname>
+ <fielddescr>subnetmask</fielddescr>
+ <description>Framed-IP-Netmask</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fieldname>gateway</fieldname>
+ <fielddescr>gateway</fielddescr>
+ <description>Framed-Routing</description>
<type>input</type>
</field>
<field>