Tag Value type -Type of rule to display, either transport or tunnel. srcaddr -Source ip address (ipv4 or ipv6), address range, dns name, or server type. dstaddr -Destination ip address (ipv4 or ipv6), address range, dns name, or server type. srcmask -Source address mask or a prefix of 1 through 32. dstmask -Destination address mask or a prefix of 1 through 32. protocol -Can be ANY, ICMP, TCP, UDP, RAW, or an integer. srcport -Source port. A value of 0 means any port. dstport -Destination port. A value of 0 means any port. actioninbound -Action for inbound packets. actionoutbound -Action for outbound packets. resolvedns -Value of 'yes' displays the resolved dns name.
Remarks: 1. Default for the type parameter is 'transport'. 2. Server type can be WINS, DNS, DHCP or GATEWAY. 3. If source or destination address name is specified, only rules associated with that address are displayed. 4. If an address range is specified, the endpoints need to be specific addresses (not lists, or subnets) and of the same type (both should be v4 or both should be v6).
Examples: 1. show rule - shows both transport and tunnel rules 2. show rule type=transport srcaddr=220.127.116.11 proto=TCP
NETSH / IPSEC / DYNAMIC / SHOW / RULE
netsh ipsec dynamic show rule - Windows Vista - commandDisplays rule details from SPD. - Windows Vista netsh, ipsec, dynamic, show, rule, cmd, command, Windows, Vista