]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remaining Packet-* -> Net.*
authorNick Porter <nick@portercomputing.co.uk>
Mon, 4 Sep 2023 18:39:00 +0000 (19:39 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 4 Sep 2023 18:39:00 +0000 (19:39 +0100)
15 files changed:
debian/freeradius.logrotate
doc/antora/modules/howto/pages/modules/sqlippool/index.adoc
doc/antora/modules/installation/pages/upgrade.adoc
doc/antora/modules/raddb/pages/mods-available/detail.adoc
doc/antora/modules/raddb/pages/mods-available/detail.log.adoc
doc/antora/modules/raddb/pages/mods-available/linelog.adoc
doc/antora/modules/raddb/pages/mods-available/redis_ippool.adoc
doc/antora/modules/raddb/pages/sites-available/dynamic-clients.adoc
doc/antora/modules/reference/pages/man/radmin.adoc
doc/antora/modules/tutorials/pages/variables.adoc
man/man8/raddebug.8
redhat/freeradius-logrotate
scripts/logrotate/freeradius
scripts/util/raddebug
share/dictionary/freeradius/dictionary.freeradius.internal

index 74830bd2a952638a3aa502c16616e1bc247aa573..72d5d27138dd8f91043005fa4000a346d858d042 100644 (file)
@@ -31,7 +31,7 @@
 # There are different detail-rotating strategies you can use.  One is
 # to write to a single detail file per IP and use the rotate config
 # below.  Another is to write to a daily detail file per IP with:
-#     detailfile = ${radacctdir}/%{Packet-Src-IP-Address}/%Y%m%d-detail
+#     detailfile = ${radacctdir}/%{Net.Src.IP}/%Y%m%d-detail
 # (or similar) in radiusd.conf, without rotation.  If you go with the
 # second technique, you will need another cron job that removes old
 # detail files.  You do not need to comment out the below for method #2.
index d378eea28eb54dc197ecdddc28423873dca8ee7e..c40a965fb7da82bcf795f8c880b3e9fe1769e8f9 100644 (file)
@@ -671,7 +671,7 @@ where this information is given in the request.
 
 . The `NAS-IP-Address` has been provided. If not then you may need to
 reconfigure your NAS to provide this or instantiate this attribute from
-`Packet-Src-IP-Address` using an unlang policy in FreeRADIUS. Otherwise when
+`Net.Src.IP` using an unlang policy in FreeRADIUS. Otherwise when
 the NAS reboots you will not be able to match the affected IP addresses to the
 device.
 
index 49cc2b648298e534d77fb7bef8dc27ccb393eed0..1a776aa0665bb55d2d0f43c7cc2300cfe08c2702 100644 (file)
@@ -427,7 +427,7 @@ load-balance {
 
 [source,unlang]
 ----
-load-balance "%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}" {
+load-balance "%{Net.Src.IP}" {
     home_server_1
     home_server_2
     home_server_3
@@ -438,7 +438,7 @@ load-balance "%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}" {
 
 [source,unlang]
 ----
-load-balance "%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}-%{Packet-Src-Port}" {
+load-balance "%%{Net.Src.IP}-%{Net.Src.Port}" {
     home_server_1
     home_server_2
     home_server_3
index b46ecbdaa137f3e9b51f2143865752198d9cdaa7..1a1910304213601043f86a79bc81e8c848a51fcb 100644 (file)
@@ -115,7 +115,7 @@ NOTE: The attributes should be listed one to a line.
 
 ```
 detail {
-       filename = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y-%m-%d
+       filename = ${radacctdir}/%{Net.Src.IP}/detail-%Y-%m-%d
 #      filename = ${radacctdir}/detail
        escape_filenames = no
        permissions = 0600
index 0518f7fc7b5f2be8f8dbb2a1a9347cd3a493f9f1..756d04d307594229de4d6911436ba5465b6b6cde 100644 (file)
@@ -65,25 +65,25 @@ See the example in `raddb/sites-available/default`.
 
 ```
 detail auth_log {
-       filename = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y-%m-%d
+       filename = ${radacctdir}/%{Net.Src.IP-Address}/auth-detail-%Y-%m-%d
        permissions = 0600
        suppress {
                User-Password
        }
 }
 detail reply_log {
-       filename = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y-%m-%d
+       filename = ${radacctdir}/%{Net.Src.IP}/reply-detail-%Y-%m-%d
        permissions = 0600
 }
 detail pre_proxy_log {
-       filename = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y-%m-%d
+       filename = ${radacctdir}/%{Net.Src.IP}/pre-proxy-detail-%Y-%m-%d
        permissions = 0600
 #      suppress {
 #              User-Password
 #      }
 }
 detail post_proxy_log {
-       filename = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y-%m-%d
+       filename = ${radacctdir}/%{Net.Src.IP}/post-proxy-detail-%Y-%m-%d
        permissions = 0600
 }
 ```
index c9da801986e7ead6375813b9d00a51856a3bf3fa..297eb5c7c2df82f1e7dbbc7a89c786543c00b296 100644 (file)
@@ -396,9 +396,9 @@ linelog log_accounting {
                Start = "Connect: [%{User-Name}] (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} ip %{Framed-IP-Address})"
                Stop = "Disconnect: [%{User-Name}] (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} ip %{Framed-IP-Address}) %{Acct-Session-Time} seconds"
                Interim-Update = ""
-               Accounting-On = "NAS %{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}} (%{%{NAS-IP-Address}:-%{NAS-IPv6-Address}}) just came online"
-               Accounting-Off = "NAS %{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}} (%{%{NAS-IP-Address}:-%{NAS-IPv6-Address}}) just went offline"
-               unknown = "NAS %{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}} (%{%{NAS-IP-Address}:-%{NAS-IPv6-Address}}) sent unknown Acct-Status-Type %{Acct-Status-Type}"
+               Accounting-On = "NAS %%{Net.Src.IP} (%{%{NAS-IP-Address}:-%{NAS-IPv6-Address}}) just came online"
+               Accounting-Off = "NAS %{Net.Src.IP} (%{%{NAS-IP-Address}:-%{NAS-IPv6-Address}}) just went offline"
+               unknown = "NAS %{Net.Src.IP} (%{%{NAS-IP-Address}:-%{NAS-IPv6-Address}}) sent unknown Acct-Status-Type %{Acct-Status-Type}"
        }
 }
 ```
index 888c3b262428a16a9c820ccd8960b4cce699ce0e..2aaefaa7b8e2199afe67b5e79f7a3bd1af6a45af 100644 (file)
@@ -147,7 +147,7 @@ redis_ippool {
        owner = &Client-Hardware-Address
 #      owner = "%{%{Client-Identifier}:-%{Client-Hardware-Address}}"
 #      owner = "%{Vendor-Specific.ADSL-Forum.Agent-Circuit-ID} %{Calling-Station-Id}"
-       requested_address = "%{%{Requested-IP-Address}:-%{Packet-Src-IP-Address}}"
+       requested_address = "%{%{Requested-IP-Address}:-%{Net.Src.IP}}"
 #      ipv4_integer = yes
        allocated_address_attr = &reply.Your-IP-Address
        range_attr = &reply.IP-Pool.Range
index 35d78a7fee4e751fdc9b10510b74ca4f9f7819aa..90a7107901e81d790a30f55ef57d1055f55cfe01 100644 (file)
@@ -270,10 +270,10 @@ server dynamic_clients {
        }
        new client {
                &control += {
-                       &FreeRADIUS-Client-IP-Address = "%{Packet-Src-IP-Address}"
+                       &FreeRADIUS-Client-IP-Address = "%{Net.Src.IP}"
                        &FreeRADIUS-Client-Require-MA = no
                        &FreeRADIUS-Client-Secret = "testing123"
-                       &FreeRADIUS-Client-Shortname = "%{Packet-Src-IP-Address}"
+                       &FreeRADIUS-Client-Shortname = "%{Net.Src.IP}"
                        &FreeRADIUS-Client-NAS-Type = "other"
                }
                ok
index e3d713b5a7f4ec1cb529c87b046b4d7bc97ed7f5..1ce54aa56c863e46b4980315425216abbcc90d67 100644 (file)
@@ -39,7 +39,7 @@ amount of control over the server.
 
 The following command-line options are accepted by the program.
 
-*-d config_directory*:: 
+*-d config_directory*::
   Defaults to _/etc/raddb_. *radmin* looks here for the server
   configuration files to find the "listen" section that defines the
   control socket filename.
@@ -109,7 +109,7 @@ prompt for more information.
 +
 Only one debug condition can be active at a time.
 
-*debug condition '((User-Name == ""bob"") || (Packet-Src-IP-Address == 192.0.2.22))'*::
+*debug condition '((User-Name == ""bob"") || (Net.Src.IP == 192.0.2.22))'*::
   A more complex condition that enables debugging output for requests
   containing User-Name "bob", or requests that originate from source IP
   address 192.0.2.22.
index 25e97bd7e981135c93b53114bbdf9d98606c5cad..3c9d003b40c3830a36234fc57014695d4bf56978 100644 (file)
@@ -39,7 +39,7 @@ has a configuration entry named "filename", which by default has the
 following value:
 
 ----------------------------------------------------------------
-filename = ${radacctdir}/%{Packet-Src-IP-Address}/detail-%Y%m%d
+filename = ${radacctdir}/%{Net.Src.IP}/detail-%Y%m%d
 ----------------------------------------------------------------
 
 The configuration entry is composed of two kinds of variable expansion.
index bab7c90e710b110c10b6fd8fb4ba7c748bba7aae..7da8588b7ba32e5ee6b75e381b0935a08f715e97 100644 (file)
@@ -68,7 +68,7 @@ Show debug output for the client having the given IPv4 address.  This
 option is equivalent to using:
 .br
 .in +0.3i
--c '(Packet-Src-IP-Address == ipv4-address)'
+-c '(Net.Src.IP == ipv4-address)'
 .in -0.3i
 .IP "\-d \fIconfig directory\fP"
 The radius configuration directory, usually /etc/raddb.  See the
@@ -80,7 +80,7 @@ Show debug output for the client having the given IPv6 address.  This
 option is equivalent to using:
 .br
 .in +0.3i
--c '(Packet-Src-IPv6-Address == ipv6-address)'
+-c '(Net.Src.IPv6 == ipv6-address)'
 .in -0.3i
 .IP \-t\ \fItimeout\fP
 Stop printing debug output after "timeout" seconds.  The default
index 15f842479bdc17c06abff4bb9ae8fdca41aab39e..dba48935044ada0bc4d6feee34edc88347795ac3 100644 (file)
@@ -29,7 +29,7 @@
 # There are different detail-rotating strategies you can use.  One is
 # to write to a single detail file per IP and use the rotate config
 # below.  Another is to write to a daily detail file per IP with:
-#     detailfile = ${radacctdir}/%{Packet-Src-IP-Address}/%Y%m%d-detail
+#     detailfile = ${radacctdir}/%{Net.Src.IP}/%Y%m%d-detail
 # (or similar) in radiusd.conf, without rotation.  If you go with the
 # second technique, you will need another cron job that removes old
 # detail files.  You do not need to comment out the below for method #2.
index ca3ca604e7be8fa9deaeedf3a369bb5f3eff8bec..8746a93811983cebcd3178483c46ec07a95749ba 100644 (file)
@@ -33,7 +33,7 @@
 # There are different detail-rotating strategies you can use.  One is
 # to write to a single detail file per IP and use the rotate config
 # below.  Another is to write to a daily detail file per IP with:
-#     detailfile = ${radacctdir}/%{Packet-Src-IP-Address}/%Y%m%d-detail
+#     detailfile = ${radacctdir}/%{Net.Src.IP}/%Y%m%d-detail
 # (or similar) in radiusd.conf, without rotation.  If you go with the
 # second technique, you will need another cron job that removes old
 # detail files.  You do not need to comment out the below for method #2.
index 9dedc32f7927214a10d4c0b51835b16197fbc4c2..530d8945f50d0e4d9902fe44eaded05d81b0bb45 100755 (executable)
@@ -47,14 +47,14 @@ do
        ;;
   D)    extra="$extra -D $OPTARG"
        ;;
-  i)    x="(Packet-Src-IP-Address == $OPTARG)"
+  i)    x="(Net.Src.IP == $OPTARG)"
        if [ "$condition" = "" ]; then
            condition="$x"
        else
          condition="$condition && $x"
        fi
        ;;
-  I)   x="(Packet-Src-IPv6-Address == $OPTARG)"
+  I)   x="(Net.Src.IP == $OPTARG)"
        if [ "$condition" = "" ]; then
            condition="$x"
        else
index e89c6256779f7d5d3c2d4bc9111ab15a53b5bf4d..d322469ba8cd6d31d5188b2802faa0dee9a82520 100644 (file)
@@ -116,7 +116,7 @@ ATTRIBUTE   Realm                                   1017    string
 
 ATTRIBUTE      Acct-Session-Start-Time                 1019    date
 ATTRIBUTE      Acct-Unique-Session-Id                  1020    string
-# 1021 was Client-IP-Address.  Just use Packet-Src-IP-Address
+# 1021 was Client-IP-Address.  Just use Net.Src.IP
 ATTRIBUTE      LDAP-UserDN                             1022    string
 ATTRIBUTE      SQL-User-Name                           1023    string