Firewall rule examples

For Network IPS appliances, use the following list of firewall rule examples for IPv4 and IPv6 addresses.

The following statements are examples of firewall rules. If you do not specify a protocol, the rule assumes and uses the any protocol.

IPv4 examples

adapter A ip src addr xxx.xxx.x.x

x is a number in the IP address.

adapter A ip src addr xxx.xxx.x dst addr any tcp src port 20 dst port 80

x is a number in the IP address.

adapter any ip src addr any dst addr xxx.xxx.xx.x

adapter any ip src addr any dst addr any icmp type 8

tcp

adapter B icmp

udp

IPv6 examples

adapter A ipv6 src addr x:x:x:x:x:x:x:x

x is one to four hexadecimal digits of the eight 16 bit pieces of the IP address.

adapter A ipv6 src addr x:x:x:x:x:x:x:x dst addr any tcp src port 20 dst port 80

x is one to four hexadecimal digits of the eight 16 bit pieces of the IP address.

adapter any ipv6 src addr any dst addr x:x:x:x:x:x:x:x

adapter any ipv6 src addr any dst addr any icmpv6 type 128

ipv6 tcp

adapter B icmpv6

udp