How to add persistent routes in windows XP, vista, 7 and windows servers

Last Updated on Tuesday, 6 July 2010 08:59 Written by admin Monday, 5 July 2010 06:54

Have you ever stumbled across a scenario where your business utilises two separate gateways for remote users to connect to the server. If yes, please continue reading as this might be helpful. Personally, I am not a big fan of  setting up two separate gateways on servers because then we are asking for trouble and I don’t like troubles.

On the other hand my client wants to have two separate gateways for remote users connecting via VPN connections, I was out of options. Quick check on the configurations revealed that on the server there were two network adaptors configured with two separate gateways. The result was in the presence of two gateways packets were getting lost and users were not having good time accessing the service.

Therefore, the only option was to add persistent routes where required and using only one network adaptor. You ask me how  please continue reading, first I configured only one network adaptor of the server to use one IP address as default gateway, lets say 10.0.010 as shown below:

For users coming in via second gateway 10.0.0.50, I added the a persistent route in the server as follows:

  1. I have to know the remote site’s network address for example 192.168.0.0 with mask of 255.255.255.0.
  2. on the server open command prompt and type the following command:
    route -p add 192.168.0.0 mask 255.255.255.0 10.0.0.50
  3. press enter and we are done

Explain command

Ok, it means any packet originating from any machine inside the network subnet of 192.168.0.0 should use the 10.0.0.50 gateway. If for example the above command is not issued to the server any packets coming from 10.0.0.50 gateway will use 10.0.0.10 gateway because that’s the default gateway.

I hope this will help someone. Please leave any advise or comments.

Thank you

How to have different registry settings for each user using windows 2008 terminal server

Last Updated on Monday, 28 June 2010 10:52 Written by admin Monday, 28 June 2010 10:40

Many third party applications depend on windows registry in order to work with database server settings. In environment where we need one single windows 2003 or windows 2008 terminal server to accommodate and service different users with different requirements.

As a example lets say User 1 and User 2 connect remotely to the same windows 2003 or windows 2008 terminal server but both users want different settings in registry for the same third party software installed on the windows terminal server.

So, how to resolve the above issue.First off make sure you understand the working of windows registry key and risk of loosing your server if windows registry is not configured properly.

For every user using windows terminal server make sure under user’s profile the registry settings are saved under the HKEY_CURRENT_USER sub tree. Since this sub tree is profile specific every user will now have their own unique settings for the application.

Change php directives using .ini file in your php mysql hosting account.

Last Updated on Monday, 28 June 2010 10:02 Written by admin Monday, 28 June 2010 09:54

Yesterday, I was testing one of the php & mysql based website and stumble across an issue where I want to change php directives for the test website only.

Therefore, I placed a blank file called “php.ini” in the root folder of the test website and then added the required  php directives in it, after logging back again to my test website the php directives were in action  and php.ini file worked well without effecting any sub sites in the same hosting account. This means site administrators can have different php directive values to the one which are set out by default by the hosting providers.

More information on php.ini directives can be accessed at http://php.net/manual/en/ini.list.php.

In order to wrap up:

  • create a blank ini file called php.ini
  • add php directives as required by the website.
  • Access your website again.

Looking for hosting check out http://hosting.itplace.com.au

Hope this will help someone.

Archives

Promotions

Copyright © 2010 IT Place
WordPress is Free Software released under the GNU/GPL License.