Hello Alireza,
Dynamic profile should be defined in order to be used as a service profile.
For example:
user@ERX-MX960-RE0# show dynamic-profiles test
variables {
filter;
prec;
}
interfaces {
demux0 {
unit "$junos-underlying-interface-unit" {
family inet {
filter {
input "$filter" precedence "$prec";
output "$filter" precedence "$prec";
}
}
}
}
}
Firewall filter configuration can either be included in the same dynamic profile, or configured on the router as interface-specific firewall filter.
[root@JTAC-ERX-LINUX-3 ~]# radclient -x -s 10.219.35.196:3799 coa secret -f coa -d /usr/share/freeradius
Sending CoA-Request of id 176 to 10.219.35.196 port 3799
Acct-Session-Id := "5"
ERX-Service-Activate:1 := "test(12M,60)"
rad_recv: CoA-ACK packet from host 10.219.35.196 port 3799, id=176, length=20
Total approved auths: 1
Total denied auths: 0
Total lost auths: 0
Best regards,
Sergii
-------------------------------------------------------------------
Please accept the solution if your problem is resolved
-------------------------------------------------------------------