Figure 9-1 How Proxy Service Works
1. The NAS sends an accounting-request to the forwarding server.
2. The forwarding server writes the request to its accounting log.
3. The forwarding server forwards the request to the remote server.
4. The remote server logs the accounting-request and sends an accounting-response to the forwarding server.
5. The forwarding server sends the accounting response to the NAS.
Note ¯ If the request is forwarded across a chain of forwarding servers, the accounting records are stored on all servers in the chain.
¯ If isolde@cornwall.net is the user login, cornwall.net is the realm.
¯ If sequoyah@cheroke e is the user login, cherokee is the realm.
A domain name is frequently used as the named realm to provide uniqueness.
tracy.dog.net frtp67w3g3$1 2095559288
sanramon.dog.net xst1ru83vm7s3yhp 9255554613
Framed-IP-Address = 255.255.255.254,
Note ¯ Usernames with embedded @ s--such as tristram@cornwall.net --are treated as proxy realms.
Note ¯ RADIUS 2.1 currently supports the old username style, realm/ user. Lucent InterNetworking Systems might not support this style in future releases and recommends that you avoid such usernames. The at sign (@ ) always takes precedence over the slash sign (/ ). As a consequence, the radiusd daemon interprets a/b@c as user a/b in the named realm c. Lucent InterNetworking Systems strongly recommends avoiding such mixed usage.
Note ¯ The Lucent RADIUS Proxy-State attribute consists of an opaque sequence of octets and is subject to change without notice. The attribute value is only meaningful to the server that sent the attribute.
Figure 9-2 One Practical Implementation of Proxy Service
Note ¯ You must ensure that the servers in a proxy system do not forward to each other, which creates a forwarding loop that passes packets back and forth between them. For example, this situation occurs if a proxy file has an incorrect entry that associates the realm of the next server in the proxy chain with the IP address of the previous server in the chain.
Caution ¯ Because the proxy file contains the shared secrets for the proxy servers, verify that only root users have read and write access to the file.
#IP address shared secret realm or keywords
#-------------- ----------------- ------- -----------------
radius.edu.net vdlk4%#p67w3g&g1 edu.net
s134.net.com ru83vm7xst1shm!p 5551234 1812 1813
net54.edu.net 2hbtr5$w*3m7xstt 5555624
s134.net.com x56jy76mgpkst 5551134
rad.edu.com ch5#5eb716erth edu.com 1645
rad7.com.net lx4zDFapa3ep com.net 1645 1646 old
eg.edu.net e997asepdflj edu.net old secure
¯ old --This keyword causes the server to strip the realm from the login name and not attach Proxy-State when forwarding access-requests. Use this keyword when you are forwarding requests to servers with RADIUS versions older than 2.1.
Caution ¯ Use the secure keyword with only if you want certain users to be granted administrative privileges.
¯ secure --This keyword enables the remote server to authorize someone to log in to your NAS with administrative privileges. If this keyword is not present, an access-accept message from the forwarding server to the client that grants administrative access (either Service-Type = Administrative-User or Service-Type = NAS-Prompt-User) is sent to the client as an access-reject.
The RADIUS server generates a syslog message similar to the following (shown on three lines for clarity):
Jul 10 21:10:00 ra radius[14870]: remote server 192.168.96.6/1645.4 returned insecure service for client 172.16.3.24/1039.17, sending reject instead
¯ ipass --This keyword instructs the server to use the iPass protocol rather than the RADIUS protocol to communicate with the remote server. See Appendix E, "Contact Information for Third-Party Products," for information on how to contact iPass, Inc. for more information.
center.com.net e199aespfdx4 DEFAULT
others.com.net e19aepsfd9x4 NOREALM
Figure 9-3 Proxy Server Relationships
1. On PortMaster pm1.estancia.net, enter the following commands to set the RADIUS authentication and accounting servers:
set authentic 192.168.190.21 1645
set accounting 192.168.190.21 1646
2. Determine the IP address or fully qualified domain name of each NAS and server.
In this example, you have the following from the viewpoint of someone dialing in to the ISP in Argentina:
¯ PortMaster named pm1.estancia.net with IP address 192.168.190.20
¯ Forwarding server named jorge.estancia.net with an IP address of 192.168.190.21 in the realm estancia.net
¯ Clearinghouse server xroad.net with an IP address of 172.30.140.2
¯ Remote server named vinnie.redsauce.net with an IP address of 172.16.240.111 in the realm redsauce.net
¯ PortMaster named pm22.redsauce.net with IP address 172.16.240.110
3. On forwarding server jorge.estancia.net, configure the following:
¯ Contents of /etc/raddb/clients
¯ Contents of /etc/raddb/proxy
xroad.net m72hbtr5$w3xst redsauce.net
jorge.estancia.net dummysecret estancia.net
DEFAULT can be substituted for the realm redsauce.net.
Figure 9-5 Proxy Server Relationships
4. On clearinghouse server xroad.net, configure the following:
¯ Contents of /etc/raddb/clients
jorge.estancia.net m72hbtr5$w3xst
vinnie.redsauce.net kntbr352bfd
¯ Contents of /etc/raddb/proxy
vinnie.redsauce.net qbfja97-8 redsauce.net
jorge.estancia.net thx1984 estancia.net
5. On remote server vinnie.redsauce.net, configure the following:
¯ Contents of /etc/raddb/clients
pm22.redsauce.net bws5629s$r53
¯ Contents of /etc/raddb/proxy
xroad.net kntbr352bfd estancia.net
vinnie.redsauce.net dummysecret2 redsauce.net
DEFAULT can be substituted for the realm estancia.net.
6. On PortMaster pm22.redsauce.net, enter the following commands to set the RADIUS authentication and accounting servers:
You must define a user profile in the users file of the remote server for each user that is to be authenticated via the remote server.
If the user's password is stored in the users file, an example user profile for marciano on vinnie.redsauce.net is the following:
Framed-IP-Address = 255.255.255.254,
However, if marciano's password is stored in the /etc/passwd file, an example user profile is the following:
Framed-IP-Address = 255.255.255.254,
If marciano goes to Argentina on a business trip and dials in to the network at estancia.net, he must enter marciano@redsauce.net at the password login prompt.
8. Run the radiusd daemon on servers jorge.estancia.net, xroad.net, and vinnie.redsauce.net.
The RADIUS accounting records for proxy users are logged into the detail file of all the servers.