View previous topic :: View next topic |
Author |
Message |
zOOz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/379414113415d0ef418ff9.gif)
Joined: 24 Sep 2003 Posts: 27 Location: Lithuania
|
Posted: Mon Jan 17, 2005 9:18 pm Post subject: how to detect that users are stealing internet connection? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Ateo Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 02 Jun 2003 Posts: 2022 Location: Vegas Baby!
|
Posted: Tue Jan 18, 2005 6:09 am Post subject: |
|
|
Are we talking wireless or wired? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robdd Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Jan 2005 Posts: 142 Location: Sydney Australia
|
Posted: Tue Jan 18, 2005 11:07 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zOOz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/379414113415d0ef418ff9.gif)
Joined: 24 Sep 2003 Posts: 27 Location: Lithuania
|
Posted: Tue Jan 18, 2005 12:27 pm Post subject: you dont understand me |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zOOz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/379414113415d0ef418ff9.gif)
Joined: 24 Sep 2003 Posts: 27 Location: Lithuania
|
Posted: Tue Jan 18, 2005 12:30 pm Post subject: |
|
|
Ateo wrote: | Are we talking wireless or wired? |
wired. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vonhelmet l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 06 Apr 2004 Posts: 770 Location: Somewhere in a school
|
Posted: Tue Jan 18, 2005 12:33 pm Post subject: Re: you dont understand me |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zOOz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/379414113415d0ef418ff9.gif)
Joined: 24 Sep 2003 Posts: 27 Location: Lithuania
|
Posted: Tue Jan 18, 2005 12:37 pm Post subject: Re: you dont understand me |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Tue Jan 18, 2005 7:23 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
robdd Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Jan 2005 Posts: 142 Location: Sydney Australia
|
Posted: Wed Jan 19, 2005 3:21 am Post subject: |
|
|
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 ![Smile :)](images/smiles/icon_smile.gif) _________________ Rob Diamond
Gentoo Hack, hack, hacker
Sydney, Australia |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Jan 19, 2005 8:13 am Post subject: |
|
|
@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
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 |
|
![](templates/gentoo/images/spacer.gif) |
Twink Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/15523925833f1f323a88b20.gif)
Joined: 06 Dec 2002 Posts: 178 Location: New Zealand
|
Posted: Thu Feb 17, 2005 9:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
djnauk Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Southpark/avatar20.gif)
Joined: 11 Feb 2003 Posts: 183 Location: Caerphilly, Wales, UK
|
Posted: Thu Feb 17, 2005 10:32 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|