./radclient.sh -c 500000
```
+You can also send accounting packets:
+
+```
+./radacct.sh
+```
+
--- /dev/null
+User-Name = "bob"
+Acct-Session-Id := "0000"
+Acct-Status-Type = Start
+Called-Station-Id := "00:01:02:03"
+Calling-Station-Id := "04:05:06:07"
+Message-Authenticator = 0x00
+Framed-IP-Address = 127.0.0.1
# Referenced by some modules for default thread pool configuration
#
modules {
+
+$INCLUDE ${raddb}/mods-available/always
}
clients radsec {
}
}
+listen {
+ type = acct
+
+ ipaddr = 127.0.0.1
+ port = 2084
+ proto = tcp
+
+ clients = radsec
+
+ virtual_server = default
+
+ tls {
+ private_key_password = whatever
+ private_key_file = ${certdir}/server.pem
+ certificate_file = ${certdir}/server.pem
+ ca_file = ${cadir}/ca.pem
+ fragment_size = 8192
+ ca_path = ${cadir}
+ cipher_list = "DEFAULT"
+ tls_min_version = "1.3"
+ tls_max_version = "1.3"
+ }
+}
+
server default {
authorize {
update control {
Auth-Type := accept
}
}
+
+ preacct {
+ update control {
+ Response-Packet-Type := Accounting-Response
+ }
+ }
+
+ acct {
+ ok
+ }
}
type = fail-over
home_server = home
}
+
+home_server home_acct {
+ ipaddr = 127.0.0.1
+ port = 2084
+ type = acct
+ secret = radsec
+ proto = tcp
+ status_check = none
+
+# nonblock = yes
+
+ revive_interval = 10
+
+ tls {
+ private_key_password = whatever
+ private_key_file = ${certdir}/client.pem
+ certificate_file = ${certdir}/client.pem
+ ca_file = ${cadir}/ca.pem
+ fragment_size = 8192
+ ca_path = ${cadir}
+ cipher_list = "DEFAULT"
+ tls_min_version = "1.3"
+ tls_max_version = "1.3"
+ }
+}
+
+home_server_pool home_acct {
+ type = fail-over
+ home_server = home_acct
+}
virtual_server = default
}
+listen {
+ type = acct
+ ipaddr = 127.0.0.1
+ port = 1813
+ proto = udp
+ virtual_server = default
+}
+
+
server default {
authorize {
update control {
&Home-Server-Pool = "home"
}
}
+
+ preacct {
+ update control {
+ &Home-Server-Pool = "home_acct"
+ }
+ }
}
--- /dev/null
+#!/bin/sh
+. $(dirname $0)/common.sh
+
+#
+# Run radclient acct
+#
+exec $DIR/build/make/jlibtool --mode=execute $FR_DEBUGGER $DIR/build/bin/local/radclient -d $(dirname $0)/home -D $DIR/share/ -f acct $@ localhost acct testing123
#!/bin/sh
+. $(dirname $0)/common.sh
#
-# Run the home server.
+# Run radclient auth
#
-
-DIR=$(dirname $0)/../../..
-PROGRAM=$(basename $0)
-
-export RADDB=$DIR/raddb
-export TEST_PATH=$(dirname $0)/
-export LIB_PATH=$DIR/build/lib/local/
-
exec $DIR/build/make/jlibtool --mode=execute $FR_DEBUGGER $DIR/build/bin/local/radclient -d $(dirname $0)/home -D $DIR/share/ -f user_password $@ localhost auth testing123
#!/bin/sh
+. $(dirname $0)/common.sh
#
# Run the home server.
#
-
-DIR=$(dirname $0)/../../..
-PROGRAM=$(basename $0)
-
-export RADDB=$DIR/raddb
-export TEST_PATH=$(dirname $0)/
-export LIB_PATH=$DIR/build/lib/local/
-
exec $DIR/build/make/jlibtool --mode=execute $FR_DEBUGGER $DIR/build/bin/local/radiusd -d $(dirname $0)/home -D $DIR/share/ -fxx -l stdout $@
#!/bin/sh
+. $(dirname $0)/common.sh
#
-# Run the home server.
+# Run the proxy server.
#
-
-DIR=$(dirname $0)/../../..
-PROGRAM=$(basename $0)
-
-export RADDB=$DIR/raddb
-export TEST_PATH=$(dirname $0)/
-export LIB_PATH=$DIR/build/lib/local/
-
exec $DIR/build/make/jlibtool --mode=execute $FR_DEBUGGER $DIR/build/bin/local/radiusd -d $(dirname $0)/proxy -D $DIR/share/ -fxx -l stdout $@