#65398 - 2002-05-12 05:48 PM
Deny Network/Internet access
|
Nexans
Lurker
Registered: 2002-05-12
Posts: 1
|
I wonder how I can deny access to the internet for ONE user in Windows XP? I get internet from a router running on port 192.168.0.1 and it will work to deny access to that ip, or completely close the network. I assume this will be easy done with a logon-script, but i`m not that into scripting. I don`t care how it`s done only noe of the users can`t get access to the internet.
|
|
Top
|
|
|
|
#65399 - 2002-05-12 10:29 PM
Re: Deny Network/Internet access
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Nexans,
Welcome to the board!
Can't you deactivate this "bad" user from User Manager or Active Directory Users and Computers?
If that is not the case...
code:
if @userid = "jdoe" $RC = Shutdown("", "Sorry, you do not have access to this network!", 2, 1, 1) endif
Or..
code:
if @userid = "jdoe" and @wksta = "machineid" $RC = Shutdown("", "Sorry, you do not have access to this machine!", 2, 1, 1) endif
If you are wanting this user to be able to login to your network, but not "surf" the Internet or the Network itself; these are Policies that really should be set by Microsoft's Policy Editor.
HTH,
- Kent [ 13 May 2002, 07:51: Message edited by: kdyer ]
|
|
Top
|
|
|
|
#65402 - 2002-05-13 10:26 PM
Re: Deny Network/Internet access
|
Anonymous
Anonymous
Unregistered
|
assuming his lan is 192.168.0.x and some internal router is 192.168.0.2 , something as the following for logon will be sufficient.
route delete 0.0.0.0 route add -p 192.168.0.0 mask 255.255.255.0 192.168.0.2 metric 1 route add -p 0.0.0.0 mask 0.0.0.0 127.0.0.1 metric 2 [ 13 May 2002, 22:28: Message edited by: novastar ]
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 952 anonymous users online.
|
|
|