Search

Ads

Friday, November 20, 2009

SEND MAIL (LINUX ENTERPRISE MAIL SERVER) Contribution by ALI

SEND MAIL (LINUX ENTERPRISE MAIL SERVER)

Mail Server:
MTA (Mail Transfer Agent). It has some certain duties to do.


i) Send mail on behalf of a designated domain.
ii)
Receive mails by verifying proper account database.
iii) Relay/Allow all mails of trusted/authorized source.
iv) Discard/Block irrelevant emails and across.
v) Any MTA using two protocols SMTP (simple mail transfer protocol) for sending emails and POP (post office protocol) receiving emails. For receiving emails IMAP is also getting used.

Note:

1) In case of pop3 once the email has been fetched it will be flushed out from server
2) In case of IMAP one copy will always be on server and not removed but for this purpose we need heavy storage on server.

Linux/Unix Email Server:

There are several email servers used in Linux/Unix families. Some of those are


i) Sendmail (Freeware) http://sendmail. org
ii) Qmail (Freeware) http://lifewithqmai l.org
iii) Postfix


Sendmail Configuration:

Following packages must be installed

Packages: sendmail sendmail-cf
Configuration File: /etc/mail/sendmail.cf
/etc/mail/sendmail.mc
Other Config Files: /etc/mail/local- host-names
/etc/mail/access
/etc/aliases
/var/spool/mail
/var/spool/mqueue

Following services takes part in this process so should be up

Services: sendmail

Download and install required packages and lets move for further configuration.

Configuration:
In configuration file find the following parameters and change those to your own ones.

# vi /etc/mail/sendmail.mc

Find the following line in this file and comment it out. For commenting out any line in sendmail.mc put “dnl” in start of that.

# dnl # DAEMON_OPTIONS( `Port=smtp, Addr=127. 0.0.1, Name=MTA')dnl

Now save and exit

# :wq!

To update this change in configuration file we use m4 utility.

# m4 /etc/mail/sendmail.mc /etc/mail/sendmail.cf

Now edit local-host-names file and put your default domain name for which you setting up sendmail to receive emails.

# vi /etc/mail/loca- host-names

Put your domain address there then save and exit
Now edit your access file to relay trusted domains and your networks.

# vi /etc/mail/access

Here is just an example of this file

redhat.com RELAY (for relaying a domain)
192.168.0 RELAY (for relaying a network)
10.0.0 REJECT (for rejecting a network)
yahoo.com REJECT (for rejecting a domain emails)

Ok now check your dns server that its pointing mx records towards this email server.

Installing POP3 Service:

Package imap-2001a

After installing this package enable IPOP3 service in xinetd. It’s a xinetd service after installing go to the xinetd folder located in /etc/exinet. d and edit ipop3 file change the parameter from

disable=yes to disable=no

Now start sendmail service and you are ready to go.

# service sendmail start

Test Mail:

Send a test mail to verify.

# mail recipient address –v
Subject: now press ctrl+d
Enter text here now press ctrl+d twice and your email is gone

Note:
You should be taking care of following things.

i) your hostname should be same as per you entered in local-host-names file
ii) your dns mx records should be point towards your newly configured mail server
iii) change hostnames in following files as per you entered in local-host-names

# /etc/sysconfig/ network
#/etc/hosts

Tuesday, November 17, 2009

Enlish New Movie 2012




















2012 2009 Hollywood Movie Watch Online : DivXDen Link :

2012 2009 Hollywood Movie Watch Online


2012 2009 Hollywood Movie Watch Online : Zshare Link :

2012 2009 Hollywood Movie Watch Online



2012 2009 Hollywood Movie Watch Online : Stagevu Link :


2012 2009 Hollywood Movie Watch Online


2012 2009 Hollywood Movie Watch Online : WiseVid Link :

2012 2009 Hollywood Movie Watch Online

Configuring DHCP on a Cisco Router

When would you need this: When using the router as a DHCP server to provide IP addresses and related information to DHCP clients.

Specials Requirements: DHCP server software is supported for these series; 800, 1000, 1400, 1600, 1700 series (support for the Cisco 1700 series was added in Cisco IOS Release 12.0[2]T), 2500, 2600, 3600, 3800, MC3810, 4000, AS5100, AS5200, AS5300, 7000, 7100, 7200, MGX 8800 with an installed Route Processor Module, 12000, uBR900, uBR7200, Catalyst 5000 family switches with an installed Route Switch Module, Catalyst 6000 family switches with an installed MultiLayer Switch Feature Card, and Catalyst 8500.

STEPS:

1. Define the DHCP address pool,

Router(config) #ip dhcp pool POOLNAME

Router(dhcp- config)#network XXX.XXX.XXX. XXX YYY.YYY.YYY. YYY

where,

XXX.XXX.XXX. XXX is the network address to be used by the DHCP pool

YYY.YYY.YYY. YYY is the subnet mask for the network.

You can replace the subnet mask by a (/PREFIX) to provide the subnet mask.

2. Configure the parameters to be sent to the client,

Router(dhcp- config)#dns-server XXX.XXX.XXX. XXX

To provide the DNS server IP address

Router(dhcp- config)#default-router XXX.XXX.XXX. XXX

To provide the IP address of the default gateway

Router(dhcp- config)#domain-name NAME

To provide the name of the domain of the network (if in a domain environment)

Router(dhcp- config)#netbios-name- server XXX.XXX.XXX. XXX

To provide the IP address of the NetBIOS name server

Router(dhcp- config)#lease DAYS HOURS MINUTES

To define the lease time of the addresses given to the client. You can make it infinite by using this command instead; lease infinite

There is a large group of settings that you can configure to be sent to the clients, and I have only mentioned the most frequently used.

3. Configure the IP addresses to be excluded from the pool. This is usually done to avoid the conflicts caused by the DHCP with servers and printers. Remember to give ALL servers and network printers static IP addresses in the same range of the DHCP pool. And then exclude these addresses from the pool to avoid conflicts.

Router(config) #ip dhcp excluded-address XXX.XXX.XXX. XXX

Use the command in the previous form to excluded a single address. You can repeat it as much as you see fit for the IP addresses you want to exclude. Or,

Router(config) #ip dhcp excluded-address YYY.YYY.YYY. YYY ZZZ.ZZZ.ZZZ. ZZZ

where,

YYY.YYY.YYY. YYY is the start of the range to be excluded from the pool

ZZZ.ZZZ.ZZZ. ZZZ is the end of the range

This way you can exclude a range or ranges of IP addresses and reserve them for static addresses use.

4. Enable the DHCP service in the router

Router(config) #service dhcp

To disable it use

Router(config) #no service dhcp

Usually the DHCP service is enabled by default on your router.

5. Use the following commands to check the DHCP operation on the router:

Router#show ip dhcp binding

This command shows the current bindings of addresses given to clients

Router#show ip dhcp server statistics

This command show the DHCP server statistics.

Router#debug ip dhcp server

This debug command is used to troubleshoot DHCP issues.

Implementation notes:

1. If you have a DHCP server other than the router, and you would like to let the router to forward the DHCP requests from a certain LAN to the DHCP server laying outside that LAN, go to the Ethernet interface that does not have the DHCP server and type the following command:

Router(config- if)#ip helper-address XXX.XXX.XXX. XXX

where XXX.XXX.XXX. XXX is the IP address of the server laying outside this LAN.

2. You can create a DHCP database agent that stores the DHCP binding database. A DHCP database agent is any host, for example, an FTP, TFTP, or RCP server that stores the DHCP bindings database. You can configure multiple DHCP database agents and you can configure the interval between database updates and transfers for each agent. To configure a database agent and database agent parameters, use the following command in global configuration mode:

Router(config) #ip dhcp database url [timeout seconds | write-delay seconds]

An example url is this

ftp://user:password @ 192.168.0.3/ router-dhcp (remove the spaces before implementing)

If you choose not to configure a DHCP database agent, disable the recording of DHCP address conflicts on the DHCP server. To disable DHCP address conflict logging, use the following command in global configuration mode:

Router(config) #no ip dhcp conflict logging

3. DHCP service uses port 67 and 68. So, if you are using a firewall, remember to open these ports.

4. To clear DHCP server variables, use the following commands as needed:

Router#clear ip dhcp binding *

If you want to clear a certain binding not all of them, replace the * in the previous command with the IP address to be cleared.

Router#clear ip dhcp server statistics

Migration of DC from Windows Server 2000 to Windows Server 2003

Scenario

A Windows 2000 server domain controller running on old hardware has to be replaced with a new hardware running Windows 2003 Server as the Domain Controller. This tutorial will explain how to migrate win server 2000 to win server 2003 includes Domain Controller, DNS, DHCP, File server, Rename new win server 2003 same as your old win server 2000.


In this tutorial we are assuming that you are using same domain name as on your new win server 2003

Make sure to have the latest backup of the existing server.

1. Make Sure SP4 on the existing Windows 2000 domain controller

2. Run ADPREP to prepare the forest and domain for windows 2003

  • Put the Windows 2003 Server installation CD, into the CD drive of the windows 2000 server.
  • Go to Start -> Run and type cmd and click on OK button.
  • At the command prompt type x:\i386\adprep /forestprep where x is the drive letter of the CD drive. Make sure the command exits with a success message. Reboot is not necessary.
  • From the command prompt type x:\i386\adprep /domainprep where x is the drive letter of the CD drive on the server. Make sure the command exits with a success message. Reboot is not necessary.

Note: In case of any errors, you may look at the log files residing under %systemroot% \system32\ debug\adprep\ log\ folder.

Important Note :- If you want to upgrade win server 2000 to win server 2003 R2 insert the Windows Server 2003 R2 installation disk 2 to run the forestprep and domainprep otherwise you see the following error

The Active Directory Installation Wizard cannot continue because the forest is not prepared for installing Windows Server 2003. Use the Adprep command-line tool to prepare both the forest and the domain. For more information about using the Adprep, see Active Directory Help.

The version of the Active Directory schema of the source forest is not compatible with the version of Active Directory on this computer.

3. On the new server hardware, install Windows 2003 Server and join it to the existing domain (i.e win 2000 domain). Also, install the DNS server (need not configure). Make sure you also install all the available service packs.

Install DNS Server on win 2003 Server

Open Windows Components Wizard from the following

Click Start, click Control Panel, and then click Add or Remove Programs.

Click Add/Remove Windows Components.

In Components, select the Networking Services check box, and then click Details.

InSubcomponents of Networking Services, select the Domain Name System (DNS) check box, click OK, and then click Next.

If Windows asks for a CD-ROM, do as it requests. When it is done, click Finish and you'll have your very own DNS server.

4. On win 2003 server Run DC Promo and make this server as the additional domain controller to the existing domain:

  • Go to Start -> Run and type dcpromo and click on OK button.
  • On the Active Directory Installation Wizard screen, follow the wizard and make this server as an additional domain controller for the existing domain.
  • Reboot the Server.

5. Wait for replication to happen. This may take around 30 minutes or longer, depending on the amount of data that has to be replicated from the SYSVOL folder of Win2000 server. You can use REPLMON.EXE, to monitor the replication status, which is available from the support tools package in your win 2003 server CD, or you can even check the event log on the Win server 2003 for the file replication service (FRS) status.

6. Check the DNS on the new Win server 2003.

  • Check if all the details have been replicated
  • Check if the forwarders are setup correctly
  • Check if the event log is clear of errors

Transfer FSMO roles and GC from win server 2000 to win server 2003

a) Transfer the FSMO Roles to the new Server.

There are 5 FSMO roles: Domain naming Master, Schema Master, RID Master, PDC Emulator and Infrastructure Master. There must be a domain controller that owns each one of those roles. These roles can be transferred to another Domain Controller either by using the MMC GUI tool or by using the ntdsutil.exe command line utility. Here are the steps to transfer FSMO roles by using the MMC tool:

Transferring RID, PDC, and Infrastructure Master roles:

  • Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
  • Right-click the icon next to Active Directory Users and Computers, and then click Connect to Domain Controller.

Note: If you are not on the domain controller where you want to transfer the role, you need to take this step. It is not necessary if you are connected to the domain controller whose role you want to transfer.

  • Click the domain controller, which will be the new role holder, and then click OK.
  • Right-click Active Directory Users and Computers icon and then click Operation Masters.
  • In the Change Operations Master dialog box, click the appropriate tab (RID, PDC, or Infrastructure) for the role you want to transfer. You need to transfer all the 3 roles.
  • Click Change in the Change Operations Master dialog box.
  • Click OK to confirm that you want to transfer the role.
  • Click OK.
  • Click Cancel to close the dialog box.

Transferring the Domain Naming Master role:

  • Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Domains and Trusts.
  • Right-click the Active Directory Domains and Trusts icon, and then click Connect to Domain Controller.

Note: If you are not on the domain controller where you want to transfer the role, you need to take this step. It is not necessary if you are connected to the domain controller whose role you want to transfer.

  • Click the domain controller that will be the new role holder, and then click OK.
  • Right-click Active Directory Domains and Trusts, and then click Operation Masters.
  • In the Change Operations Master dialog box: click Change.
  • Click OK to confirm that you want to transfer the role.
  • Click OK.
  • Click Cancel to close the dialog box.

Transferring the Schema Master Role:

You can use the Schema Master tool to transfer the role. However, the Schmmgmt.dll dynamic-link library must be registered in order to make the Schema tool available as an MMC snap-in.

Registering the Schema Tool:

  • Click Start, and then click Run.
  • Type regsvr32 schmmgmt.dll, and then click OK. A message should be displayed stating that the registration was successful.

Transferring the Schema Master Role:

  • Click Start, click run, type mmc, and then click OK.
  • On the Console menu click Add/Remove Snap-in.
  • Click Add.
  • Click Active Directory Schema.
  • Click Add.
  • Click Close to close the Add Standalone Snap-in dialog box.
  • Click OK to add the snap-in to the console.
  • Right-click the Active Directory Schema icon, and then click Change Domain Controller.

Note: If you are not on the domain controller where you want to transfer the role, you need to take this step. It is not necessary if you are connected to the domain controller whose role you want to transfer.

  • Click Specify Domain Controller, type the name of the domain controller that will be the new role holder, and then click OK.
  • Right-click Active Directory Schema and then click Operation Masters.
  • In the Change Schema Master dialog box: click Change.
  • Click OK.
  • Click OK.
  • Click Cancel to close the dialog box.

Transfer the Global Catalogue role:

  • Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Sites and Services.
  • Under sites, expand your site name, then Servers and then your server name so that you can see NTDS Settings. Now right click on the NTDS Settings under the server that you want to demote (Win2K) and choose properties, in the window that appears, un-check Global Catalog and click OK.
  • Now right click on the NTDS Settings under the server that you want to promote (Win2K3) and choose properties, in the window that appears, check Global Catalog and click OK.
  • After making these changes wait about fifteen minutes till the Global Catalog replicates between domain controllers, after it you can continue with further configurations.
Transfer files/permissions over win server 2003

If you are using this server as file server you need to copy all your data in to the new win server 2003 with the following procedure

For this purpose you can use FSMT tool on Win2K3 server (FSMT cannot be run on Win2K), which can be downloaded from the Microsoft Website. Using FSMT all the shared files and folders can be transferred from the old Win2K server to the new Win2K3 server without losing the permissions on the shared folders.

If you want complete detailed Instructions how to use FSMT Check here

Take backup of win 2000 DHCP Server database.

  • Run DHCPEXIM.EXE utility from MS Resource Kit (download from here)and export the required DHCP Scope(s) and configurations to a text file and copy this file on to the new win server 2003.
  • Now, you can either disconnect the network cable or shutdown the win server 2000 completely. This server will again be used in the event of this migration failure.

Authorize DHCP Server on win server 2003

  • Click Start, point to All Programs, point to Administrative Tools, and then click DHCP

Note:- You must be logged on to the server by using an account that is a member of the Administrators group. In an Active Directory domain, you must be logged on to the server by using an account that is a member of the Enterprise Administrators group.

  • In the console tree of the DHCP snap-in, expand the new DHCP server. If there is a red arrow in the lower-right corner of the server object, the server has not yet been authorized.
  • Right-click the server object, and then click Authorize.

After several moments, right-click the server again, and then click Refresh. A green arrow indicates that the DHCP server is authorized.

Running domain controller (on win server 2003) diagnostics tools

From the command prompt, run DCDIAGS and make sure the command is completed successfully, without displaying any errors.If you want DCdiag GUI tool check here

Run adcheck (freeware tool from netiq) run through all the checks and make sure that the domain is healthy. Fix errors if any.You can download from here

Disconnect the old server (win server 2000)

  • Go to Start -> Run and type dcpromo and click on OK button.
  • On the Active Directory Installation Wizard screen, follow the wizard and demote it from the domain controller to a standalone server.
  • Reboot the Server.
  • Change the server membership to a Workgroup.
  • Reboot the Server.
  • Shutdown and disconnect the server from the network.

Raise the domain level functionality to native Windows 2003 in win server 2003.

For this follow this procedure

  • Log on the win server 2003 of the domain with domain administrator credentials.
  • Click Start, point to Administrative Tools, and then click Active Directory Domains and Trust.
  • In the console tree, right-click the domain for which you want to raise functionality, and then click Raise Domain Functional Level.
  • Under Select an available domain functional level, do the following
  • Click Windows Server 2003, and then click Raise to raise the domain functional level to Windows Server 2003.

Note:- You can also raise the domain functional level by right-clicking a domain that appears in the Active Directory Users and Computers MMC snap-in, and then clicking Raise Domain Functional Level. To raise the domain functional level, you must be a member of the Domain Administrators group.

The current domain functional level appears under Current domain functional level in the Raise Domain Functional Level dialog box. The level increase is performed on the PDC FSMO and requires the domain administrator

Test with a client that you can logon, check the event log for any errors.

Changing the new DC's (Win2K3) IP Address and Hostname to the same Hostname and IP Address as the old DC (Win2K)

  • Make sure the Old Domain Controller (Win2K) is disconnected from the network.
  • Make sure all the references of the old (Win2K) server name does not exist anymore In Active directory (Sites, Domain Controllers Container and DNS).
  • Make sure the domain functional level is raised to Windows 2003 native mode.
  • Change the IP Address of the new domain controller (Win2K3)
  • Change the Domain Controller hostname using Netdom tool.

Netdom tool comes with the support tools package, which is available on the Server installation CD, under \support\tools folder.

  • Install support tools and go to Command Prompt.
  • Type the following command to add the new domain controller name, and then press ENTER:

netdom computername CurrentComputerName /add:NewComputerNam e

Note: The NewComputerName must be a fully qualified domain name (FQDN). Currentcomputername can be the existing FQDN or the IP Address of the computer.

c) Type the following command to designate the new name as the primary computer name, and then press ENTER:

netdom computername CurrentComputerName /makeprimary: NewComputerName

d) Restart the computer.

e) After the computer restarts, go to Command Prompt.

f) Type the following command to remove the old domain controller name, and then press ENTER:

netdom computername NewComputerName /remove:OldComputer Name

Finally if you are using any logon scripts using kix program,Network Printers you need to make sure everything is working fine

10 MOST COMMON "SHOW" COMMANDS FOR CISCO ROUTERS

Some commands in the Cisco router configuration are just irreplaceable. The `show' commands are the most widely used in Cisco routers. Here is a list of the 10 mostly used of these `show' commands.

1. show running-config

This command is your true best friend. It shows the complete configuration that is running currently. Using it you can troubleshoot almost all issues regarding routing, filtering, secure access, and many other issues. Using it before you start configuring the router would give you a clear idea of what services and protocols are operating by default and which are turned off by default.

2. show startup-config

This command shows the configuration that is saved on the NVRAM. It is helpful in knowing the configuration that will be applied the next time the routers is reloaded. And also this command is useful in knowing the configuration that was loaded at the start-up of the router before making changes to it.

3. show interface

This command shows status and statistics regarding interfaces. This command is almost always needed in troubleshooting routing and link issues. Things that are shown using this command include, interface IP address and subnet mask, interface status, encapsulation type, bandwidth, and many other important indicator about the interface operation.

4. show ip route

This command shows the routing table. This table helps you in finding out the next hop for each and every routable packet. It is the first indicator to point a problem in routing.

5. show ip protocols

This command shows the routing protocols used in the router and what networks are these protocols advertising. It also shows the sources of routing updates received at this router. It is very useful in routing issues troubleshooting.

6. show access-list

This command shows the contents of each access-list. It is very useful in troubleshooting filtering issues. Note that this command does not show you where each access-list is applied.

7. show ip interface

This command displays information about IP protocol and the interface. You might be wondering why would you need this command. I will answer that. This command shows which access-lists are applied at the interfaces and in which direction. This kind of information is not shown by the `show access-list' command. However, you can find out which access-list is applied where using `show run'.

8. show cdp neighbor detail

This command displays detailed information about the neighboring devices like IP addresses, platforms, and host names. This command can be useful in troubleshooting connectivity issues, and also can be used in finding out how devices are connected to each other when you have no clear drawn network map.

9. show version

This command shows detailed information about the IOS. It shows the file name of the IOS along with the version of the IOS and value of the configuration register. The configuration register is a set of bits that controls the boot sequence of the router. This command is the only command used to show this register's value.

10. show flash or show slot0:

This command is used to view the contents of the flash and the size of the IOS file(s) and the size of the flash and how much of it is free. It is necessary in upgrading or installing the IOS file.

How to Configure Site-to-Site VPN in Cisco Routers

How to Configure Site-to-Site VPN in Cisco Routers

When would you need this: When you want to create a secure tunnel to transfer data between two sites without the use of VPN concentrator or other security devices.

Special Requirements: The routers used must support IPSec. Most of Cisco routers do. Another need is that both sides use a static public IP address to connect to the Internet.

We will go through the steps to be done on one side and the same steps must be repeated on the other side too. The encryption of data will depend on a shared-key. This way, we will not need specialized CAs or RSA methodologies.


1. Create Internet Key Exchange (IKE) key policy. The policy used for our case is policy number 9, because this policy requires a pre-shared key.

Router(config) #crypto isakmp policy 9

Router(config- isakmp)#hash md5

Router(config- isakmp)#authentication pre-share


2. Setup the shared key that would be used in the VPN,

Router(config) #crypto isakmp key VPNKEY address XXX.XXX.XXX. XXX

where,

VPNKEY is the shared key that you will use for the VPN, and remember to set the same key on the other end.

XXX.XXX.XXX. XXX the static public IP address of the other end.


3. Now we set lifetime for the IPSec security associations,

Router(config) #crypto ipsec security-associatio n lifetime seconds YYYYY

where YYYYY is the associations lifetime in seconds. It is usually used as 86400, which is one day.


4. Configure an extended access-list to define the traffic that is allowed to be directed through the VPN link,

Router(config) #access-list AAA permit ip SSS.SSS.SSS. SSS WIL.DCA.RDM. ASK DDD.DDD.DDD. DDD WIL.DCA.RDM. ASK

where,

AAA is the access-list number

SSS.SSS.SSS. SSS WIL.DCA.RDM. ASK is the source of the data allowed to use the VPN link.

DDD.DDD.DDD. DDD WIL.DCA.RDM. ASK is the destination of the data that need to pass though the VPN link.


5. Define the transformations set that will be used for this VPN connection,

Router(config) #crypto ipsec transform-set SETNAME BBBB CCCCC

where,

"SETNAME" is the name of the transformations set. You can choose any name you like.

BBBB and CCCCC is the transformation set. I recommend the use of "esp-3des esp-md5-hmac". You can also use "esp-3des esp-sha-hmac". Any one of these two will do the job.


6. After defining all the previous things, we need to create a cypto-map that associates the access-list to the other site and the transform set.

Router(config) #crypto map MAPNAME PRIORITY ipsec-isakmp

Router(config- crypto-map) #set peer XXX.XXX.XXX. XXX

Router(config- crypto-map) #set transform-set SETNAME

Router(config- crypto-map) #match address AAA

where,

MAPNAME is a name of your choice to the crypto-map

PRIORITY is the priority of this map over other maps to the same destination. If this is your only crypto-map give it any number, for example 10.

XXX.XXX.XXX. XXX the static public IP address of the other end

SETNAME is the name of the transformations set that we configured in step 5

AAA is the number of the access-list that we created to define the traffic in step 4


7. The last step is to bind the crypto-map to the interface that connects the router to the other end.

Router(config- if)#crypto map MAPNAME

where MAPNAME is the name of the crypto-map that we defined in step 6.

Now, repeat these steps on the other end, and remember to use the same key along with the same authentication and transform set.

Note: If you want to implement multiple VPN connections to multiple sites, you can do this by repeating the steps 2 to 7 (except step 3) for each VPN connection. The different crypto-maps and their assignments differentiate between the different VPN connections.

For troubleshooting purposes, you can use the following commands,

show crypto isakmp sa

show crypto ipsec sa

show crypto engine connections active

and show crypto map

Wednesday, November 11, 2009

Installing and Configuring Windows Server 2003 RADIUS Support for VPN Clients

Installing and Configuring Windows Server 2003 RADIUS Support for VPN Clients – Including Support for EAP/TLS Authentication

Some organizations may prefer to not join the ISA Server firewall/VPN server to their internal network domain. The primary reason for not joining the ISA Server firewall/VPN server to the internal network domain is to prevent potential intruders from using the firewall as a launch point for an attack on the internal network domain. While the probability of the firewall being compromised is very small, it is a fact that the ISA Server firewall is a bastion host and it is exposed to direct attack from the Internet.

The only user accounts available to the machine are those configured in the local user database when the ISA Server firewall/VPN server is not joined to the internal network domain,. In this scenario, all user accounts need to be input into the local user database on the ISA Server firewall/VPN server machine. There is a lot administrative overhead when you mirror your internal network user database, including both user names and passwords, onto the ISA Server firewall/VPN server's local SAM database.

A better solution is to use the Microsoft Windows Server 2003 Internet Authentication Service (IAS). The Microsoft IAS Server is a Remote Authentication Dial In User Service (RADIUS) server. A RADIUS server accepts authentication requests from the ISA Server firewall/VPN server and forwards them to an authentication server. In a Windows Server 2003 domain, the domain controller represents the authentication server. The authentication server confirms or denies the authentication request and forwards the result to the RADIUS server. The RADIUS server forwards it to the ISA Server firewall/VPN server.

The Microsoft IAS Server can also be used to centralize the management of Routing and Remote Access Policy. You may wish to apply the same remote access policies to each server if you have two or more ISA Server firewall/VPN servers. You could manually configure Remote Access Policy on each server using the graphical interface or the netsh command. A better way is to the Microsoft IAS Server. You create Remote Access Policy on the IAS Server and then configure the ISA Server firewall/VPN servers to use the IAS Server of your choice. The policies configured on the IAS Server are applied to incoming VPN connections to the ISA Server firewall/VPN server.

You can also use the IAS Server to support advanced authentication, such as EAP-TLS authentication for PPTP and L2TP/IPSec clients. Advanced authentication methods using EAP enhance the security of your ISA Server firewall/VPN server configuration.

We discuss the following procedures in this ISA Server 2000 VPN Deployment Kit Document:

  • Installing the Windows Server 2003 IAS Server
  • Configuring a VPN client Remote Access Policy on the IAS Server
  • Configuring the ISA Server firewall/VPN server to use the IAS Server for authentication and accounting
  • Configuring the ISA Server firewall/VPN server to support EAP-TLS authentication for PPTP and L2TP/IPSec clients

Installing and Configuring the Windows Server 2003 IAS Server

Perform the following steps to install and configure the IAS Server:

1. Click Start, point to Control Panel and click on Add or Remove Programs.

2. Click the Add/Remove Windows Components button in the Add or Remove Programs window.

3. In the Windows Components dialog box (figure 1), select the Networking Services entry and click the Details button.

Figure 1 (1712)

4. In the Networking Services dialog box (figure 2), put a checkmark in the Internet Authentication Service checkbox and then click OK. Click Next in the Windows Components dialog box.

Figure 2 (1713)

5. Click the Finish button on the Completing the Windows Components Wizard page.

Now we'll make some basic configuration changes to the IAS Server.

1. Click Start, point to Administrative Tools and click on Internet Authentication Services.

2. In the Internet Authentication Services console, right click on the Internet Authentication Service (Local) node in the left pane of the console. Click the Register Server in Active Directory command (figure 3).

This setting allows the IAS Server to authenticate users in the Active Directory domain. Click OK in the Register Internet Authentication Server in Active Directory dialog box (figure 4).

Click OK in the Server registered: dialog box (figure 5). This dialog box informs you that the IAS Server was registered in a specific domain and if you want this IAS Server to read users' dial-in properties from other domains, you'll need to enter this server into the RAS/IAS Server Group in that domain.

Figure 3 (1714)

Figure 4 (1715)

Figure 5 (1716)

3. Right click on the RADIUS Clients node in the left pane of the console and click the New RADIUS Client command (figure 6).

Figure 6 (1717)

4. In the New RADIUS Client dialog box, type in a Friendly name for the the ISA Server firewall/VPN server (figure 7). You can use any name you like. In this example we'll use the DNS host name of the ISA Server firewall/VPN server, which is MSFIREWALL1.

Type in either the FQDN or the IP address of the ISA Server firewall/VPN server in the Client address (IP or DNS) dialog box. Do not enter a FQDN if your ISA Server firewall/VPN server has not registered its internal interface IP address with your internal DNS server. You can use the Verify button to test whether the IAS Server can resolve the FQDN (figure 8). Click Next.

Figure 7 (1718)

Figure 8 (1719)

5. On the Addition Information page (figure 9), leave the RADIUS Standard entry in the Client-Vendor drop down list box. Your ISA Server firewall/VPN server will use this setting. Type in a complex shared secret in the Shared secret text both and confirm it in the Confirm shared secret text box.

The shared secret should be a complex string consisting of upper and lower case letters, numbers and symbols. Put a checkmark in the Request must contain the Message Authenticator attribute checkbox. This option enhances the security of the RADIUS messages passed between the ISA Server firewall/VPN and IAS servers. Click Finish.

Figure 9 (1720)

Configuring a VPN Client Remote Access Policy on the IAS Server

You are ready to create a Remote Access Policy on the IAS Server. Remote Access Policies configured on the IAS Server are enforced against VPN clients calling the ISA Server firewall/VPN server. The Windows Server 2003 IAS server has a Remote Access Policy Wizard that makes it easy to create a secure VPN client Remote Access Policy.

Perform the following steps to create a VPN client Remote Access Policy on the IAS Server:

1. In the Internet Authentication Service console, right click on the Remote Access Policies node and click the New Remote Access Policy command (figure 10).

Figure 10 (1721)

2. Click Next on the Welcome to the New Remote Access Policy Wizard page (figure 11).

Figure 11 (1722)

3. On the Policy Configuration Method page (figure 12), select the Use the wizard to set up a typical policy for a common scenario option. In the Policy name text box, type in a name for the policy. In this example, we'll call it VPN Access Policy. Click Next.

Figure 12 (1723)

4. Select the VPN option on the Access Method page (figure 13). This policy is used for all VPN connections. You also have the option to create separate policies for PPTP and L2TP/IPSec VPN links. However, to create separate policies for PPTP and L2TP/IPSec connections, you need to go backwards in the Wizard and create two custom policies. In this example we apply the same policy to all VPN connections. Click Next.

Figure 13 (1724)

5. You can grant access to the VPN server based on user or group (figure 14). The best access control method is on a per-group basis because it confers less administrative overhead. You can create a group such as VPN Users and allow them access, or all your users access. It depends on who you want to give VPN access to the network.

In this example, we will select the Group option and click the Add button. This brings up the Select Groups dialog box. Type in the name of the group in the Enter the object name to select text box and click the Check names button to confirm that you entered the name correctly. Click OK in the Select Groups dialog box and then click Next in the User or Group Access dialog box.

Figure 14 (1725)

6. You can select the user authentication methods to allow on the Authentication Methods page (figure 15).

You may wish to allow both Microsoft Encrypted Authentication version 2 and Extensible Authentication Protocol (EAP). Both EAP and MS-CHAP version 2 authentication are secure, so we'll select both the Extensible Authentication Protocol (EAP) and Microsoft Encrypted Authentication version 2 (MS-CHAPv2) checkboxes.

Click the down arrow in the Type (based on method of access and network configuration) drop down list box and select the Smart Card or other certificate option then click the Configure button. In the Smart Card or other Certificate Properties dialog box, select the certificate you want the server to use to identify itself to VPN clients. The self-signed certificate appears in the Certificate issued to drop down list box. This certificate is used to identify the server when VPN client are configured to confirm the server's validity. Click OK in the Smart Card or other Certificate Properties dialog box and then click Next.

* Note:
If you do not see the certificate in the Smart Card or other Certificate Properties dialog box, then restart the RADIUS server and start over. The certificate will then appear in the dialog box after the restart.

Figure 15 (1726)

7. Select the level(s) of encryption you want to enforce on VPN connections (figure 17). All Microsoft clients support the strongest level of encryption. If you have clients that don't support 128 bit encryption, select lower levels, but realize that you lower the level of security provided by the encryption method used by the VPN protocol. In this example we'll select only the Strongest encryption (IPSec Triple DES or MPPE 128-bit) Click Next.

Figure 16 (1727)

8. Review your settings on the Completing the New Remote Access Policy Wizard page and click Finish.

Figure 17 (1728)

Configuring Remote Access Permissions

The new Remote Access Policy requires the connection be a "virtual" or VPN connection. The VPN protocol can be either PPTP or L2TP/IPSec. MS-CHAP v2 or EAP-TLS must be used to authenticate and the client must support the highest level of encryption available for the VPN protocol they use to connect. The user must belong to the Domain Users group in the domain specified in the Remote Access Policy.

The next step is to configure Remote Access Permissions. Remote Access Permissions are different than Remote Access Policies. When a user calls the ISA Server firewall/VPN server, the parameters of the connection are compared against Remote Access Policy or Policies defined on the IAS Server. Remote Access Policies are a hierarchical list The policy on top of the list is evaluated first, then the second listed policy is applied, then the third and so forth.

VPN connection parameters are compared to the conditions of the policy. In the policy we created above, there were two conditions: the connection type is a virtual connection and the user is a member of the Domain Users group. If the connection request matches both of those conditions, then the Remote Access Permission of the account logging in is determined. Remote access permissions are determined differently depending on the type of domain the user account belongs to.

Windows Server 2003 domains do not use the Mixed and Native Mode designations you might be familiar with in Windows 2000 domains. Windows Server 2003 supports domains of varying functional levels. If all the domain controllers in your domain run Windows Server 2003, the default functional level is Windows 2000 mixed. All user accounts are denied VPN (Dial up) access by default in Windows 2000 Mixed Mode functional level. In Windows 2000 Mixed Mode, you must configure each user account to have permission to log on to the VPN server. The reason is that user account permissions override Remote Access Policy permissions in Mixed Mode domains.

If you want to control Remote Access Permissions via Remote Access Policy, you must raise the domain functional level of Windows 2000 Native or Windows Server 2003. The default Remote Access Permission in Windows 2000 and Windows Server 2003 domains is Control access through Remote Access Policy. Once you are able to use Remote Access Policy to assign VPN access permission, you can take advantage of group membership to allow or deny access to the VPN server.

When a connection request matches the conditions in the Remote Access Policy and the user is granted access via either the user account Dial-in settings or Remote Access Policy, the connection parameters are compared a number of settings defined by the Remote Access Profile. If the incoming connection does not comply with the settings in the Remote Access Profile, then the next Remote Access Policy is applied to the connection. If no policy matches the incoming connection's parameters, the connection request to the ISA Server firewall/VPN server is dropped.

The VPN Remote Access Policy you created earlier includes all the parameters required for a secure VPN connection. Your decision now centers on how you want to control Remote Access Permissions:

  • Allow Remote Access on a per group basis: this requires that you run in Windows 2000 Native or Windows Server 2003 functional level
  • Allow Remote Access on a per user basis: supported by Windows 2000 Native, Windows 2000 Mixed and Windows Server 2003 functional levels
  • Allow Remote Access on both a per user and per group basis: this requires Windows 2000 Native or Windows Server 2003 functional level; granular user based access control overriding group based access control is done on a per user basis

Procedures required to allow per user and per group access include:

  • Change the Dial-in permissions on the user account in the Active Directory to control Remote Access Permission on a per user basis
  • Change the domain functional level to support Dial-in permissions based on Remote Access Policy
  • Change the Permissions settings on the Remote Access Policy

Changing the User Account Dial-in Permissions

Perform the following steps if you want to control access on a per user basis:

  1. Click Start, point to Administrative Tools and click on Active Directory Users and Computers.
  2. In the Active Directory Users and Computers console (figure 18), expand your domain name and click on the User node.

Figure 18 (1729)

  1. Double click on a user account in the right pane of the console. In the user account Properties dialog box, click on the Dial-in tab (figure 19). The default setting on the account is Deny access. You can allow VPN access for the account by selecting the Allow access option. Per user account setting override permissions set on the Remote Access Policy. Notice the Control access through Remote Access Policy option is disabled. This option is available only when the domain is at the Windows 2000 or Windows Server 2003 functional level.

Figure 19 (1730)

  1. Click Apply and then click OK to commit the Dial-in permission changes you've made to the account.

Changing the Domain Functional Level

If you want to control access on a per group basis, then you will need to change the default domain functional level. Perform the following steps to change the domain functional level:

  1. On a domain controller in your domain, open the Active Directory Domains and Trusts console. Click Start, point to Administrative Tools and click on Active Directory Domains and Trusts (figure 20).

Figure 20 (1731)

  1. In the Active Directory Domains and Trusts console, right click on your domain and click on the Raise Domain Functional Level command (figure 21).

Figure 21 (1732)

  1. In the Raise Domain Functional Level dialog box (figure 22), click the down arrow in the Select an available domain functional level drop down list, select either Windows 2000 native or Windows Server 2003, depending on the type of domain functional level your network can support. Click the Raise button after making your selection.

Figure 22 (1733)

  1. Click OK in the Raise Domain Functional Level dialog box (figure 23). This dialog box explains the change affects the entire domain and after the change is made, it cannot be reversed.

Figure 23 (1734)

  1. Click OK in the Raise Domain Functional Level dialog box (figure 24) informing you that the functional level was raised successfully. Note that you do not need to restart the computer for the changes to take effect. However, the default Remote Access Permission will not change for user accounts until Active Directory replication and completed.

Figure 24 (1735)

  1. Return to the Active Directory Users and Computers console and double click on a user account. Click on the Dial-in tab in the user's Properties dialog box (figure 25). Notice how the Control access through Remote Access Policy option is enabled and selected by default.

Figure 25 (1736)

Controlling Remote Access Permission via Remote Access Policy

Now that you have the option to control access via Remote Access Policy, let's see how VPN access control via Remote Access Policy is performed:

  1. Click Start, point to Administrative Tools and click on Internet Authentication Service.
  2. Click on the Remote Access Policies node in the left pane of the console (figure 26). You will see the VPN Access Policy you created and two other, built-in Remote Access Policies. You can delete these other Remote Access Policies if you require only VPN connections to your ISA Server firewall/VPN server. Right click on the Connections to other access servers Remote Access Policy and click Delete. Repeat with the Connections to Microsoft Routing and Remote Access server Remote Access Policy.

Figure 26 (1737)

  1. Double click on the VPN Access Policy in the right pane of the console. In the VPN Access Policy Properties dialog box (figure 27) there are two options that control access permissions based on Remote Access Policy:

· Deny remote access permission

· Grant remote access permission

Notice that this dialog box does inform you that the user account settings override the Remote Access Permission settings: Unless individual access permissions are specified in the user profile, this policy controls access to the network. Select the Grant remote access permission to allow members of the Domain Users group access to the VPN server.

Figure 27 (1738)

  1. Click Apply and then click OK in the VPN Access Policy Properties dialog box to save the changes.

Configuring the ISA Server firewall/VPN Server to Support RADIUS and EAP-TLS Authentication for PPTP and L2TP/IPSec VPN Clients

The next step is to configure the ISA Server firewall/VPN server to support RADIUS and EAP/TLS authentication. Perform the following steps to configure the ISA Server firewall/VPN server:

  1. Confirm that you have enabled the ISA Server firewall as a VPN Server. Please refer to ISA Server 2000 VPN Deployment Kit document Configuring the Windows Server 2003 ISA Server 2000/VPN Server for details on how to configure the ISA Server firewall as a VPN server.
  2. Click Start, point to Administrative Tools and click on Routing and Remote Access. In the Routing and Remote Access console, right click on your server name and click the Properties command.
  3. Click on the Security tab in the server's Properties dialog box.

Click the Configure button that lies to the right of the Authentication provider drop down list box. In the RADIUS Authentication dialog box (figure 28), click the Add button.

In the Add RADIUS Server dialog box, type in the FQDN or IP address of your IAS Server. Make sure that your ISA Server firewall/VPN server can resolve the FQDN of the IAS Server to the correct IP address. If you are not sure if the ISA Server firewall/VPN server can correctly resolve the FQDN of the IAS Server, use the IP address instead. Click the Change button.

Type in the shared secret you configured on the IAS Server and then confirm the shared secret. Put a checkmark in the Always use message authenticator checkbox. Click OK in the Change Secret dialog box, then click OK in the Add RADIUS Server dialog box, then click OK in the RADIUS Authentication dialog box. Click Apply in the server's Properties dialog box.

* Note
You do not need to click on the Authentication Methods button that lies just under the Authentication Provider drop down list. This button allows you to configure authentication methods used by the ISA Server firewall/VPN server when using Windows Authentication instead of RADIUS Authentication.

Figure 28 (1739)

  1. Click No in the Routing and Remote Access dialog box that informs you that you selected one or more authentication methods and would you like to view the Help topic.
  2. Click OK in the Routing and Remote Access dialog box (figure 29) informing that you must restart the Routing and Remote Access.

Figure 29 (1740)

  1. Click OK in the Routing and Remote Access Properties dialog box.
  2. Right click on the Routing and Remote Access node in the left pane of the console, point to the All Tasks command and click the Restart command.

Figure 30 (1741)

The ISA Server firewall/VPN server is now ready to support VPN PPTP VPN connections using either MS-CHAP version 2 or certificate based EAP/TLS authentication. Note that while we have configured RADIUS policy to support certificate based EAP/TLS authentication, the certificate used in this policy does not support L2TP/IPSec. You must assign a machine certificate to the ISA Server firewall/VPN server, and the VPN client making the L2TP/IPSec connection request must trust that certificate.