Saturday, June 22, 2013

Installing Exchange 2010 Step-by-Step

With our handy guide, you'll have Exchange 2010 installed and running on top of Windows Server 2008 R2 in no time.

This is the second part of a two part series on Microsoft Exchange 2010. In the first article we examined the changes and enhancements in Exchange 2010. This time we'll walk through the steps required to install a fully functional Exchange 2010 server on Windows Server 2008 R2.

System Requirements

First, you need to make sure that your Active Directory (AD) environment and your Exchange server meet the minimum requirements:

  • AD forest functional level is Windows Server 2003 (or higher)
  • AD Schema Master is running Windows Server 2003 w/SP1 or later
  • Full installation of Windows Server 2008 w/SP2 or later OR Windows Server 2008 R2 for the Exchange server itself
  • Exchange server is joined to the domain (except for the Edge Transport server role)

Prerequisites

In this example we are going to install Exchange 2010 on a Windows Server 2008 R2 operating system. Before installing Exchange we need to install some Windows components. It's important that you don't miss anything here because the Exchange 2010 installer does not provide very good feedback if Server 2008 R2 is missing required components.
  1. Install the 2007 Office System Converter: Microsoft Filter Pack
  2. Add the appropriate Windows components/features
    1. Open PowerShell via the icon on the task bar or Start >> All Programs >> Accessories >> Windows PowerShell >> Windows PowerShell. Be sure that PowerShell opened with an account that has rights to install Windows components/features.
    2. Run the following command: Import-Module ServerManager
    3. For a typical install with the Client Access, Hub Transport, and Mailbox roles run the following command: Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart. For a full matrix of the required Windows components with regards to the Exchange server roles see: http://technet.microsoft.com/en-us/library/bb691354.aspx#WS08R2
  3. If your Exchange server will have the Client Access Server role set the Net.Tcp Port Sharing Service to start automatically
    1. Open PowerShell via the icon on the task bar or Start >> All Programs >> Accessories >> Windows PowerShell >> Windows PowerShell. Be sure that PowerShell opened with an account that has rights to modify service startup settings.
    2. Run the following command: Set-Service NetTcpPortSharing -StartupType Automatic
Setting up Microsoft Exchange 2010

Exchange 2010 Installation

Now we're ready to run the Exchange 2010 installer. We'll go through a typical installation that includes the Client Access, Hub Transport, and Mailbox roles. This is what you will want to install if you are only going to be running one Exchange server. If you scale out your Exchange architecture with multiple servers then you will want to familiarize yourself with the Exchange server roles for a proper deployment.
  1. Logon to the desktop of your soon to be Exchange server with a Domain Admin account.
  2. Run setup from the Exchange 2010 media.
  3. Click on "Step 3: Choose Exchange language option" and choose one of the options (Install only languages from the DVD will be fine in most cases).
  4. Click on "Step 4: Install Microsoft Exchange."
  5. Click Next at the Introduction page.
  6. Accept the license terms and click Next.
  7. Make a selection on the Error Reporting page and click Next.
  8. Stick with the default "Typical Exchange Server Installation" and click Next.
  9. Choose a name for your Exchange Organization and click Next.
  10. Make a selection on the Client Settings page and click Next.
  11. If you want your Exchange server to be available externally then choose a domain name such as mail.myorganization.com, click Next.
  12. Make a selection on the Customer Experience Improvement Program page and click Next.
  13. If all the prerequisites are there then you can click Install.
  14. Grab a cup of coffee or take a walk while the installation process does its thing.
  15. When the installation has finished go back to the Exchange installation page click on "Step 5: Get critical updates for Microsoft Exchange."
  16. Install Microsoft Update (if necessary) so that Windows update will check for non-OS updates, and verify that there are no Exchange updates. 

Post Installation Steps

Now that you have Exchange 2010 installed, you will need to do some basic configuration in the Exchange Management console to get mail flowing to/from your server.
  1. Open the Exchange Management Console via Start >> All Programs >> Microsoft Exchange Server 2010 >> Exchange Management Console
  2. Expand Microsoft Exchange On-Premises so you can see: Organization Configuration, Server Configuration, Recipient Configuration, and Toolbox
  3. Under Organization Configuration >> Hub Transport >> Accepted Domains add a new Accepted Domain for the domain you wish to use for email addresses. For example, your AD domain will be listed by default (i.e. ad.myorganization.com). You will probably want to add "myorganization.com" as an Authoritative Domain.
  4. Under Organization Configuration >> Hub Transport >> Send Connectors >> New Send Connector ... >> Pick a name such as "MyOrganization Internet Send Connector" >> change the drop down to "Internet" >> Next >> Add ... >> enter "*" in the Address field and check the box to include all subdomains >> OK >> Next. Now, if you want your Exchange server to route mail directly, then click Next on the Network setting page, but if you want to route your email through an upstream provider then select "Route mail through the following smart hosts" and Add ... a mail gateway such as smtp.comcast.net. Click Next >> Next >> Next >> New
  5. Under Server Configuration >> Hub Transport >> Right-click Default *** >> Properties >> Permission Groups tab, check the box for Anonymous users. This will allow your Exchange server to accept incoming mail delivery from remote mail servers.
  6. Under Recipient Configuration >> Mailbox, create mailboxes for your existing AD users (or create a new user & mailbox)
    1. New Mailbox ... >> select User Mailbox >> Next >> Existing users >> Add ... >> select an existing AD account >> OK >> Next >> specify an alias (e.g. the AD user name) >> Next >> New
  7. If you want to use an SSL certificate for Outlook Web App, IMAP, POP, etc. click on Server Configuration and import or create the certificate

Mail Routing Configuration

Now the final piece you need to configure to receive mail is your external DNS records. The method for configuring your DNS records will depend on whether you host your own DNS or have a provider that hosts it for you. Either way you will need to create an "A" record that points mail.myorganization.com to the IP address of your mail server, and an "MX" record that points myorganization.com to mail.myorganization.com. You will also want to make sure that port 25 is open both inbound and outbound to your Exchange server.

Conclusion

That's it! You should now be able to browse to https://mail.myorganization.com/owa (or https://localhost/owa from the server) and logon via the Web interface to send and receive mail!

Friday, June 21, 2013

Install Squid Proxy Server on Ubuntu 10.04.4 (Youtube,Metacafe,facebook & all vido cache)

1. Install Ubuntu 10.04.4

2. Goto Application>Accessories>Terminal

login from root
Type Sudo -i And Enter

Note:Copy One Line at a time


1:Create file
touch /etc/fw.sh

2:Change permissions
chmod +x /etc/fw.sh

3:Edit File
nano /etc/fw.sh

(Add the script simple internet sharing)

4:Run
/etc/fw.sh

5:Place shortcut
/etc/rc.local

6:Upgrade DNS
apt-get install dnsmasq

7:Update system
apt-get update

8:Install Squid
apt-get install squid

9:Edit squid.conf
nano /etc/squid/squid.conf 
 
Press Cntrl+K To Delete All Existing Data 

(Add the script squid.conf)

10:create storeurl.pl
touch /etc/squid/storeurl.pl
chmod +x /etc/squid/storeurl.pl

11:Edit store URL
nano /etc/squid/storeurl.pl
(Add store URL Script)

12:Install Nginx
apt-get install nginx

13:Edit Nginx.conf
nano /etc/nginx/nginx.conf

(Delete all lines in Nginx.conf)
(Donot Add the script Nginx.conf)

14:Create directories to hold cache files
mkdir /usr/local/www
mkdir /usr/local/www/nginx_cache
mkdir /usr/local/www/nginx_cache/tmp
mkdir /usr/local/www/nginx_cache/files
chown www-data /usr/local/www/nginx_cache/files/ -Rf

15:create nginx.rb file
touch /etc/nginx/nginx.rb
chmod 755 /etc/nginx/nginx.rb

16:edit Nginx.rb
nano /etc/nginx/nginx.rb

(Add script Nginx.rb)

17:Install Ruby
apt-get install ruby

18:create cache dir
mkdir /cache1
chown proxy:proxy /cache1
chmod -R  777 /cache1

19:Start dir
squid -z

20:Start squid
service squid start

21:Restart Nginx
service nginx restart

22:Chek cached videos
ls -lh /usr/local/www/nginx_cache/files

23:chek cache hit
tail -f /var/log/squid/access.log | grep HIT
 
Scripts:
1: internet Sharing Script 
2:  Squid.Conf Script
3: Store URL Script
4: Nginix.Rb Script 

How to apply the Network Sharing USB Settings Function on TP-LINK routers

Suitable for: TD-VG3631, TD-W8968, TD-W8970, TD-W8980, TL-WDR3500, TL-WDR3600, TL-WDR4300, TL-WDR4900, TL-WR1043ND, TL-WR2543ND, TL-WR842ND

Step 1
Plug an external USB hard disk drive or USB flash drive into this Router. Then login to the router.
 
Step 2
On the left menu, go to USB Settings-> Storage Sharing. Make sure the Service Status is Started and the shared storageis Enabled, if not, please click on Start or Enable. If you cannot see the USB device, please double check the USB device is well plugged, then click on Rescan.
 
 
 
 
 
If you want to physically unplug the USB disk from the router, please click on Eject Disk. 
 
  
 
 
 
Step 3
 
Set the User Accounts.
There is a default item (you cannot delete the item or change the User Name).
Besides, you can click Add New User to add three more items (you can delete the items or change all the selections).
 
    
Step 4
 
Enjoy Storage Sharing.
You may click on Open the Disk in the router’s page. (This feature only supported on Internet Explorer 8/7/6.)
 
 
 
Note: If theService Status is stopped or the shared storage is disabled, Open the disk is not clickable.
 
 
 
Or you can press Windows logo + R then type \\192.168.1.1\ or \\192.168.1.1\Volume ID (for example, \\192.168.1.1\Volume1) in the Run dialog box and press Enter. A window will pop up requiring the username and password, please type in the corresponding username and password configured in Step 3.
 
 
 
 
After that, please click OK and you will see the network sharing files of USB device.
 
For how to access to the USB drive via router's Network Sharing function on Mac, please click here.

How to Configure IPSec Tunnel (VPN) on TP-LINK TD-W8960N/TD-W8950ND

This article illustrates a configuration instance for building an IPSec VPN tunnel between two units of TD-W8960N/TD-W8950ND.

If you have only one unit and you want to setup a client to site VPN connection. This FAQ is not available for you and the TD-W8950ND/TD-W8960N has no such function to meet your need. They can´t work as a VPN server.
IPSec tunnel is usually built to connect two or more remote LANs via Internet so that hosts in different remote LANs are able to communicate with each other as if they are all in the same LAN. For more details about VPN tunnel please refer to Wikipedia.

Figure 1 Configuration Instance

Here are step by step instructions for your reference (the following steps are based on Figure 1): 

Configuration on Site A

1.    Login to the management page of TD-W8960N/TD-W8950ND. If you are not sure how to enter the management page, please click here for details.

2.    On the left menu of the management page, please click Advanced Setup and then click IPSec.



3.    On the IPSec main page, please click Add New Connection.


4.    On the IPSec configuration page, please do configuration as follows:



IPSec Connection Name: Define a name for this connection;

Remote IPSec Gateway Address: Input he WAN IP address of site B;
Site A

Tunnel access from local IP addresses: For a whole LAN please select Subnet; for a single host please select Single Address. In this instance we select Subnet;

IP Address for VPN: Input the LAN IP range of site A. In this instance, we should input 192.168.1.0;

IP Subnetmask: Input the LAN subnet mask of site A. In this instance, we should input 255.255.255.0;

Site B

Tunnel access from remote IP addresses: For a whole LAN please select Subnet; for a single host please select Single Address. In this instance we select Subnet;

IP Address for VPN: Input the LAN IP range of site B. In this instance, we should input 192.168.2.0;

IP Subnetmask: Input the LAN subnet mask of site B. In this instance, we should input 255.255.255.0;

5.    Leave other settings as the default value and click Save/Apply.

Configuration on Site B

1.    Log onto the management page of TD-W8960N/TD-W8950ND.

2.    On the left menu of the management page, please click Advanced Setup and then click IPSec.

3.    On the IPSec main page, please click Add New Connection.

4.    On the IPSec configuration page, please do configuration as follows:


IPSec Connection Name: Define a name for this connection;
Remote IPSec Gateway Address: Input he WAN IP address of site B;

Site A

Tunnel access from local IP addresses: For a whole LAN please select Subnet; for a single host please select Single Address. In this instance we select Subnet;

IP Address for VPN: Input the LAN IP range of site B. In this instance, we should input 192.168.2.0;

IP Subnetmask: Input the LAN subnet mask of site B. In this instance, we should input 255.255.255.0;

Site B

Tunnel access from remote IP addresses: For a whole LAN please select Subnet; for a single host please select Single Address. In this instance we select Subnet;

IP Address for VPN:
Input the LAN IP range of site A. In this instance, we should input 192.168.1.0;

IP Subnetmask:
Input the LAN subnet mask of site A. In this instance, we should input 255.255.255.0;

5. Leave other settings as the default value and click Save/Apply.

Check the IPSec Connection

1. On the host in LAN1, press [Windows Logo] + [R] to open Run dialog. Input “cmd” and hit OK.


2. In the CLI window, type in “ping 192.168.2.x” (“192.168.2.x” can be IP address of any host in LAN2). Then press [Enter].


If Ping proceeds successfully (gets replies from host in LAN2), the IPSec connection must be working properly now.

Here until, all basic configuration required for an IPSec tunnel is completed. If one of the site has been off line for a while, for example, if Site A has been disconnected, on Site B you need to click Disable and then click Enable after Site A back on line in order to re-establish the IPSec tunnel.

If there are any further problems, please click here to contact TP-LINK technical support.

How To configure TL-WA5110G/TL-WA5210G to wireless AP Client Router mode

Step 1
Connect your computer to TL-WA5110G/TL-WA5210G with a LAN cable and log into the Web-based Utility by entering the IP address192.168.1.254 into Web Browser.
 
 
Step 2
Configure the operation mode to AP Client Router and connect to the wireless network.
  
1. Click on Operation mode on the left, select AP Client Router, then click on Save.
 
 
  
2. Click on Wireless -> Wireless Mode on the left side, select Client.(In that page, only Client mode is available)



3. Click on Survey/Search button to view the available wireless networks.





Connect to the root WIFI Network.




After click on Connect button, the SSID and the MAC address of the root router/AP will be shown in the Client mode box automatically.
Or if you know the SSID or the MAC address of the root router/AP, you can type them in the SSID or MAC of AP box manually, and then Click on Save to save the settings
 
3. Click on Save.
 
Step 3
 
Click Network->WAN. Then select the correct type for WAN Connection Type. If you are not sure about the WAN Connection type, please contact your service provider about this.
 
For Dynamic IP: You just need to select Dynamic IP from the drop-down menu and then click on Save.
 
For Static IP: Please select Static IP from the drop-down menu, and input the correct parameters in the boxes. The parameters are given by your internet service provider (ISP). Then click on Save
 

For PPPOE: Please select PPPOE from the drop-down menu, and input the correct parameters (Username and Password) in the boxes. The parameters are given by your service provider. Then click Save.
 
 
Step 4
Click Security settings. Select the same security settings as the network you want to connect. Click Save and reboot the device.
WEP.
 
  
Or WPA-PSK/WPA2-PSK
 
 

Step 5
After the configuration, please refer to the link in Step 1 again to change the IP address of your computer back to Obtain IP address automatically.

NOTE: Just in case, if the IP address of the root router/AP is 192.168.1.254 as well, you will need to change the IP address of TP-LINK device to avoid IP conflict. You can do it as follows:


1.     Click Network->LAN on the left side.
2.     Change the IP Address to 192.168.2.254.
 
 
 3.     Click on save, and reboot your device.