From: Matthew Newton Date: Wed, 8 Nov 2017 13:57:20 +0000 (+0000) Subject: add v4 proxying example to sites-available/default X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a7c9622867534aa4e9043b87cdb06172ce676bd;p=thirdparty%2Ffreeradius-server.git add v4 proxying example to sites-available/default --- diff --git a/raddb/sites-available/default b/raddb/sites-available/default index acad8470eb9..a4bf06b19b4 100644 --- a/raddb/sites-available/default +++ b/raddb/sites-available/default @@ -147,6 +147,18 @@ recv Access-Request { # # operator-name + # + # Proxying example + # + # The following example will proxy the request if the + # username ends in example.com. + # +# if (&User-Name =~ /@example\.com$/) { +# update control { +# Auth-Type := "proxy-example.com" +# } +# } + # # If you want to generate CUI for some clients that do # not send proper CUI requests, then uncomment cui below @@ -393,6 +405,41 @@ authenticate eap { } +# +# Proxying +# + +# +# The following example shows how proxying to three remote servers +# can be configured. +# +# The Auth-Type attribute would need to be set to +# "proxy-example.com" above. Define the remote servers in +# raddb/mods-availble/radius. +# + +#authenticate proxy-example.com { +# # +# # Log the request before proxying. +# # +# pre_proxy_log +# +# # +# # Send the request to remote RADIUS servers, with +# # fail-over if no response. +# # +# redundant { +# radius1.example.com +# radius2.example.com +# } +# +# # +# # Log the reply after proxying. +# # +# post_proxy_log.post-proxy +#} + + ###################################################################### #