From 71a60411a1fdc860e39bb993f3099a91bfa82596 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 28 May 2022 09:33:05 +0200 Subject: [PATCH] Use newer radius port 1812 by default 1645 has been marked as "old-radius" for a long time. --- docs/html/manual.html | 2 +- docs/manpages/startup-config.5 | 4 ++-- docs/src/html/manual.md | 2 +- docs/src/man/startup-config.5.md | 2 +- etc/startup-config.default | 4 ++-- l2tpns.h | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/html/manual.html b/docs/html/manual.html index 4da8f96..3600459 100644 --- a/docs/html/manual.html +++ b/docs/html/manual.html @@ -77,7 +77,7 @@
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)

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.

diff --git a/docs/manpages/startup-config.5 b/docs/manpages/startup-config.5 index 388d3df..050179c 100644 --- a/docs/manpages/startup-config.5 +++ b/docs/manpages/startup-config.5 @@ -318,8 +318,8 @@ separate identifier). 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. +If no RADIUS ports are given, the authentication port defaults to 1812, +and the accounting port to 1813. .PP \f[B]radius_accounting\f[R] (boolean) .PP diff --git a/docs/src/html/manual.md b/docs/src/html/manual.md index 76521a3..262b3e9 100644 --- a/docs/src/html/manual.md +++ b/docs/src/html/manual.md @@ -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 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. + to 1812, and the accounting port to 1813. `radius_accounting` (boolean) diff --git a/docs/src/man/startup-config.5.md b/docs/src/man/startup-config.5.md index b9cd9df..d460300 100644 --- a/docs/src/man/startup-config.5.md +++ b/docs/src/man/startup-config.5.md @@ -197,7 +197,7 @@ The following `variables` may be set: **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) diff --git a/etc/startup-config.default b/etc/startup-config.default index cb2ce09..190b535 100644 --- a/etc/startup-config.default +++ b/etc/startup-config.default @@ -27,9 +27,9 @@ set secondary_dns 10.0.0.2 # Can have multiple radius server entries, but ony one radius secret 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_port 1645 +#set secondary_radius_port 1812 set radius_secret "secret" # Acceptable authentication types (pap, chap) in order of preference diff --git a/l2tpns.h b/l2tpns.h index 46e6ca7..0a443ad 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -105,7 +105,7 @@ #define ACCT_TIME 3000 // 5 minute accounting interval #define ACCT_SHUT_TIME 600 // 1 minute for counters of shutdown sessions #define L2TPPORT 1701 // L2TP port -#define RADPORT 1645 // old radius port... +#define RADPORT 1812 // radius port #define DAEPORT 3799 // DAE port #define PKTARP 0x0806 // ARP packet type #define PKTIP 0x0800 // IPv4 packet type