 |
 |
Automaticially change network settings?
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2001
Status:
Offline
|
|
Is there a program that can change my network location automaticially, based on what it "sees" on the network?
Three ways I can think of to do this to make my life easier:
1. Use DHCP, and see what the IP is. For example, set it to home when it is 192.168.42.x, and set it to work when it is 10.x.x.x.
2. Set the network location based on what wireless hubs can be seen.
3. Detect what other machines it sees on the network. I know specific servers that will always be there at work, and at home certain devices on the network as well.
Reason this would make things easier for me is due to mandatory proxy settings at work, and one at home that isn't mandatory, but blocks ads. It would be nice to have a switcher program with some logic, so that when at home, it is set to Home, when at work, set to Work, and when elsewhere, fallback to automatic.
|
|
<This space under renovation>
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Apr 2000
Location: Los Angeles, CA
Status:
Offline
|
|
This is possible in Linux though I think it could be done in Mac OS X, though nothing comes to mind at the moment.
What a friend and I did for a Linux setup was to have a script running that would monitor the IP Address given out by the DHCP server as you described. If it detected a pattern, it would switch to the appropriate location, making changes in different services as necessary (e.g. proxy servers, DNS servers, SSH bounces, etc.). To avoid switching to a previous location in a new environment, we had the script record the DHCP server's address (and its MAC address eventually) to know if we are in the correct location, otherwise, it would inform the user of a new location and what steps to take.
I'm sure this can be done for Mac OS X as well, but I'm not sure how to tell the OS to "switch locations" from the shell.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2001
Status:
Offline
|
|
Based on this hint, the command scselect will do it.
Cron would be a way to do this, but isn't as automated as I would like. So any hints on the Linux program combined with scselect might get something working.
|
|
<This space under renovation>
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2001
Status:
Offline
|
|
Well, I think I got this working. Going to test it out a bit more in different network enviornments and then think about releasing it.
|
|
<This space under renovation>
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|