nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How to block windows http request in squid

This is a discussion on How to block windows http request in squid within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hi I have one gateway server (sme server) with squid is running.I have one broadband internet connection that is available ...


Go Back   nixCraft Linux Forum > Mastering Servers > Networking, Firewalls and Security

Linux answers from nixCraft.


Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-11-2007, 01:54 PM
Junior Member
User
 
Join Date: Nov 2007
OS: SME
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
me_prasoon is on a distinguished road
Default How to block windows http request in squid

Hi

I have one gateway server (sme server) with squid is running.I have one broadband internet connection that is available through this sme gateway server.
My problem is that i have clients with both Linux and windows.I want to block windows client internet access through this gateway.How can i do this using squid proxy.

Please help me
Thanks in advance
Richard
Reply With Quote
  #2 (permalink)  
Old 20-11-2007, 08:33 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

Block all windows IP address using Iptables or squid ACL as Squid cannnot filter request based upon os. Another option is password protect squid and give username and password to Linux users only.
__________________
May the force with you!
Reply With Quote
  #3 (permalink)  
Old 21-11-2007, 07:45 AM
Junior Member
User
 
Join Date: Nov 2007
OS: SME
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
me_prasoon is on a distinguished road
Default

Any other possible way to block request from windows.Any other firewall or iptables rules to block windows request .Please help me i am realy need this soon

Please help me
Thanks in advance
Reply With Quote
  #4 (permalink)  
Old 21-11-2007, 11:01 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,709
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Add following to your iptables scripts:

Code:
WINDOWS_IPS="192.168.1.2 192.168.1.5 IP3 IP4 IPn"
for i in $WINDOWS_IPS
do
 iptables -A INPUT -s $i  -j DROP
done
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to block gtalk messenger through squid bubloob_13 Linux software 0 16-04-2007 11:59 AM
Conflicting distribution: http://security.debian.org expecte chiku Linux software 0 09-04-2007 07:03 AM
Configure lighttpd for HTTP authentication client certificat chimu Web servers 1 21-12-2006 02:47 AM
How to block sites in Squid joproz Linux software 2 18-11-2006 05:00 PM
Before posting C/C++/QT request vivek Coding in General 0 18-03-2005 01:04 PM


All times are GMT +5.5. The time now is 11:39 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38