cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
419
Views
4
Helpful
3
Replies

ACL

alaeldien
Level 1
Level 1

Hello

access-list 100 deny tcp any host 192.168.1.100 eq 80

*****

int fa 0/0 # ip access-group 100 out

is it the correct ACL to prevent the specified host from internet.

if not, could some one please correcting this.

thank you

3 Replies 3

Istvan_Rabai
Level 7
Level 7

Hi Ahmed,

This acl denies any outbound access to a web server under ip address 192.168.1.100.

To deny access of a specific host to any http service on the Internet:

access-list 100 deny tcp host 192.168.1.100 any eq 80

"int fa 0/0 # ip access-group 100 out"

This is OK if fa 0/0 is the Internet-facing interface.

Cheers:

Istvan

Hi Ahmed

and also dont forget the permit any at the end of the ACL, as any access list has a deny any statment at the end.

so as below

access-list 100 deny tcp host 192.168.1.100 any eq 80

access-list 100 permit ip any any

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Ala,

nice to hear from you

be aware that TCP port 80 stays on the server side.

if f0/0 is your internal lan

access-list 100 deny tcp host 192.168.1.100 any eq 80

access-list 100 permit ip any any

int f0/0

ip access-group 100 in

if f0/0 is the WAN port (to internet)

int f0/0

ip access-group 100 out

the well known port follow the server side and you need to permit something or the ACL will deny everything.

Hope to help

Giuseppe

Review Cisco Networking products for a $25 gift card