netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Dropping a specific Owner from a certain IP
@ 2004-09-07 19:46 Scott Mayo
  2004-09-07 20:32 ` Jason Opperisano
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Mayo @ 2004-09-07 19:46 UTC (permalink / raw)
  To: netfilter

I have my filter set up with 1 internal nic and 1 external nic.  My 
workstations are addressed 10.0.0.1-10.0.255.255 with a subnet of 
255.255.0.0.  My filter 10.0.0.1 has Dansguardian and Squid/Squidguard 
which authenticates through my Samba server 10.0.0.5.

I have a generic user 'user' that I give to a lab in the elementary 
(10.0.8.1-10.0.8.255).  Is there some way that I can stop that generic 
login from being used from anywhere else?  I tried the following, but it 
did not do anything.

iptables -A OUTPUT -m owner --uid-owner 10000 -s ! 10.0.8.0/24 -j DROP

10000 is the uid of 'user' on my samba server.  Is the uid actually 
pulled from the filter server?  If so then I guess that I cannot do this.
Thanks for any info.

-- 
Scott Mayo
Technology Coordinator
Bloomfield Schools
PH: 573-568-4564
FA: 573-568-4565
Pager: 800-264-2535 X2549

WindowS
     LinUX!

Duct tape is like the force, it has a light side and a dark side and it
holds the universe together.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dropping a specific Owner from a certain IP
  2004-09-07 19:46 Dropping a specific Owner from a certain IP Scott Mayo
@ 2004-09-07 20:32 ` Jason Opperisano
  2004-09-07 21:05   ` Scott Mayo
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Opperisano @ 2004-09-07 20:32 UTC (permalink / raw)
  To: netfilter

On Tue, 2004-09-07 at 15:46, Scott Mayo wrote:
> I have my filter set up with 1 internal nic and 1 external nic.  My 
> workstations are addressed 10.0.0.1-10.0.255.255 with a subnet of 
> 255.255.0.0.  My filter 10.0.0.1 has Dansguardian and Squid/Squidguard 
> which authenticates through my Samba server 10.0.0.5.
> 
> I have a generic user 'user' that I give to a lab in the elementary 
> (10.0.8.1-10.0.8.255).  Is there some way that I can stop that generic 
> login from being used from anywhere else?  I tried the following, but it 
> did not do anything.
> 
> iptables -A OUTPUT -m owner --uid-owner 10000 -s ! 10.0.8.0/24 -j DROP
> 
> 10000 is the uid of 'user' on my samba server.  Is the uid actually 
> pulled from the filter server?  If so then I guess that I cannot do this.
> Thanks for any info.

apply this filter in dansguardian.  it's the only thing in this scenario
that knows both the src ip and username--it should be able to force them
to be paired up.  i do this with squid+squidguard for a similar setup as
yours...never used dansguardian myself, so i can't get all OT on this
one...

-j

-- 
Jason Opperisano <opie@817west.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dropping a specific Owner from a certain IP
  2004-09-07 20:32 ` Jason Opperisano
@ 2004-09-07 21:05   ` Scott Mayo
  0 siblings, 0 replies; 3+ messages in thread
From: Scott Mayo @ 2004-09-07 21:05 UTC (permalink / raw)
  To: netfilter

Jason Opperisano wrote:

> On Tue, 2004-09-07 at 15:46, Scott Mayo wrote:
> 
>>I have my filter set up with 1 internal nic and 1 external nic.  My 
>>workstations are addressed 10.0.0.1-10.0.255.255 with a subnet of 
>>255.255.0.0.  My filter 10.0.0.1 has Dansguardian and Squid/Squidguard 
>>which authenticates through my Samba server 10.0.0.5.
>>
>>I have a generic user 'user' that I give to a lab in the elementary 
>>(10.0.8.1-10.0.8.255).  Is there some way that I can stop that generic 
>>login from being used from anywhere else?  I tried the following, but it 
>>did not do anything.
>>
>>iptables -A OUTPUT -m owner --uid-owner 10000 -s ! 10.0.8.0/24 -j DROP
>>
>>10000 is the uid of 'user' on my samba server.  Is the uid actually 
>>pulled from the filter server?  If so then I guess that I cannot do this.
>>Thanks for any info.
> 
> 
> apply this filter in dansguardian.  it's the only thing in this scenario
> that knows both the src ip and username--it should be able to force them
> to be paired up.  i do this with squid+squidguard for a similar setup as
> yours...never used dansguardian myself, so i can't get all OT on this
> one...

Dansguardian does not have ACL's so it is impossible there. I can either 
block an ip or block a user, but not on both.  Once Dansguardian hands 
the information back to squid/squidguard (which does have the acls that 
I need), then all I have for an ip is the internal nic of the computer 
so once again I do not have any ip info.

I guess that I will have to setup another occurence of squid so that I 
can use it for acls only, go to dansguardian and back to my other 
occurence of squid which will be used for the cache.
Thanks for the input.

-- 
Scott Mayo
Technology Coordinator
Bloomfield Schools
PH: 573-568-4564
FA: 573-568-4565
Pager: 800-264-2535 X2549

WindowS
     LinUX!

Duct tape is like the force, it has a light side and a dark side and it
holds the universe together.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-07 21:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-07 19:46 Dropping a specific Owner from a certain IP Scott Mayo
2004-09-07 20:32 ` Jason Opperisano
2004-09-07 21:05   ` Scott Mayo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).