cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2965
Views
0
Helpful
3
Replies

block internet access Cisco asa

AliMahm00di
Level 1
Level 1

Hello;

I'm new to IT security world and Cisco as well.
I want to block my inside network (servers) to access the outside world (internet) which is allowed by default in factory-default config of asa 5505.
It is how I get it done:
ciscoasa(config)# object network insidenet
ciscoasa(config-network-object)# subnet 192.168.1.0 255.255.255.0
ciscoasa(config-network-object)# exit
ciscoasa(config)# access-list Restrictinsidenet extended deny ip object insidenet any
ciscoasa(config)# access-g Restrictinsidenet out interface outside
 
is it ok?
I will appreciate sharing your ideas with me.
Thank you so much. Good luck.
BR/
3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

 

You would be better to apply the acl to the inside interface ie. - 

 

access-group Restrictinsidenet in interface inside 

 

Jon

Thanks Jon;

May you please explain why it would be better?

it wouldn't block inside to DMZ?

 

Thanks so much.

 

Sorry, didn't think about a DMZ :) 

 

I tend to apply acls closest to the source so the firewall does not need to process the packets any more than it has to so I would modify the acl and allow traffic from inside to the DMZ then deny to internet as you have done and apply to the inside interface. 

 

However you can do what you are proposing, there is nothing wrong with that. 

 

It comes down to personal preference a lot of the time. 

 

Jon

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: