Sharing disks with NFS network

   

Sharing disks with NFS network

 ________________________________________

Follow us on Facebook

Follow us on Google+

________________________________________

 

 Introduction


NFS (Network File System) is a protocol used to mount network disks. This protocol is based on the client / server principle has been developed by Sun Microsystems in 1984. It can be used to exchange data between Linux, Mac or Windows. One of its advantages is that it manages file permissions.


Installing NFS


On Fedora, normally the tools for setting up a network via nfs are installed. You can check it with the command:

$ Rpm-qi nfs-utils

If you get back a message like: "The nfs-utils is not installed", you can install nfs-utils with the command:

# Yum install nfs-utils


Configuring NFS


Before starting the configuration, you must know the IP addresses of your client and server machines. You can get the address of each machine using the command:

$ / Sbin / ifconfig
 



Server-side


You must edit the file / etc / exports and add a line like:

/ path / to / shared @ _ip_client (rw) @ _ip_client2 (rw)

For example, if you want to share your / home / user and the client has the address 192.168.0.23, you would add the line: / home / user 192.168.0.23 (rw) Then it'll just restart the NFS server with the command:

# Service nfs start

Since Fedora 16, systemd uses NFS, it should run it with the command:

# Systemctl start nfs-server.service

If you want the service to be active in the launch of Fedora:
 

 

Client-side configuration


First you need to create a folder that will contain the shared / mnt or / media for example. Then you can mount the file directly with the command:

# Mount-t nfs @ _ip_serveur :/ path / to / share / mnt / share

It is also possible to mount at boot time, for this simply edit the file / etc / fstab and add a line like:

@ _ip_serveur :/ path / to / share / mnt / share nfs auto, user, rw 0 0

Once this change is made, you can mount all partitions in fstab by typing the command:

# Mount-a

You can use showmount to list information for mounting an NFS server:

$ Showmount-e <IP_du_serveur_NFS>

Some security

 

Configuring the firewall


Default portmap ports dynamically defined using NFS and transmits them to client port 2049, which makes the configuration of firewall. For simplicity, it is preferable to set the ports to allow our firewall enabled. You can either use the graphical tool, system-config-nfs or edit the file / etc / sysconfig / nfs manually so that it has the following parameters:

LOCKD_TCPPORT = 32803
LOCKD_UDPPORT = 32769
MOUNTD_PORT = 892
STATD_PORT = 662

Then, modify the configuration by fire so that your open its ports

# System-config-firewall

Ports are open:

2049 (nfs) tcp / upd
111 tcp / upd
32803 tcp / udp
32769 tcp / udp
892 tcp / udp
662 tcp / udp

By default, only the ports 2049, 111 and MOUNTD_PORT are used. The other match Diversent NFS server option.

Finally, you must restart the NFS service changes to take into account:

# / Etc / init.d / nfs restart

If you want to start the NFS server startup, use:

# Chkconfig nfs on
# Chkconfig rpcbind on

(adjust if you enable nfslock etc.).
 

Application Pool in IIS6


 Application pool in IIS6 :


 ________________________________________

Follow us on Facebook

Follow us on Google+

________________________________________

Application pools define the configuration parameters and boundaries of applications. An application pool is composed of one or more applications and require him or their execution in a shared context (eg same version of asp. Net for the entire pool) and the application pool settings (detection failure, recycling, monitoring CPU ...)

 

Creating an application pool :

 

 

To create an application pool, you must right-click Application Pools in IIS Manager console (IIS), and then choose New Application Pool.









 You can create an application pool with the default settings or choose another pool that you previously created to have the same configuration settings.

   

Settings application pool recycling :



. NET Framework 1.1 :
 
Settings application pool recycling allow you to control how system resources are recovered. The following sections describe how to specify the settings for application pool recycling.


Specifying settings application pool recycling :

 

Settings application pool recycling are specified in the Recycling tab of the Properties dialog box for an application pool.

To define the settings application pool recycling:


  •  Open the IIS management console and expand the local computer by clicking the plus sign.
  •  Expand the Application Pools folder by clicking the plus sign.
  •  Click the right mouse button on the appropriate application pool, and then click Properties. The properties dialog box of the application pool is displayed.
  •  Click on the Recycling tab, then set the appropriate settings for the application pool.
 
Recycling tab of the Properties dialog box of the application pool
 

 

 Memory recycling :

 

Setting application pool recycling memory is equivalent to setting the ASP.NET process model memoryLimit. It indicates the maximum amount of memory that a worker process can use. If the work process exceeds this amount, a new process is created to replace it and all pending requests are reassigned to the new process. There are two important differences between the parameter of the ASP.NET process model and parameter memoryLimit application pool recycling memory: 
  • The parameter memoryLimit ASP.NET process model uses only physical memory. Setting application pool recycling memory allows you to specify separate limits for physical memory and virtual memory. Physical memory (or a combination of physical memory and virtual memory) is commonly used for ASP.NET applications because of how the garbage collector works the Common Language Runtime. Virtual memory is commonly used for classic native applications that fragment the heap.
  • The setting of application pool recycling memory is specified in megabytes, not as a percentage of the total memory.

 

Recycle work process :


Setting application pool recycle the worker process is equivalent to setting the ASP.NET process model requestLimit. It shows the number of requests that cause the recycling process work or an application pool. Recycle the worker process is disabled by default. Recycle to activate the workflow, select the check box and specify the number of requests in the spin box.

Recycle work process :

 

Setting application pool recycle worker processes is equal to the parameter timeout ASP.NET process model. It indicates the interval between recycling process work or an application pool. Recycle work process is enabled and set to 120 minutes by default. You can specify a different interval by changing the value in the spin box. To disable the Recycle work process, clear the checkbox. 


Settings application pool performance :


. NET Framework 1.1 :
 
Settings application pool performance allow you to control the operation of the labor process. The following sections explain how to specify the settings for the application pool performance.
Specifying settings application pool performance :
 
Settings application pool performance are specified in the Performance tab of the Properties dialog box for an application pool.


To define the settings application pool performance :


  •  Open the IIS management console and expand the local computer by clicking the plus sign.
  •  Expand the Application Pools folder by clicking the plus sign.
  •  Click the right mouse button on the appropriate application pool, and then click Properties. The properties dialog box of the application pool is displayed.
  •  Click the Performance tab, and then set the appropriate settings for the application pool.

Performance tab of the Properties dialog box of the application pool :




Garden Web :


 
Parameter Garden Web application pool parameters equivalent to ASP.NET process model and webGarden cpuMask. To enable Web Garden, specify a value greater than 1 for Maximum work process. This value also determines the maximum number of processes in the application pool.
Web gardens for using multiple processes, each process has its own copy of application state, session state in-process caches and static data. Web gardens are not to be used for all applications, especially if they maintain their status. Evaluate the performance of the application before deciding whether Web garden mode is appropriate.
When using a Web garden, it is important to understand how session state and round robin. It is also important to consider how other application pool settings affect the application.


Session State in a Web garden mode using process isolation work

When using a session state, you must not forget that isolation mode worker process does not support the routing of requests to return a process that issued the request. When an application runs in a Web garden with session state or ASP application, the application requests must be sent to the originating process. When using the IIS 6.0 application pool, make sure that the application maintains an open connection so its applications are returned to the appropriate process. If the connection is not kept open, the request will be sent to the next available work processes serving Web garden.


Robin in a Web garden by using the isolation mode workflow :


Robin is a method of load balancing application. When a request arrives, it is automatically sent to the next sequential process. For example, if a Web garden has four processes, requests are sent to process 0, 1, 2 and 3, in that order. The cycle is then repeated for the other queries.

Parameters of an application pool in a Web garden mode using process isolation work :


Some settings application pool have a specific behavior to a Web garden. The following table summarizes these behaviors.
 


Settings application pool health :


. NET Framework 1.1 :
 
Settings application pool health allow you to control how the work process is monitored to function properly. The following sections describe how to specify settings for application pool health.
Specifying settings application pool health
Settings application pool health are specified in the Health tab of the Properties dialog box for an application pool.


To define the settings application pool health


  •  Open the IIS management console and expand the local computer by clicking the plus sign.
  •  Expand the Application Pools folder by clicking the plus sign.
  •  Click the right mouse button on the appropriate application pool, and then click Properties. The properties dialog box of the application pool is displayed.
  •  Click the Health tab, and set the appropriate settings for the application pool.

Health tab of the Properties dialog box of the application pool :



 

Activate the pinging :

The application pool setting Enable pinging is equivalent to setting the ASP.NET process model pingFrequency. It indicates the frequency with which ASP.NET ISAPI verifies the existence of the work process. If the workflow is absent, it is restarted. Activate the pinging is enabled and set to 30 seconds by default. You can specify a different frequency by changing the value in the spin box. To disable the Enable pinging, clear the checkbox.

Deadline to stop

The application pool setting time limit for the stop is equivalent to setting the ASP.NET process model shutdownTimeout. It indicates the time left in a working process to close properly. If the workflow is not closed within the specified time, the ASP.NET ISAPI interrupts workflow. Time for the stop is set to 90 seconds by default. You can specify a different maximum by changing the value in the spin box.

 

Settings application pool identity :

 

. NET Framework 1.1 :
 
Settings application pool identity, you can specify the account used by the workflow. By default, the workflow uses the Network Service account. However, you can specify a different Windows identity. The following sections describe how to specify the settings for the application pool identity.

Specifying settings application pool identity :

Settings application pool identity specified in the Identity tab of the Properties dialog box for an application pool.

To define the settings application pool identity :


  •  Open the IIS management console and expand the local computer by clicking the plus sign.
  •  Expand the Application Pools folder by clicking the plus sign.
  •  Click the right mouse button on the appropriate application pool, and then click Properties. The properties dialog box of the application pool is displayed.
  •  Click the Identity tab, and then set the appropriate settings for the application pool.
  •  
Identity tab of the Properties dialog box of the application pool :


 

 Username and Password :

Settings application pool user name and password parameters are equivalent to the ASP.NET process model username and password. These parameters are used together to run the workflow using the specified Windows identity. By default, the workflow uses the Network Service account. However, if the check box is selected and Configurable text boxes Username and Password contain valid values​​, the workflow uses the Windows identity specified. In addition, you must add the Windows identity user group IIS_WPG.
 
To add the Windows identity of the user group IIS_WPG.

 
1. From the Start menu, right-click My Computer, and then click Manage.
2. Expand the Local Users and Groups by clicking the plus sign.
3. Click the Groups folder. A list of all groups defined on the computer is displayed in the right pane.
4. Right click IIS_WPG, and then click Add to Group.
5. Click the Add button and enter the account you want to use for the workflow.


Secure your Wireless Network

 

 Secure your Wireless Network :

 ________________________________________

Follow us on Facebook

Follow us on Google+

________________________________________

To secure your wireless network is an essential step to prevent a malicious user to use your wireless network. Here are the steps to follow.

Change the user password of your wireless router :

 

 Access the configuration utility of your router is secured with a username and a password. This page is accessed by typing the IP address of your router in your internet browser (eg 192.168.1.1). The first step in securing your new wireless network is to change the password by going to the option to change it.


Define your network name (SSID) :




Any WiFi network has a name: the SSID (Service Set IDentifier). The second step is to change the name and hide at the sight of malicious users. In the configuration utility of your router, change the default SSID name in avoiding it is too simple.Désactivez then broadcast SSID name of your wireless network by checking the corresponding box, so that n 'not appear in the list of possible connections of your neighbors.


Enable encryption on your network (security key) :


 


Before using your wireless network, it is useful to encrypt it with a digital key to not allow access only to users with it. Two types of data encryption currently exist: WEP (Wired Equivalent Privacy) and WPA (Wi-Fi Protected Access). If your router and your wireless adapters support it, you should opt for WPA encryption key with "pre-shared". However, if your hardware does not support WPA, then select WEP. The manipulation is simple because the digital encryption is created from a sentence you must enter a minimum 5-letter word or phrase in the text box and the router will generate different codes. Do not forget to note (one is enough) because they will be used to connect each computer on the network.


MAC address filtering :




Devices (PC or PDA) connected to a wireless network have a network card fitted with a specific address: MAC address (regardless of it, a computer is defined by its IP address). In the configuration utility of your router, you must activate the filter option and enter the MAC addresses of each of your devices. Thus, only these devices (known on the network by MAC address) can access the network.

Configure machines WiFi :



For each machine that can connect to the network, you need to specify the information listed above. After researching your wireless network, you must change the SSID to match the one you specified for the router. Then enter the numeric key encryption that was specified in the configuration utility of the router. This done, your device should connect to the router and the Internet.


Enable File Sharing :





To share files between computers and devices connected Wifi, you need to enable file sharing. The process of sharing in Windows XP is simple. Select << Control Panel >>, then << Network Connections >> and then click Create a home network or a corporate network. Then select This computer connects to the Internet through another computer on my home network or through a residential gateway. The connection wizard will detect your Internet connection.

To share a folder in Windows XP, right click on the file in question, and choose <<Sharing and Security>> and select the Share this folder option. To then access all shared folders from any machine on the network, click Start then My Network Places.

The technique is the same to a network printer: On the computer to which the printer is directly connected, go to the Start menu and then click Printers and Faxes, then right-click on the installed printer, and select Share.