LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-21-2003, 03:01 PM   #1
czarkevin
LQ Newbie
 
Registered: Aug 2003
Location: Africa
Distribution: RedHat
Posts: 1

Rep: Reputation: 0
Windows ICS detection


Hello.

Am looking for a way to detect if any Windows PC (running Win 98SE, Win 2000 or Win XP) inside my network is using Windows ICS.

I use a RedHat Linux 7.2 Box as my gateway server, and would like to stop those who are using ICS.

Thanks in Advance.

Kevin
 
Old 09-04-2003, 09:38 PM   #2
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
#----------------------------------------
#Unrestrict Local Network |
#----------------------------------------
iptables -A INPUT -i $INTINT -s $INTRA -j ACCEPT
iptables -A OUTPUT -o $INTINT -d $INTRA -j ACCEPT
#----------------------------------------
#Routing Internal -> Out |
#----------------------------------------
iptables -A OUTPUT -o $EXTINT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -o $INTINT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
#----------------------------------------
#Routing Related External -> In |
#----------------------------------------
iptables -A INPUT -i $EXTINT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i $INTINT -m state --state ESTABLISHED,RELATED -j ACCEPT
#----------------------------------------
#Forwarding to/from Internal Network |
#----------------------------------------
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -m state --state NEW -i ! $EXTINT -j ACCEPT
#----------------------------------------
#Masquerading Internal to External |
#----------------------------------------
iptables -t nat -A POSTROUTING -o $EXTINT -j MASQUERADE


In theory, this only allows connections to be initiated from internal sources. That'll get half your problem.

Perhaps add more rules to limit port numbers....
 
  


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
Windows ICS + SuSE bjuteau Linux - Networking 1 07-16-2005 08:57 AM
Problem with Windows ICS PrOdG Linux - Newbie 5 11-05-2003 04:02 PM
ICS Mandrake 9.1 and Windows XP kid88 Linux - Networking 2 08-13-2003 02:02 PM
ICS and Windows Breezwell Linux - Networking 6 01-04-2003 09:08 PM
Can't ftp via Windows XP ICS cbcarbaj Linux - Networking 1 06-08-2002 11:27 AM

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

All times are GMT -5. The time now is 05:22 AM.

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