nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-20-2007, 01:54 PM
Junior Member
User
 
Join Date: Nov 2007
My distro: SME
Posts: 2
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
Sponsored Links
  #2 (permalink)  
Old 11-20-2007, 08:33 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
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 11-21-2007, 07:45 AM
Junior Member
User
 
Join Date: Nov 2007
My distro: SME
Posts: 2
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 11-21-2007, 11:01 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 902
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 12:24 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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