Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to detect that users are stealing internet connection?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zOOz
n00b
n00b


Joined: 24 Sep 2003
Posts: 27
Location: Lithuania

PostPosted: Mon Jan 17, 2005 9:18 pm    Post subject: how to detect that users are stealing internet connection? Reply with quote

i have router connected to my lan. some users from lan are allowed to to go outside, some not. users who are allowed to go outside create proxy o something like NAT and let others from lan (not allowed to go outside) users ti use internet connection.
so i wonder to know, how can i detect it? how to stop it, without disconnecting them physically?

thanks for help
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2022
Location: Vegas Baby!

PostPosted: Tue Jan 18, 2005 6:09 am    Post subject: Reply with quote

Are we talking wireless or wired?
Back to top
View user's profile Send private message
robdd
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2005
Posts: 142
Location: Sydney Australia

PostPosted: Tue Jan 18, 2005 11:07 am    Post subject: Reply with quote

How are your users getting their IP addresses ? You could use the sub-net the user is on to decide whether to allow them internet access or not - e.g. users with IPs of 192.168.1.x are allowed internet access while users with IPs of 192.168.0.x are barred. You should be able to configure this using the routing tables (is the router a Gentoo box ?).

If you are using DHCP there are ways of detecting which user is connecting (e.g. I think you can use the MAC address of the network card) and you could allocate an IP address in the "permitted" or "barred" range accordingly.

Another way would be to make users who want internet access log in to, say, a web page and provide a password. The web server could then run a script to allow internet access to that IP. This would avoid the problem of collecting MAC address, but is a lot more work to setup.

HTH
_________________
Rob Diamond
Gentoo Hack, hack, hacker
Sydney, Australia
Back to top
View user's profile Send private message
zOOz
n00b
n00b


Joined: 24 Sep 2003
Posts: 27
Location: Lithuania

PostPosted: Tue Jan 18, 2005 12:27 pm    Post subject: you dont understand me Reply with quote

i'm using MAC identification and other things to identify my users.

e.g. user 192.168.1.29 get internet from me oficially, but user 192.168.1.3 dont get internet from me and he is my LAN user w/o internet. so, user 192.168.1.29 creates proxy or something like NAT and gives internet connection to user 192.168.1.3.
how to detect that kind of stealing? how to stop that?
Back to top
View user's profile Send private message
zOOz
n00b
n00b


Joined: 24 Sep 2003
Posts: 27
Location: Lithuania

PostPosted: Tue Jan 18, 2005 12:30 pm    Post subject: Reply with quote

Ateo wrote:
Are we talking wireless or wired?


wired.
Back to top
View user's profile Send private message
vonhelmet
l33t
l33t


Joined: 06 Apr 2004
Posts: 770
Location: Somewhere in a school

PostPosted: Tue Jan 18, 2005 12:33 pm    Post subject: Re: you dont understand me Reply with quote

zOOz wrote:
i'm using MAC identification and other things to identify my users.

e.g. user 192.168.1.29 get internet from me oficially, but user 192.168.1.3 dont get internet from me and he is my LAN user w/o internet. so, user 192.168.1.29 creates proxy or something like NAT and gives internet connection to user 192.168.1.3.
how to detect that kind of stealing? how to stop that?


Do you mean that user 192.168.1.29 sets himself up as a proxy/gateway of some sort for 192.168.1.3 to run through?

Could you lock down the individual machines so people can't change their proxy settings, or is that out of the question?

You should be able to do this with IPTables in some way, but I'm not the expert on that.
_________________
My blog
nvtuner software - enhance your AGP Geforce 6800 or 6200!
Back to top
View user's profile Send private message
zOOz
n00b
n00b


Joined: 24 Sep 2003
Posts: 27
Location: Lithuania

PostPosted: Tue Jan 18, 2005 12:37 pm    Post subject: Re: you dont understand me Reply with quote

vonhelmet wrote:
zOOz wrote:
i'm using MAC identification and other things to identify my users.

e.g. user 192.168.1.29 get internet from me oficially, but user 192.168.1.3 dont get internet from me and he is my LAN user w/o internet. so, user 192.168.1.29 creates proxy or something like NAT and gives internet connection to user 192.168.1.3.
how to detect that kind of stealing? how to stop that?


Do you mean that user 192.168.1.29 sets himself up as a proxy/gateway of some sort for 192.168.1.3 to run through?


yes.

[quote="vonhelmet"]
zOOz wrote:
Could you lock down the individual machines so people can't change their proxy settings, or is that out of the question?

You should be able to do this with IPTables in some way, but I'm not the expert on that.


i can't lock their machines, because they do with their computers what they want.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Jan 18, 2005 7:23 pm    Post subject: Reply with quote

If you have Cisco switches you could look into implementing Private VLANs.
By that every traffic (even within the same subnet) goes through an designated device (normally the gateway) where the traffic could be filtered accordingly to your needs.

HTH
T.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
robdd
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2005
Posts: 142
Location: Sydney Australia

PostPosted: Wed Jan 19, 2005 3:21 am    Post subject: Reply with quote

If your users are clever enough to set up NAT for one another then I can't see how you can stop them except by having physically separate LAN segments. Even then you couldn't allow the two LANs to talk to each other. You would also have to restrict physical access to the "Internet" LAN, otherwise a "non-Internet" user could connect in with an unused IP address, and his friend could NAT for him just like before.

Your users are just too smart :)
_________________
Rob Diamond
Gentoo Hack, hack, hacker
Sydney, Australia
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Jan 19, 2005 8:13 am    Post subject: Reply with quote

@robdd:
I agree with you, his users are more 'sophisticated' than the average ones.

OTOH by
- disallowing traffic from unkown/unused ip addresses
- filter on known MAC addresses
- disallow any P2P traffic between the workstations
- filtering out any kind of VPN traffic
- implementing L7 traffic control
- setup a DMZ with authenticating proxy
- ...

he could raise the barrier above the 'cleverness' of his users :wink:

The better way would be of course to think (thirst!) about a real security concept and not longer fight symptoms.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Twink
Apprentice
Apprentice


Joined: 06 Dec 2002
Posts: 178
Location: New Zealand

PostPosted: Thu Feb 17, 2005 9:22 pm    Post subject: Reply with quote

wouldn't the TTL be one lower on a box that NAT/proxys through another?
you could also occasionally scan known machines for open proxies....
Back to top
View user's profile Send private message
djnauk
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 183
Location: Caerphilly, Wales, UK

PostPosted: Thu Feb 17, 2005 10:32 pm    Post subject: Reply with quote

If you use DHCP to issue IP addresses, there is an option to tell clients to disable IP forwarding (i.e. creating NAT). Would stop NAT, but not proxies.

Code:
authorative;

ddns-update-style none;
deny bootp;
one-lease-per-client true;

subnet 192.168.1.0 netmask 255.255.255.0 {

  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;
  option domain-name-servers 192.168.1.1;
  option netbios-name-servers 192.168.1.1;
  option domain-name "cardiff.djnauk.co.uk";
  option ip-forwarding false;
  option default-ip-ttl 128;
  option default-tcp-ttl 128;
  option smtp-server 192.168.1.1;

  pool {
    range 192.168.1.2 192.168.1.6;
    default-lease-time 21600;
    max-lease-time 86400;
    deny unknown-clients;
  }

  pool {
    range 192.168.1.253 192.168.1.254;
    default-lease-time 300;
    max-lease-time 600;
    allow unknown-clients;
  }
}


TTL is useful, however, different systems have differnet TTLs. I know Windows and Linux use different TTL values. Also, in the case of proxies, it wouldn't help as the connection would be re-issued by the server, and so TTL would be the same and as locally created connection.
_________________
Jonathan Wright (Technical Director, JAB Web Solutions)

UK Hosting & Reseller Hosting from JAB Web Solutions
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum