Solved

How to add routes to all domain computers to use 2 routers

Posted on 2003-11-10
2
266 Views
Last Modified: 2010-04-13
HI,

setup:

Win2K domain, 35WinXP PC's, 4 Win2/3k servers.
1 Leased line router,  1 ADSL router

- Leased line router to china used for Citrix and Term. Serv app,
- ADSL router for specific web traffic.
- A Symantec Proxy takes care of policy enforced web traffic through the ADSL.
- THe DHCP gives a default router (leased line) option to the computers so even if they disable the proxy use for surfing they can't get on the web (they'll try to resolve on the intranet leased line).

I need to give access to one IP address on the net trough the ADSL line

I can do this by manualy adding a route to every PC like

Route Add 213.156.0.0 MASK 255.255.255.48 10.0.0.1 METRIC 1

Can't I do this programaticly or any other easy way?

thanks


ez
0
Comment
Question by:ezjurgen
2 Comments
 
LVL 6

Accepted Solution

by:
rj-smith earned 125 total points
ID: 9714463

Well if it's only one user then not much need to do it programmatically but you could use a logon script I guess. However unless you built some logic into the script then it would be applied to all workstations.

If you use something like kixtart (www.kixtart.org) in your logon scripts then you can get quite sophisticated and have the script detect the client IP address and then add the route if necessary (or remove the route if necessary).

If you want to avoid scripting and your leased line router is managed by yourself then you could simply add a route to it (since it's your default gateway) and add an acl or filter on your ADSL router to only allow traffic from certain IP addresses, i.e. your proxy server and other allowed IP addresses.

Just a comment on your route statement above, if you want the route to be presistent then you need to use the -p flag.

Hope that helps.
0
 
LVL 1

Author Comment

by:ezjurgen
ID: 9897000
any idea how to do this via vbscripts? Logon script is in vb....


jurgen
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Adding Computers to AD groups through an SCCM Task Sequence
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question