Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello World,
How to block particular websites for some ipaddresses and i want to give full acces to 5 ips by using iptables in linux..
Please read the LQ Rules, and read the "How to ask a smart question" guidelines. Subjects of "Help Me", dont' tell ANYONE, ANYTHING about your issue, and don't get answered very quickly.
If you want to block websites, you need a proxy server like Squid. There is abundant documentation on how to install/configure it for pretty much every distro of Linux.
You could do this with iptables. For us to try and assist with this we would need some additional info, though. What does your network look like - is internet access via a Linux gateway already? If so, what distro, and what firewall rules do you currently have in place?
I second TB0ne's suggestion, though: squid is much better suited to the job of controlling access to specific sites and/or for specific users (either by IP or by username). You might also want to look at squidGuard.
Regards,
Clifford
---------- Post added 2014-04-23 at 09:54 ----------
Hi,
You could do this with iptables. For us to try and assist with this we would need some additional info, though. What does your network look like - is internet access via a Linux gateway already? If so, what distro, and what firewall rules do you currently have in place?
I second TB0ne's suggestion, though: squid is much better suited to the job of controlling access to specific sites and/or for specific users (either by IP or by username). You might also want to look at squidGuard.
I installed in VMware three OS: Windows server 2008 r2, centos and windows 7. I created Active Directory and this windows 7 has joined into domain, then I configured in Centos squid proxy server,which blocks domain's user's all sites in browser except 2 sites and it works good... but domain's user's can't connect with Remote Desktop to other network... what should I do in Linux, what must it be configured? can anyone help me?
I installed in VMware three OS: Windows server 2008 r2, centos and windows 7. I created Active Directory and this windows 7 has joined into domain, then I configured in Centos squid proxy server,which blocks domain's user's all sites in browser except 2 sites and it works good... but domain's user's can't connect with Remote Desktop to other network... what should I do in Linux, what must it be configured? can anyone help me?
You first need to read the LQ Rules, and open your own thread for your own question.
Secondly, you need to realize that squid is an HTTP proxy...it DOES NOT do anything with other protocols, RDP included. If you want RDP to another network, you need to allow that traffic through your firewall. Squid doesn't enter into it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.