When I configure one rule it works fine, when I add another rule then both rules doesn't work at all.
Both works perfect when I use them as first rule only.(everything is connected, both servers are configured as web servers.)
First rule:
access-list 102 permit tcp host 192.168.1.1 host 192.168.2.2 eq www
Second rule:
access-list 101 permit icmp host 192.168.2.1 host 192.168.1.2 echo-reply
#access-list 101 permit icmp host 192.168.2.1 host 192.168.1.2 echo
Solved! Go to Solution.
Hi @GuyIttach133 ,
Try this:
access-list 102 permit tcp host 192.168.1.1 host 192.168.2.2 eq www
access-list 102 deny ip host 192.168.1.1 host 192.168.2.2
access-list 102 permit ip any any
interface g1/1
ip access-group 102 in
access-list 101 permit icmp host 192.168.2.1 host 192.168.1.2 echo-reply
access-list 101 permit icmp host 192.168.2.1 host 192.168.1.2 echo
access-list 101 deny ip host 192.168.2.1 host 192.168.1.2
accessc-list 101 permit ip any any
interface g1/0
ip access-group 101 in
Regards
You can not apply 2 rules on the interface for same direction.
change like below you should be ok. ( test and advise.
First rule:
access-list 102 permit tcp host 192.168.1.1 host 192.168.2.2 eq www
Second rule:
access-list 102 permit icmp host 192.168.2.1 host 192.168.1.2 echo-reply
#access-list 102 permit icmp host 192.168.2.1 host 192.168.1.2 echo
Can you post the full configuration and expllain the direction of the interface you like to apply this ACL.
so we can suggest you better
show access-list (post the output also).
Added the typology.
ACL:
Extended:
1. Permit PC 192.168.1.1 to browse in 192.168.2.2 http and deny pinging him.
2. Permit PC 192.168.2.1 to ping 192.168.1.2 and deny browsing his http.
Standart:
1. Deny for PC 192.168.2.3 to communicate with any PC out of his LAN.
Hi @GuyIttach133 ,
Try this:
access-list 102 permit tcp host 192.168.1.1 host 192.168.2.2 eq www
access-list 102 deny ip host 192.168.1.1 host 192.168.2.2
access-list 102 permit ip any any
interface g1/1
ip access-group 102 in
access-list 101 permit icmp host 192.168.2.1 host 192.168.1.2 echo-reply
access-list 101 permit icmp host 192.168.2.1 host 192.168.1.2 echo
access-list 101 deny ip host 192.168.2.1 host 192.168.1.2
accessc-list 101 permit ip any any
interface g1/0
ip access-group 101 in
Regards
God bless you man, thanks.
I probably missed the last rules u added.