Dynamically Attaching Filters Using RADIUS Variables
You can attach filters to static interfaces by using dynamic profiles. By specifying a variable for the input and output filters, the dynamic profile uses RADIUS VSA attributes for ingress and egress policy.
RADIUS VSA |
Attribute Name |
Variable |
---|---|---|
26–10 |
Ingress-Policy-Name |
$junos-input-filter |
26–11 |
Egress-Policy-Name |
$junos-output-filter |
26–106 |
IPv6-Ingress-Policy-Name |
$junos-input-ipv6-filter |
26–107 |
IPv6-Egress-Policy-Name |
$junos-output-ipv6-filter |
26–191 |
Input-Interface-Filter |
$junos-input-interface-filter |
26–192 |
Output-Interface-Filter |
$junos-output-interface-filter |
To dynamically attach IPv4 input and output filters using RADIUS:
To dynamically attach IPv6 input and output filters using RADIUS:
Specify the dynamic profile you want to attach, the interface, the logical unit number, and family
inet6
.[edit] user@host# edit dynamic-profiles myProfile interface ge-1/1/1 unit 1 family inet6
Specify the IPv6 input filter variable in the dynamic profile.
[edit dynamic-profiles myProfile interfaces ge-1/1/1 unit 1 family inet6] user@host# set filter input $junos-input-ipv6-filter
Specify the IPv6 output filter variable in the dynamic profile.
[edit dynamic-profiles myProfile interfaces ge-1/1/1 unit 1 family inet6] user@host# set filter output $junos-output-ipv6-filter
To dynamically attach input and output filters to any interface independent of protocol using RADIUS:
Specify the dynamic profile you want to attach, the interface, and the logical unit number.
[edit] user@host# edit dynamic-profiles myProfile interfaces ge-1/1/1 unit 1
Specify the input filter variable that applies to all families configured for the logical interface.
[edit dynamic-profiles myProfile interfaces ge-1/1/1 unit 1 user@host# set filter input $junos-input-interface-filter
Specify the output filter variable that applies to all families configured for the logical interface.
[edit dynamic-profiles myProfile interfaces ge-1/1/1 unit 1] user@host# set filter output $junos-output-interface-filter