Allow few site and block all other web sites

Hi i  need sample configuration using rogex  command   to   allow few web sites and block  to 192.168.2.0 networks and allow full  access to 192.168.10 .0 networks . i have configures two inside network

You could try something like the following to allow traffic to specific websites and then deny all other web/https traffic.  Keep in mind that in the configuration I am assuming you have two seperate interfaces for the two network connected to the ASA (that could be two subinterfaces or two seperate physical interfaces.
access-list LAN1 permit tcp 192.168.2.0 255.255.255.0 any eq http
access-list LAN1 permit tcp 192.168.2.0 255.255.255.0 any eq https
regex domainlist1 "\.yahoo\.com"
regex domainlist2 "\.myspace\.com"
regex domainlist3 "\.youtube\.com"
class-map LAN
  match access-list LAN1
class-map type regex match-any DomainList
  match regex domainlist1
  match regex domainlist2
  match regex domainlist3
class-map type inspect http match-all DomainClass
  match request header host regex class DomainList
policy-map type inspect http http_inspect_policy
  class DomainClass
    inspect
  class class-default
    drop
policy-map inside1-policy
  class LAN1
    inspect http http_inspect_policy
service-policy inside1-policy interface inside1
Please remember to select a correct answer and rate helpful posts

Similar Messages

  • How to create a new rule in Windows Firewall to permit some specific IPs and block all other computers

    Hello,
    I have a Win7 PC. I want to block all incoming connections except 3 or 4 IPs. How can i do this?
    I created a new rule to block all connections using this steps:
    Inbound rules > New Rule > Custom > All Programs > All Protocols / Ports > All Local/Remote IPs > Block the connectiion > All profiles > Then i gave a name
    This rule works fine and blocks all incoming connections.
    Then i want to create a new rule to allow specific IPs using this steps:
    Inbound rules > New Rule > Custom > All Programs > All Protocols / Ports > Remote IPs: 192.168.10.5, 192.168.10.10 > Allow the connection > All profiles > Then i gave a name
    But 192.168.10.5 and 192.168.10.10 couldn't reach W7 machine. 
    (If rules are disabled or FW is off; both IPs could reach W7 machine)
    Thanks

    Hi,
    How did you check these two IP address? Through remote access? According to your description, it should only allow remote IP could access this computer. Please also allow local IP for test.
    Roger Lu
    TechNet Community Support

  • Why can't I get my mail, I get a message "connection to server failed" but I can get on all other web sites.  It worked fine until about a month ago.

    WHY CAN'T I GET MY MAIL, I GET A MESSAGE 'CONNECTION TO SERVER FAILED" BUT I CAN GET ON ALL OTHER WEB SITES.  IT WORKED FINE UNTIL ABOUT A MONTH AGO.  I CANCELLED MY ACCOUNT, PUT MY INFO IN AGAIN AND STILL GET THE MESSAGE "CONNECTION TO SERVER FAILED"  HELP PLEASE!

    have you tried removing and readding the e-mail account? sometimes settings get corrupted or changed on the server end...something computers can sometimes handle better than the mail interface.

  • How can I block all other mail account just to only use the exchange mailbox of our company? This is to prevent the user to setup his on company iPhone.

    How can I block all other mail account just to only use the exchange mailbox of our company? This is to prevent the user to setup his on company iPhone.

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • Set iPad to only scroll through a limit amount of pictures and disable all other apps

    Hi there, is it possible to setup an iPad to only allow users to scroll through 3 or 4 pages, and have all other features disabled?  This will be for a customer display so that people can only view these 3 or 4 pictures and not to be able to use the iPad for any other purpose, i.e access the internet, to tie down the iPad, so to speak.  Many thanks  in advance.

    You can currently have the 'picture frame' icon on the slide to unlock screen via Settings > General > Passcode Lock > Picture Frame 'on', and you can limit which of your photo albums show in that via Settings > Picture Frame. Though you can't stop people trying to exit the picture frame and trying to enter the passcode.
    With iOS 6 later today there will be new accessibility functions which might help (from here) :
    It allows a parent, teacher, or administrator to limit an iOS device to one app by disabling the Home button, as well as restrict touch input on certain areas of the screen.

  • 5002 error. I cant change payment details. I can't purchase anything. always says 5002 or temp error. Help! Itunes is as good as useless. I've deleted caches reinstalled itunes and followed all the web tips. Nothing works!!!

    I cant change payment details. I can't purchase anything. always says 5002 or temp error. Help! Itunes is as good as useless. I've deleted caches reinstalled itunes and followed all the web tips. Nothing works!!! Pls help.

    Bump......
    Nobody has any ideas?? Apple people??

  • When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    Hi,
    I would suggest you to uninstall Adobe Reader using the cleaner tool and then re-install the latest version.
    Adobe Cleaner Tool:- Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs.
    Latest version of Adobe Reader:- http://get.adobe.com/reader/
    If you still experience the same issue, please share the following information:-
    - Screenshot of Adobe Reader showing printer options
    - Screenshot of Microsoft Word showing printer options
    - Screenshot of control panel- Control Panel\All Control Panel Items\Devices and Printers
    Regards,
    Nakul 

  • I want to change my email account associated with my iTunes account. How do I do that and keep all other info intact!

    I want to change my email account associated with my iTunes account. How do I do that and keep all other info intact!

    http://support.apple.com/kb/HT5621

  • My sent messages in outlook for mac suddenly stopped syncing with my iPhone and iPad, all other folders work correctly. How can I get them to start syncing again?

    My sent messages in outlook for mac suddenly stopped syncing with my iPhone and iPad, all other folders work correctly. How can I get them to start syncing again?

    You can disable the Adobe Reader plugin in Firefox (Tools > Add-ons > Plugins) and use the external Adobe Reader application or Preview application instead.
    *Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader
    PDF files may also be found under another entry like Portable document.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file

  • Cannot download from Gamehouse and Logler all other sites are ok

    All other game sites except Gamehouse and Logler download ok. When I try to download these sites it goes to DAP and message is installer/stub. Window shows the download has finished but cannot open file.

    Have you thought about DAP support? DAP is taking over downloads from Firefox, which makes it not a Firefox support issue. I used DAP for a short time 6 or 7 years ago and can't rememeber enough about it to try to help you figure out what might be wrong.

  • Light Switch 2011 "C#" How to allow filter which take more than one entry to take * and show all other entries?

    Dear All,
    I have created the following code which extended my filter functionality and allowed a to take more than one entry (Comma have to be inserted after
    each entry). 
    For example:
    "Country Filter" can take ----> Germany,Egypt,Holand<o:p></o:p>
    "City Filter " can take ---------> Berlin,Münster
    if (Country_PAR != null)
    String[] Country_Array = Country_PAR.Split(new Char[] { ','});
    query = from p in query where Country_Array.Contains(p.Hotel_Country) select p;
    if (City_PAR != null)
    String[] City_Array = City_PAR.Split(new Char[] {','});
    query = from p in query where City_Array.Contains(p.Hotel_City) select p;
    Now want to extend it more and say something like:
    If  * is included ---- > Give me all entries        
         ex. Ge*     This will give me everything which starts with Ge
    If <> is entred -----> Give me entries which are not equal to a certain entry
         ex. Country Filter = <> Germany          give me all other entries except Germany
    Thanks alot,
    Zayed

    Thanks your reply. I mean no one know my feeling. except if the new car is your. If Geek Squad can't install it. Just let me know and go. right? I ask many time? Are you ok to finish? He said yes. First time fail after 5 hours long wait and tow my car to Toyota repair. Second time said only take 20 to 30 minutes to program the key. but fail again after about 4 hours 30 minutes long wait and head light is not automatic turn on at night. I have to take a day off drive to Toyota repair. My time is money. wait there more than 10 hours and done nothing. 5 days no car and take the subway Bus and long walk. How do I feel? I m the customer. if without the customer. How you get pay? Geek Squad use my remote start and alarm and I can't return it. I loss time and money. My new car has a repair record. That is what Bestbuy want to do for the customer. Geek Squad work for Bestbuy. right? You are not just loss one customer. You will loss more and more than the remote start alarm cost. Bestbuy will not know? How come just 200$ remote start alarm and the 50$ module. Bestbuy don't want to reimburse. I m not tell you to pay me 5 days for rental car. why don't just want a happy ending? Bestbuy is big company. I m very small. 250$ it cost Bestbuy nothing. You can't let the customer loss money because you. right?

  • Firefox browser continues to hang and sometimes crashes when trying to load more than 10 bookmarks in tabs. Please help with my request as I would like to choose which tabs will load webpages and have all others stopped.

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/876430''
    I have thousands of favorites and Firefox is my web-browser of choice. Sadly I'm backed up on what bookmarks I have stored and if the websites are still active or not.
    I cannot load more than 15 bookmarks it seems at once as my PC is trying to load all the web content for each page in the new tabs.
    This is my PC specs:
    OS Name Microsoft Windows XP Professional
    Version 5.1.2600 Service Pack 2 Build 2600
    OS Manufacturer Microsoft Corporation
    System Name xxxxxxxx
    System Manufacturer System manufacturer
    System Model System Product Name
    System Type X86-based PC
    Processor x86 Family 15 Model 75 Stepping 2 AuthenticAMD ~2210 Mhz
    Processor x86 Family 15 Model 75 Stepping 2 AuthenticAMD ~2209 Mhz
    BIOS Version/Date American Megatrends Inc. 0301, 21/08/2006
    SMBIOS Version 2.3
    Windows Directory D:\WINDOWS
    System Directory D:\WINDOWS\system32
    Boot Device \Device\HarddiskVolume1
    Locale United States
    Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
    User Name xxxxxxxx/ADMIN
    Time Zone Atlantic Daylight Time
    Total Physical Memory 2,048.00 MB
    Available Physical Memory 1.53 GB
    Total Virtual Memory 2.00 GB
    Available Virtual Memory 1.96 GB
    Page File Space 3.85 GB
    Page File D:\pagefile.sys
    I have High Speed internet connection with the provider Rogers.
    Dlspeed is 12.9 Mbps
    Upspeed is514 kbps
    My PC supports Windows 7 OS which I have as a multiboot alternative when my PC starts up.
    I have continually waited and it says Firefox is not responding and I may be able to see the multiple tabs opened in my browser but cannot navigate or access them.
    I have read on various sites that users have had as many as 1500 bookmarks load at once in tabs in the Firefox browser version that are outdated.
    I have not been successful with just loading 50 bookmarks my goal is to be able to have 500 tabs loaded in firefox with webpage loading stopped on all of them. I will choose reload for about 10 tabs at a time to view webpage content and then close and move on to the rest.
    My ultimate goal is to clear up the Thousands of bookmarks I have piling on for the past 6 years and some are duplicates or similar page sites.
    Their is no Firefox 3rd party addons that I could locate that would allow this. Only to restrict the number of tabs loaded by giving warning messages when limit is reached.
    Please assist me as it will greatly help me with finally deleting and re-organizing my Favorite and frequent websites in my Browser of choice Firefox.
    The email is generic for privacy but it is valid please respond with methods on how I can achieve my request or suggestions on how I can modify my browser or PC settings to allow this. Thanks Firefox Administration Team.
    I edited with a recent Workaround added to Troubleshoot section.
    If there is a keyboard shortcut or easier way to do this would someone please let me know?

    Firebug is notorious for causing problems like you described.
    Disable it when you don't need it or install it in a 2nd Profile. Then you can launch the 2nd Profile separately to use Firebug and not affect what you are doing in the 1st Profile,

  • Why does my hd space say it has 0 audio, 0 photos and mostly all 'other' (yellow)?

    My HD space had maxed out so I purchased "duplicate finder".  Before I used duplicate finder, my files mainly were audio and very few other (yellow portion).  My HD space has maxed out again but now, it's zero audio, zero photos and practically all yellow.  That is impossible for me to have zero audio and zero photos.  And what is "other"?  I hope someone can help me on this...thanks in advance!

    For information about the Other category in the Storage display, see this support article.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • I have an ipod ist generation. when i tap on a game it shows up for a few seconds and disappears. all my games do that. how do i fix?

    I have an ipod 1st generation and i cant get the games to play.  I tap on a game and it shows up for a few seconds and disappears. I can see that when games pop up they say loading on the bottom. They have all been downloaded for awhile. I'v tried restarting ipod by pressing on/off andhome button at the same time and that didnt work.

    What is the Other on my iPhone and How to Remove It
    Also
    "First you go settings/general/usage/music/then left swipe over music and press delete and you would think it deletes your music but it doesn't instead it deletes your other but make sure your ipod is connected to a computer while doing this"
    as recommended by:
    How do I get rid of "other" storage: Apple Support Communities
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

  • Modal dialog limiting the mouse pointer and blocking all application

    I wanted to create a modal dialog that blocks all application in my desktop. Only password field be present and exits only if correct password is typed. I also wanted to limit the mouse pointer within the window of the modal dialog. Will that be possible? i have read modality feature of Mustang(beta) and notes there that system modality is not included. Can anybody there give me an idea how to do tricks on blocking all applications of the desktop? I will be much grateful to anybody who could solve this problem. Thnx in advance...

    tnx Sarcommand ..i give up on that, i understand the risk if that feature is included..
    all i wanted is to make an internet cafe client/server that blocks the client's pc interaction if log time is reached.blocking only the keyboard and mouse.
    i have seen so many softwares sets the cursor position within the dialog bounding box only with user and password there. though my other application runs the mouse is still captured on the dialog even the dialog lost focus.
    if that would not be possible I'll just send notification to the client, a dialog that does not block any application.
    now, im going to try if the client can do som action whenever the server sends alert if the client java app is not the focus. i will post next time what hapens.but if you tried already, if u dont mind posting it so others could know it also..
    tnx so much Sarcommand..

Maybe you are looking for

  • Anyone get this before "Unable to Assemble Book" -

    anybody get this when trying to buy a iphoto book-  "Unable to Assemble Book" - It goes through the process of assembling the book- line is all blue, but then it does not upload it

  • Report for cost component wise standard cost

    Dear All, I can view cost component structure wise breakup of cost for materials through various options in controlling. But, I can view that only material wise, I am unable to find any report which can allow me to view cost component structure wise

  • System folders in different languages

    Hello. I got a new iMac late 2012 and my System folders appear some in English (Music, Sites) and some in Spanish (Pública, Descargas, etc.). I want them all in Spanish. What must I do? Thanks in advance.

  • Generating charts from jsp

    Hi there, i am a jsp novice and i am looking to generate chart using data in a dbase. can anyone point me in the right direction how to use JChart(in jsp) to generate chart from a database? I am looking to generate Barcharts and Line charts. it is my

  • 'save as' finder window settings and size (on mac)

    Hi there ~ Whenever saving/downloading any type of file from any firefox tab, and the 'save as' window opens and I choose where I want the file to be downloaded to, the finder window columns are really tight and narrow, cutting off the folder names s