changing the default gateway IP via a logon script???

Gow

Member
Aug 10, 2000
35
0
0
Hi all

I am new to the world of servers and was wondering if you would be able to help me...

Can the default gateway IP be changed using a logon script ???

I have a network that need some people to access the internet.
I can block IPs but i want to know if i can change the default gateway IP with a logon script, then the people allowed to use the internet can use any system they want....

Or is there a better way of doing this????

Thanks for the help

Gow
 

Confused

Elite Member
Nov 13, 2000
14,166
0
0
You may be able to get some help from here.

I haven't tried it, but it may work for you.


Confused
 

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
Originally posted by: Gow
Hi all

I am new to the world of servers and was wondering if you would be able to help me...

Can the default gateway IP be changed using a logon script ???

I have a network that need some people to access the internet.
I can block IPs but i want to know if i can change the default gateway IP with a logon script, then the people allowed to use the internet can use any system they want....

Or is there a better way of doing this????

Thanks for the help

Gow

How are they accessing the internet...are they going through a proxy or at NAT box or what?
 

Garion

Platinum Member
Apr 23, 2001
2,331
7
81
It would be easier to NOT hand out a default gateway via DHCP, then use the "route" command in your login script to add a static route to their box. "route add 0.0.0.0 mask 0.0.0.0 (gateway IP)" should do it. It will disapear when they reboot. In the login script for people not allowed, use "route delete 0.0.0.0" so it nukes it when they login.

- G
 

Gow

Member
Aug 10, 2000
35
0
0
They will be accessing the net through a router\modem\4 port switch using static IPs.

I decided to use static IPs because i thought it would be easier to control net access..