these users are not allowed to browse. they should use only internal resources.
Main Topics
Browse All TopicsHow to block internet access to few users in SSG5
Please help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yup, if you have web filtering, you can create a specific profile for the sites you want to allow and deny and then apply it in a security policy applied to the specific IPs you want,
Have a look at www.juniper.net/techpubs, drill down into screenos docs and then download the relevant docs for the UTM functions. These will describe the process much better than I can.
DM
Then web filtering is not what you need bud.
Web filtering will allow you to set policies to allow or deny user access to specified websites, not IM and peer to peer.
BLocking IM and P2P is normally best done by an IDP device that can detect any dynamic port changes etc and then compensate, however, we can get around this by the following:
1. Ensure you have DNS set on your firewall
2. Add address book entries in the untrust zone for all the IM servers you want to block, ie MSN, yahoo etc. Use the DNS names (which is why we need 1)
3. Add all those addresses to a an address group
4. Specify a security rule from trust to untrust any <group at 3> any deny
If this blocks the access to the IM servers then thus downloading files is also blocked.
Does this help?
www.juniper.net/techpubs
Download the docs for screenos version you are using. They will explain a lot better than I can as well as answer loads of other questions you may have.
set address "Trust" "192.168.0.12/32" 192.168.0.12 255.255.255.255
set address "Trust" "192.168.0.38/32" 192.168.0.38 255.255.255.255
set address "Trust" "192.168.0.4/32" 192.168.0.4 255.255.255.255
set address "Untrust" "MSN IP" 207.68.172.237 255.255.255.255
set address "Untrust" "MSN IP2" 64.4.15.61 255.255.255.255
set address "Untrust" "MSN messenger" messenger.msn.com
set address "Untrust" "YAHOO" messenger.yahoo.com
set address "Untrust" "YAHOO IP" 68.142.230.204 255.255.255.255
set address "Untrust" "YAHOO IP10" 76.13.218.11 255.255.255.255
set address "Untrust" "YAHOO IP11" 68.142.233.76 255.255.255.255
set address "Untrust" "YAHOO IP12" 68.142.233.147 255.255.255.255
set address "Untrust" "YAHOO IP13" 68.142.233.122 255.255.255.255
set address "Untrust" "YAHOO IP14" 76.13.222.11 255.255.255.255
set address "Untrust" "YAHOO IP15" 76.13.222.11 255.255.255.255
set address "Untrust" "YAHOO IP16" 68.180.216.31 255.255.255.255
set address "Untrust" "YAHOO IP2" 76.13.15.30 255.255.255.255
set address "Untrust" "YAHOO IP3" 68.142.231.252 255.255.255.255
set address "Untrust" "YAHOO IP4" 76.13.15.56 255.255.255.255
set address "Untrust" "YAHOO IP5" 68.180.216.31 255.255.255.255
set address "Untrust" "YAHOO IP6" 66.196.106.31 255.255.255.255
set address "Untrust" "YAHOO IP7" 76.13.15.55 255.255.255.255
set address "Untrust" "YAHOO IP8" 69.147.112.160 255.255.255.255
set address "Untrust" "YAHOO IP9" 66.196.124.67 255.255.255.255
set group address "Untrust" "Block Group"
set group address "Untrust" "Block Group" add "MSN IP"
set group address "Untrust" "Block Group" add "MSN IP2"
set group address "Untrust" "Block Group" add "MSN messenger"
set group address "Untrust" "Block Group" add "YAHOO"
set group address "Untrust" "Block Group" add "YAHOO IP"
set group address "Untrust" "Block Group" add "YAHOO IP10"
set group address "Untrust" "Block Group" add "YAHOO IP11"
set group address "Untrust" "Block Group" add "YAHOO IP12"
set group address "Untrust" "Block Group" add "YAHOO IP13"
set group address "Untrust" "Block Group" add "YAHOO IP14"
set group address "Untrust" "Block Group" add "YAHOO IP15"
set group address "Untrust" "Block Group" add "YAHOO IP16"
set group address "Untrust" "Block Group" add "YAHOO IP2"
set group address "Untrust" "Block Group" add "YAHOO IP3"
set group address "Untrust" "Block Group" add "YAHOO IP4"
set group address "Untrust" "Block Group" add "YAHOO IP5"
set group address "Untrust" "Block Group" add "YAHOO IP6"
set group address "Untrust" "Block Group" add "YAHOO IP7"
set group address "Untrust" "Block Group" add "YAHOO IP8"
set group address "Untrust" "Block Group" add "YAHOO IP9"
Generally if you wish to allow access to few sites and block access to other websites, then you would configure policies as below:
set policy id x from trust to untrust internal-ip external-ip HTTP allow log
set policy id x+1 from trust to untrust internal-ip any HTTP deny log
Please note in above policies, internal-ip is the address book entry you have added for the internal hosts; external-ip is the address book entry you have added for the external hosts; x is any valid number, x+1 means that this policy would be evaluated after policy with id x is evaluated.
If you wish to block all outbound traffic irrespective if it web traffic or not, you would configure policy with id x+1 as below instead:
set policy id x+1 from trust to untrust internal-ip any any deny log
Thank you.
As stated in earlier comment; please use ANY service instead of specific service(s) to deny all outbound traffic; in the config, with policy id 4 you are not blocking HTTP access of machine with IP 192.168.0.12 to the Block Group.
Please elaborate if you wish to block access to few websites (using HTTP) or block complete access on all ports protocol. If you have a smaller set of sites to which access should be allowed/denied then the rules would depend on the requirement.
Please update.
Thank you.
I think you would be better off to allow all HTTP/FTP/SMTP/HTTPS/DNS access to IP 192.168.0.12 and block everything else. If there are more business related protocols which need to be allowed; for eg, pop, voice protocols other; please allow them as well.
Allowing few and blocking everything else would be a better approach in this case.
Please let know if you need exact CLIs.
Thank you.
Business Accounts
Answer for Membership
by: deimarkPosted on 2009-07-07 at 23:08:48ID: 24800976
What types of users are you looking to block and to what resource?
I am afraid that blocking individual users from access to resources, ie policy rules to deny them access, are not possible. However, if these users have the same IP address assigned all the time, then you can block by IP address.