03-02-2021 10:43 PM
Hi there, Dear Members,
i am using Cisco ASA 5520 firewall in my company, i am using the ACL to block some specific traffic for some clients, which is working fine,
now i want to block specific websites through ASDm, can anyone help me how can i do that in Cisco ASDM, i will be really great full to all of you..
03-02-2021 11:32 PM
here is the example to start with : ( not sure what is the ASA code you running) - but this example give you idea to setup one.
https://community.cisco.com/t5/security-documents/asa-url-filtering-via-asdm/ta-p/3120314
https://www.youtube.com/watch?v=-jH8ZuSyyVw
https://www.networkstraining.com/block-websites-cisco-asa-firewall/
03-03-2021 12:33 AM
@balaji.bandi thanks for your concern, i have done the steps, blocking the facebook through its ip is working for me which i knew but really thanks to you for your concern.
but i want to block the facebook through URL, and the link you have shared with me is not the complete guide, i am not able to understand it properly
03-03-2021 01:31 AM
object network obj-facebook.com
fqdn facebook.com
access-list INSIDE-IN extended deny ip any object obj-facebook.com <- change the rule as per the requirement.
access-group INSIDE-IN in interface inside
03-03-2021 01:55 AM
Also make sure your dns domain-lookup is also setup.
dns domain-lookup inside
dns domain-lookup outside
DNS server-group Google
name-server 8.8.8.8
03-03-2021 06:46 AM - edited 03-03-2021 06:51 AM
@Sheraz.Salim thanks i will try these.... but i dont know why i have to do lookup for both inside and outside.
03-03-2021 09:49 AM
In order for ASA to reslove the url into a ip address mapping it need to be reslove so it can actioned on this. I do not know you network that why i suggested to configure the DNS inside/outside.
dns domain-lookup inside
dns domain-lookup outside
DNS server-group Google
name-server 8.8.8.8
domain-name xyz
!
ping google.com to check if your asa can reslove the url to ip address and the ping is sucessful. either you can change the DNS server-group Google to anyname or to your coporate name.
03-03-2021 06:45 AM
@balaji.bandithanks i did it, but in ASA i am getting some error mentioned below
3 | Mar 03 2021 | 19:44:21 | 746016 | user-identity: DNS lookup for facebook.com failed, reason:Timeout or unresolvable |
3 | Mar 03 2021 | 19:44:21 | 746016 | user-identity: DNS lookup for youtube.com failed, reason:Timeout or unresolvable |
its may be because DNS lookup is not configured, and i dont even know how to do that.
03-03-2021 06:48 AM
@balaji.bandii have one thing to tell here before the DNS lookup settings.
actually i am using a domain controller as well in my network and i am using this domain controller IP as a DNS 192.168.2.2 in the clients computer,
so if i have to give access to any user i also need to mentioned the DNS ip which is my domain controller IP 192.168.2.2 then internet start working on the client with the Gateway IP which is 192.168.2.40.
i hope DNS lookup configuration wont change anything in my existing setup ?
03-03-2021 07:18 AM
i hope DNS lookup configuration wont change anything in my existing setup ? No they wont change.
03-03-2021 07:16 AM
here a smiliar issue is disccussed and provided an answer.
03-03-2021 08:00 AM
the basic requirement for FQDN to work is DNS - so make sure ASA able to resolve the DNS.
dns domain-lookup inside
dns server-group DefaultDNS
name-server x.x.x.x
domain-name mycompany.com
03-03-2021 10:52 PM
@balaji.bandiso in my case the commands should be like that when i am blocking the facbook
dns domain-lookup inside
dns server-group DefaultDNS
name-server 8.8.8.8
domain-name facebook.com
if i am wrong please correct me... i would really appreciate that....
03-03-2021 11:12 PM
dns domain-lookup inside dns server-group DefaultDNS name-server 8.8.8.8 domain-name example.com (normally this is your Local DNS)
domain-name is where you define your local DNS entry.
03-03-2021 11:20 PM
@Sheraz.Salimmy local dns is 192.168.2.4 which is darson.local so the command line should be like this ?
dns domain-lookup inside dns server-group DefaultDNS name-server 8.8.8.8 domain-name darson.local or 192.168.2.4
what if i put the ip instead of darson.local which is 192.168.2.4 ?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide