Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-11-10
2
Medium Priority
?
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
rj-smith earned 375 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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…
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

721 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