A. Create Traffic Management Profile
- SSH to the device
- If required, remove the TPS device from SMS control (sms unmanage)
- To display the current configuration enter display conf running traffic-management
- Create the required TMFs with the following CLI command;
- edit - enter edit context to make configuration changes
- traffic-management - enter traffic-management profile context
- profile ‘<ProfileName>’ - create/enter profile
Additional commands are:
- delete profile ‘<ProfileName>’
- rename profile ‘<ProfileName>’ ‘<NewProfileName>’
B. Create Traffic Management Filters
You can create ICMP, ICMPv6, IP, IPV6, TCP, UDP filters, or use ANY for all traffic. Likewise, you can specify a source and destination IP addresses and ports. Each rule also requires a unique name, where most people simply describe the rule with a short phrase.
traffic-filter '<FilterName>' - create/enter traffic filter
Additional commands are:
- ip ipv4 [src-address IPV4-SRC-CIDR] [dst-address IPV4-DST-CIDR]
- ip ipv6 [src-address IPV6-SRC-CIDR] [dst-address IPV6-DST-CIDR]
- protocol any [ip-fragments-only]
- protocol tcp|udp [src-port SRCPORT] [dst-port DSTPORT]
- protocol icmp [type ICMPTYPE] [code ICMPCODE]
C. Assign “Actions” to Traffic Management Filters
Once a Traffic Management Filter has been created, it must be modified by a corresponding subcommand (action). Subcommands (Actions) include allow, block, trust, and rate-limit. Allow permits all traffic as a permit filter would. Block drops the traffic just as a block action would. A trust action allows traffic to flow completely uninspected. Trust is the most common action used.
Valid commands are:
- action block|allow|trust|(rate-limit RATELIMITACTION)
- enable|disable
D. Add segments (ports) to Traffic Management Profile
Now that we've created the Traffic Management Profile and assigned ports and directionality, we can add the TFM profile to a virtual segment.
- edit - enter edit context to make configuration changes
- virtual-segments - enter virtual segments context
- Select the virtual segment that will be linked to the Traffic Management profile. For example virtual-segment "segment4-5 (A > B)"
- Once in the virtual segment context for the particular segment enter;
traffic-profile ‘<ProfileName>’