You can configure stateful firewall actions for JUNOS ASP policy rules. Stateful firewall actions specify the action to take on packets that match the classify-traffic condition.
The type of action that you can create depends on the type of policy rule. See Policy Information Model.
Use the following configuration statements to configure stateful firewall actions:
- policies group name list name rule name stateful-firewall name {
- description description ;
- }
- policies group name list name rule name stateful-firewall name packet-action
reject {
- message-type message-type ;
- }
- policies group name list name rule name stateful-firewall name packet-action
parameter {
- action action ;
- }
To configure a stateful firewall action:
- user@host# edit policies group junos list
sfw rule pr stateful-firewall sfa
- [edit policies group junos list sfw rule pr stateful-firewall
sfa]
- user@host# set packet-action filter
- [edit policies group junos list sfw rule pr stateful-firewall
sfa]
- user@host# set packet-action forward
- [edit policies group junos list sfw rule pr stateful-firewall
sfa]
- user@host# set packet-action reject message-type message-type
- [edit policies group junos list sfw rule pr stateful-firewall
sfa]
- user@host# set packet-action parameter action action
- [edit policies group junos list sfw rule pr stateful-firewall
sfa]
- user@host# set description description
[edit policies group junos list sfw rule pr stateful-firewall sfa]
user@host# show
packet-action {
reject {
message-type administratively-prohibited;
}
}
description "Stateful firewall action";