You define rules that specify the NAT pool (media service) used on a specific VPG.
CLI Quick Configuration
To quickly define the rules, copy the following commands and paste them into the router terminal window:
-
[edit services stateful-firewall]
-
set rule r1 match-direction input-outputset rule r1 term t1 then reject
Step-by-Step Procedure
To create a stateful firewall:
- [edit services stateful-firewall]
- user@host#edit rule r1
- [edit services stateful-firewall rule r1]
- user@host#set match-direction input-output
- [edit services stateful-firewall rule r1]
- user@host#set term t1 then reject
Configuration Results
Display the results of the configuration.
- [edit services stateful-firewall]
- user@sp-pg-router# show
- rule r1 {
- match-direction input-output;
-
- term t1 {
-
- then {
- reject;
- }
- }
- }