ASA(config)# access-list 100 permit tcp host 20.20.20.2 host 10.10.10.2
ASA(config)# access-group 100 in interface outside
R2(config)#do telnet 10.10.10.2
Trying 10.10.10.2 ... Open
User Access Verification
Password:
R1>ena
R1>enable
Password:
R1#
ASA(config)# fixup protocol icmp
ASA(config)# access-list 101 permit icmp any any
ASA(config)# access-group 101 in interface outside
R1(config)#do ping 20.20.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/76 ms
R2(config)#do ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/28/84 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/32/80 ms
R2(config)#do ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/32/76 ms