Merge branch 'default_radius_port' into 'master'
Use newer radius port 1812 by default See merge request l2tpns/l2tpns!15
This commit is contained in:
commit
5317b7aca6
6 changed files with 8 additions and 8 deletions
|
|
@ -77,7 +77,7 @@
|
||||||
</div>
|
</div>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><code>primary_radius_port</code> (short); <code>secondary_radius_port</code> (short)</dt>
|
<dt><code>primary_radius_port</code> (short); <code>secondary_radius_port</code> (short)</dt>
|
||||||
<dd><p>Sets the authentication ports for the primary and secondary RADIUS servers. The accounting port is one more than the authentication port. If no RADIUS ports are given, the authentication port defaults to 1645, and the accounting port to 1646.</p>
|
<dd><p>Sets the authentication ports for the primary and secondary RADIUS servers. The accounting port is one more than the authentication port. If no RADIUS ports are given, the authentication port defaults to 1812, and the accounting port to 1813.</p>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><code>radius_accounting</code> (boolean)</dt>
|
<dt><code>radius_accounting</code> (boolean)</dt>
|
||||||
<dd><p>If set to true, then RADIUS accounting packets will be sent. This means that a Start record will be sent when the session is successfully authenticated, and a Stop record will be sent when the session is closed.</p>
|
<dd><p>If set to true, then RADIUS accounting packets will be sent. This means that a Start record will be sent when the session is successfully authenticated, and a Stop record will be sent when the session is closed.</p>
|
||||||
|
|
|
||||||
|
|
@ -318,8 +318,8 @@ separate identifier).
|
||||||
Sets the authentication ports for the primary and secondary RADIUS
|
Sets the authentication ports for the primary and secondary RADIUS
|
||||||
servers.
|
servers.
|
||||||
The accounting port is one more than the authentication port.
|
The accounting port is one more than the authentication port.
|
||||||
If no RADIUS ports are given, the authentication port defaults to 1645,
|
If no RADIUS ports are given, the authentication port defaults to 1812,
|
||||||
and the accounting port to 1646.
|
and the accounting port to 1813.
|
||||||
.PP
|
.PP
|
||||||
\f[B]radius_accounting\f[R] (boolean)
|
\f[B]radius_accounting\f[R] (boolean)
|
||||||
.PP
|
.PP
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ should be set by a line like: set configstring \"value\" set ipaddress
|
||||||
: Sets the authentication ports for the primary and secondary RADIUS
|
: Sets the authentication ports for the primary and secondary RADIUS
|
||||||
servers. The accounting port is one more than the authentication
|
servers. The accounting port is one more than the authentication
|
||||||
port. If no RADIUS ports are given, the authentication port defaults
|
port. If no RADIUS ports are given, the authentication port defaults
|
||||||
to 1645, and the accounting port to 1646.
|
to 1812, and the accounting port to 1813.
|
||||||
|
|
||||||
`radius_accounting` (boolean)
|
`radius_accounting` (boolean)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@ The following `variables` may be set:
|
||||||
|
|
||||||
**primary\_radius\_port** (short), **secondary\_radius\_port** (short)
|
**primary\_radius\_port** (short), **secondary\_radius\_port** (short)
|
||||||
|
|
||||||
Sets the authentication ports for the primary and secondary RADIUS servers. The accounting port is one more than the authentication port. If no RADIUS ports are given, the authentication port defaults to 1645, and the accounting port to 1646.
|
Sets the authentication ports for the primary and secondary RADIUS servers. The accounting port is one more than the authentication port. If no RADIUS ports are given, the authentication port defaults to 1812, and the accounting port to 1813.
|
||||||
|
|
||||||
**radius\_accounting** (boolean)
|
**radius\_accounting** (boolean)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,9 @@ set secondary_dns 10.0.0.2
|
||||||
|
|
||||||
# Can have multiple radius server entries, but ony one radius secret
|
# Can have multiple radius server entries, but ony one radius secret
|
||||||
set primary_radius 10.0.0.3
|
set primary_radius 10.0.0.3
|
||||||
#set primary_radius_port 1645
|
#set primary_radius_port 1812
|
||||||
#set secondary_radius 0.0.0.0
|
#set secondary_radius 0.0.0.0
|
||||||
#set secondary_radius_port 1645
|
#set secondary_radius_port 1812
|
||||||
set radius_secret "secret"
|
set radius_secret "secret"
|
||||||
|
|
||||||
# Acceptable authentication types (pap, chap) in order of preference
|
# Acceptable authentication types (pap, chap) in order of preference
|
||||||
|
|
|
||||||
2
l2tpns.h
2
l2tpns.h
|
|
@ -105,7 +105,7 @@
|
||||||
#define ACCT_TIME 3000 // 5 minute accounting interval
|
#define ACCT_TIME 3000 // 5 minute accounting interval
|
||||||
#define ACCT_SHUT_TIME 600 // 1 minute for counters of shutdown sessions
|
#define ACCT_SHUT_TIME 600 // 1 minute for counters of shutdown sessions
|
||||||
#define L2TPPORT 1701 // L2TP port
|
#define L2TPPORT 1701 // L2TP port
|
||||||
#define RADPORT 1645 // old radius port...
|
#define RADPORT 1812 // radius port
|
||||||
#define DAEPORT 3799 // DAE port
|
#define DAEPORT 3799 // DAE port
|
||||||
#define PKTARP 0x0806 // ARP packet type
|
#define PKTARP 0x0806 // ARP packet type
|
||||||
#define PKTIP 0x0800 // IPv4 packet type
|
#define PKTIP 0x0800 // IPv4 packet type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue