LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-24-2005, 04:56 AM   #1
Jeeves
LQ Newbie
 
Registered: Aug 2005
Location: Dortmund, Germany
Distribution: Gentoo, Mandrake, OpenBSD
Posts: 14

Rep: Reputation: 0
Block internet access for windows machines


Hello!

I have been reading here a lot and finally registered since I didn't find an answer to my question.

We have the following setup: A linux software router/firewall running SuSe and 9 machines using it to access the net. Some of these machines are DualOS (Linux/Win) machines and I want to prevent internet access if the machines boot into windows. My idea right now is, since we do not use DHCP, to give a different IP to the machine if it boots into Windows and easily block access for these IPs.

I would rather have it another way though. Is there any way to make an ipchains script / rule that detects if a machine is broadcasting on any ports 137-139 and then block internet access for a given amout of minutes?

Thanks in advance for you help

Sebastian
 
Old 08-24-2005, 05:11 AM   #2
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Given that you are the admin you could remove the TCP/IP support from all windows machines. That way there would be no netting at all...

Linux would naturally be uninfluenced by this.
 
Old 08-24-2005, 05:01 PM   #3
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
You could set up portsentry on the inward facing interface, add port 139 to its list of "evil ports" and watch it drop those boxes from the routing table :-)
 
Old 08-25-2005, 03:35 AM   #4
Jeeves
LQ Newbie
 
Registered: Aug 2005
Location: Dortmund, Germany
Distribution: Gentoo, Mandrake, OpenBSD
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by cyber-worx
You could set up portsentry on the inward facing interface, add port 139 to its list of "evil ports" and watch it drop those boxes from the routing table :-)
Thanks a lot. Just the thing I was looking for
 
Old 08-26-2005, 08:22 AM   #5
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
can't one also use iptables for this purpose?
 
Old 08-26-2005, 03:54 PM   #6
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Not in the same way.

You can basically tell port sentry to ignore boxes outputting on certain ports.

You could implement the same sort of functionality with iptables and much scripting, most likely involving netcat. but that really would be making life difficult.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to block access to Windows-shares in network pingu Linux - Security 2 11-24-2005 01:29 AM
Can't access my Linux box from my Windows machines. kingkongadp64 SUSE / openSUSE 4 10-29-2005 04:13 PM
Regulate Internet Access on Windows Network RHrulz Linux - Networking 0 02-12-2005 06:55 PM
Two machines and internet access cyclic Linux - Networking 5 02-25-2004 03:38 AM
Internet access through Windows XP LAN fredrikg Linux - Networking 3 09-04-2003 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration